FrameDelay

In my book is says:

int m_iFrameDelay;

is to indicate the amount of time between game cycles in milliseconds.

Can anyone post a link to explain how frame delaying works.

Thanks
That's just an integer variable.

Anyways: The theory is, drawing graphics usually takes a lot longer than executing game logic. You want games to always run at the same speed, but on slower computers, drawing could take too long, and on faster computers the drawing could be done unnecessarily fast (redrawing everything even though nothing changed). To work against this, you seperate logic from drawing, and make sure the logic gets updated at a constant speed. Then you make sure that the drawing only gets done when the logic was updated since the last iteration AND there is no further logic to be performed.

PS: From your posts in this forum I deduct you are very inexperienced in programming. Game programming is not trivial, and I'd strongly suggest you to avoid it until you really know what's going on.
hanst99,

My only experience is with actionscript 3.

I have done c++ console programming and i find that quite simple.

I have bought a c++ book which gives you a game engine, before i start making c++ applications im trying to fully understand whats happening in the game engine.

And thanks for the explanation of frame delaying.
Last edited on

I have done c++ console programming and i find that quite simple.


Actually, judging from the posts you make here you barely scratched the surface.
Topic archived. No new replies allowed.