I created a blueprint to display a 30 seconds countdown timer with decimal places, however it runs slower than it is supposed to. If I have it set up with just seconds however, it runs perfectly. I even set the two up at the same time, and compared it to the stopwatch on my phone. The seconds blueprint and the phone stayed on time with each other, while this current blueprint snails behind. Is this due to the game tick not being fast enough to measure decimal places of a second? If anyone knows an alternate solution to this problem I would be incredibly grateful!
Announcement
Collapse
No announcement yet.
Event Tick Timer Running Slow
Collapse
X
-
Tick is based on FPS, so if you add (or delay) .01 when running at 60 FPS you will end up with .6 after one second. Or in other words the game is running too slow for 1 second to be 100 ticks. It's just doing what you told it to do. You may want to use Delta Time, it measures the time between ticks so if you use that you can scale the delay so it ends up being 1 second in delay after 1 second in 60FPS.
-
I would not recommend using delays on Tick - is unreliable as every machine may have a different FPS.
Use Timers instead. You can use an event to start a timer and you can loop the timer (every second for example) to do your countdown.[WIP] Procedural City Generator | RPG AI
[MARKETPLACE] Animal Behavior Kit | Space Shooter Template | Procedural Foliage Tool | Procedural Park
[FREE] Modular Road Tool | Action Platformer Template | Radar BP | Free Birds | Procedural Buildings
Join our Discord
Comment
Comment