Delay 0 is not no delay

Hi everybody,
i am having a typewriter effect for my text output widget
between every letter of the text there is a delay.
my problem is, the effect should be faster.
but as small as i make the delay value (.0001 for example) the effect is still to slow
so even when i set it to 0 its to slow

but when i remove the delay at al,l my text is written at once.
so why is a delay of 0 not no delay at all ?
and how can i achive smaller pauses between each letter when not using delays

hope you get what i mean :wink:

kind regards
stucki

nobody any idea

some functions have a “limit” in a previous engine version for example i’ve noticed “set time delation” had a min value of 0.1 (setting to a lower number had the same effect of setting to 0.1), this changed in newer versions of the engine for example, i’m using a delay of 0.2 seconds and it works if i set to 0.1 still works, so i don’t think there’s a problem setting fast delays, but if you wan’t to set to something really low like 0.0001 that’s kinda impossible since you will have a delay of something from 0,005s to 0,01s (keyboard/mouse + monitor) + something around 0,03s (time to produce a frame). try checking the rest of your code and try to reproduce the problem in another project.

thx for the explanation ! the limit would explain the behaviour.
so i am stuck now.
if i delete the delay the whole text is visible at once.
and with the smallest possible delay the typing is to slow …
is there another way to have small pauses between to operations ?

kind regards
stucki

Maybe you could try to use your own delay ? Just keep a float somewhere which represents your total delay time, then substract the Tick() deltatime from this float. When it’s <=0 then your delay is done and you can reset your float :smiley:

Hi Joris, thx for the idea. Will try this !!

For those who come after us

Follow this tutorial by “Reids Channel”: Unreal Engine - Easy Typewriter Text Tutorial - YouTube

He does something similar to NymKappas suggestion to get faster scrolling text than what a delay can provide