can’t find anything on the internet about this problem. My event tick / delay / delta seconds is twice as fast as it should be. When I launch a project as a new editor video, time goes at a normal pace
You can’t make any assumptions about how long a tick is. It could be tiny on a high end system, or huge on a low end one.
So anything that happens on tick, needs to use delta time to correct for flucuations.
I’m creating a 2d game about airplanes. Everything worked perfectly. At one point, the playing time began to move faster, the missiles became faster, the plane became faster. I also noticed that ‘delay’ also decreased. I did not find anything about this on the Internet, so thank you for your reply. How can I fix this problem? I just don’t realize what I did wrong and what led to this .Thanks a lot.
There’s an easy way to tell if it’s fps related.
You can set your fps really low with the console command
t.maxfps 20
and set it back later with t.maxfps 120
If everything goes really slow on 20, you have a problem.
Have you ever noticed on the tick event, there’s that DeltaSeconds parameter coming out of the node? It’s for correcting this problem.
Tell me if this makes you problem worse or not, because otherwise it’s a whole thing to explain unnecessarily.
Yes, you’re right, it’s fps related. I set fps to 20 - everything became very slow. When I set to 60 - everything worked perfectly. Yeah, I know about Delta Seconds parameter, but I don’t really understand how I can correct my problem with this. Sorry, this thing is probably obvious
Delta time is the length of a tick. That’s how long it takes the system to draw one frame.
As you frame time gets bigger ( worse ), you can multiply by delta time, to compensate for that.
Simple example, if I’m using tick to just move a cube upwards
This will change depending on my frame rate.
But if I fix it with delta time
it will always move at the same speed. Here, I have
delta * 120 * 0.5
The 0.5 is the speed I was originally trying to move and 120 the typical fps of a default project. If your default fps in a very simple level is 120, then you always use 120 as well.
Timelines, you don’t need to fix, they always move at the correct rate.
Omg, you saved my life! Thanks a lot! I hope i will launch my game in a few weeks/days in Google Play. Your answer provides an invaluable input to my work. You are legend!