I've never Figured this out

Posted by LAR Games on Sept. 8, 2011, 3:58 a.m.

How would I go about making my game have a dynamic frame rate? What I mean by that is that when the fps go from about 60 to 40 or something, the speed and timing of the objects stays the same?

This has bugged me for the longest time, and I have experimented with it, but I can never get it to work.

How would you guys do it? Is it even possible in Game Maker?

Comments

OL 13 years, 3 months ago

Delta timing is essential for any serious game. If you're doing delta time in GM, you'll want to use the High Resolution Timer DLL because GM has no accurate timing functions:

- FPS is too unstable, not accurate, freezes at start of game, freezes when window dragged

- current_time has a resolution of 16ms and this is not good enough for DT

Tip: for clarity and ease of use, put your delta code in a object named "d" with variable "t", then you can multiply anywhere by d.t

LAR Games 13 years, 2 months ago

Hmm. I wonder. In JID's example, anyone know how to test it to see if it's working?

JID 13 years, 2 months ago

Uum.. You could just do the steps that I said to do in the post. :p

bendodge 13 years, 2 months ago
LAR Games 13 years, 2 months ago

What if I want to have maximum fps?