Questions tagged [deltatime]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
80 views

How to reconcile collision detection with delta time?

In my simulation, if an object is inside another object, it imparts a force proportional to the distance inside the object (basically a separation force). I am having an issue though where the ...
user avatar
1 vote
1 answer
58 views

Forcing animations to play in real time, ignoring time scale

When the character dies, an animation plays, and then the scene resets. What I want is that nothing moves/animates except the character and the life bar so I use ...
user avatar
  • 639
0 votes
1 answer
157 views

Why does speed times delta-time give slow movement?

I'm using glfw's glfwGetTime() function to calculate my time between frames i.e deltaT but when I multiply my desired movement ...
user avatar
0 votes
0 answers
35 views

Running simulation as fast as possible

I have a kind of a simulator where I want to simulate something as fast as possible. Usually, in game dev we multiply something by deltaTime but I don't want this because even if my pc will be able to ...
user avatar
0 votes
1 answer
64 views

Controlling the delta time in Unity

I record object data (position,rotation) for objects in a scene and store it to a file. At some stage the player can load this file and "play back" the recording to watch themselves. ...
user avatar
1 vote
1 answer
121 views

Where should I handle player movements in a Java Game?

I had an old pure Java 2D top-down game that I'm trying to reformat a bit. Before, I had a bit of a messy game loop that didn't use delta timing for any movements or animations. Now, I'm trying to ...
user avatar
0 votes
1 answer
71 views

DeltaTime is smaller than it should be

I have a gameloop for a simulation I'm making, I noticed that the simulation is going very slow, When i checked the DeltaTime it was very small, I set the target fps to be 1 (deltatime should be 1 in ...
user avatar
1 vote
1 answer
1k views

Delta Time FPS with SDL 2 in C++

I have tried achieving a good delta time and fps counter over the last few days, read and watched a lot about it, but still can't seem to get it to work. Here is an example: ...
user avatar
0 votes
1 answer
234 views

How to apply Time.timeScale only to certain scripts?

I have a need to pause my game and the simplest and most clean way that I know of (other than completely designing my own time system) is by using ...
user avatar
-1 votes
1 answer
62 views

I do not understand the code version of time based sprite animation?

I'm Universo and for the longest time had coding issues around the concept of time-based sprite animation basically, do not know how to implement it and any code or explanation simple or complex that ...
user avatar
0 votes
2 answers
349 views

Is Time.deltaTime the last frame time or it is the time difference between frames?

I just came across the unity blog and found that unity 2020.2 trying to fix Time.deltaTime which is good for more smooth movement (correct me if I am wrong). But when I am reading the blog I found ...
user avatar