Tagged Questions
The timestep tag has no wiki summary.
4
votes
2answers
621 views
+50
Why is my gameloop logic not being restricted to 60 per second?
Here is my gameloop (taken from http://www.koonsolo.com/news/dewitters-gameloop/) which is supposed to limit the game (logic) updates to 60 per seconds and render as fast as the device allows:
long ...
0
votes
0answers
80 views
Run a few seconds of simulation just after loading a scene
I'm looking for a way to execute 3 to 15 seconds of simulation once a scene is loaded.
The problem is: some objects can be left suspended in motion while the player exits the scene. their state is ...
1
vote
1answer
43 views
Fixed timestep with interpolation in AS3
I'm trying to implement Glenn Fiedler's popular fixed timestep system as documented here:
http://gafferongames.com/game-physics/fix-your-timestep/
In Flash. I'm fairly sure that I've got it set up ...
2
votes
2answers
105 views
Physics engine deltaTime and force acceleration
I am working on a physics engine that uses basic Euler integration to compute forces. So, here is the thing:
function applyForce (rigidbody, force) {
rigidbody.forces.add(force);
}
function ...
1
vote
1answer
105 views
GameTime Replacement / Wrapper for Pausing , Slow-mo and 'Fast-mo'
I'm looking to change the way in which my game uses GameTime to run the game so that I can easily pause the game (elapsedTime = 0) or change how slow/fast the in game elements interact as a scaler of ...
2
votes
3answers
88 views
Smooth interpolation with variable time steps
My game engine just went through a small overhaul that changed its fixed time step loops into variable time steps ones. Though everything has already been adapted steadily to the new environment, ...
0
votes
1answer
111 views
Separate game clocks/intervals in XNA
I am making a real time strategy game in XNA. I have separated the Client (rendering, input, sound) code from the Sim (game logic).
I want to have features like replaying and fast forwarding. Also, I ...
1
vote
2answers
199 views
Movement doesn't look smooth (slight lag)
Currently I'm using a variable time step and when the FPS drops by even a small amount you can easily notice a slight lurch forward of the player. I'm making a platformer and I'm wondering whether I ...
0
votes
1answer
157 views
Framerate and game loop on mobile
I'm searching how to manage game framerate on mobiles devices, here is my problem:
On a computer with got something like that:
void main()
{
while(game.isRunning())
{
...
1
vote
1answer
235 views
Correct way to update my physics frame rate
I've searched around here and Google and at last I looked at Fix your Timestep! article on the web which most of the people suggest. In according to that article I came up with an update method like ...
1
vote
2answers
600 views
Should I accumulate state time based on a global or a parameter?
Generally, we associate a "state time" with our sprites. Libgdx provides a method to do so:
float deltaTime = Gdx.graphics.getDeltaTime();
However, in the main game loop, we have a delta time as a ...
1
vote
1answer
92 views
How to make camera rotation independent from frame rate?
I multiply the mouse movement by a given number to get camera rotation of a desired speed. But it only works at 60 FPS. When I don't limit the frame rate I get around 350 FPS and the camera rotation ...
0
votes
2answers
97 views
Variable timeStep not working as intended
I've been working on a game in javascript/html5 (through typescript) using my own little library. This library uses a variable timestep since I plan on using it on mobile devices, and I was under the ...
6
votes
1answer
368 views
Timestep in multiplayer game
I'm trying to wrap my brain around the concept of creating a server/client multiplayer experience.
My problem is mainly related to timestep. Consider the following scenario:
A client connects to ...
4
votes
1answer
335 views
Glenn Fiedler's fixed timestep with fake threads
I've implemented Glenn Fiedler's Fix Your Timestep! quite a few times in single-threaded games.
Now I'm facing a different situation: I'm trying to do this in JavaScript. I know JS is ...
6
votes
1answer
9k views
How to get and use delta time
I have mice looking and walking in my game, but they are very slow and hard to use. I think it's because I'm using fixed speed. I heard that in big projects developers use delta time. How do I ...