Page 1 of 1

Fixed time step tutorial

PostPosted: Mon Aug 05, 2013 10:08 am
by belfegor
Hello L.Spiro

I was the one pestering you on the Fixed-timestep tutorial. I made a reply there today but looks like it doesn't show up so i will post it here if you don't mind?

I can't get this to work correctly, and i made an bare minimal win32/dx9 project that shows the problem, if you can find time to look at and help me?

http://pastebin.com/QJ5sw8dw

There must be problem in my logic as i tried exactly just like you showed in your tutorial. Movement speed of the objects are very different when i enable vsync (D3DPRESENT_INTERVAL_ONE) and when is off (D3DPRESENT_INTERVAL_IMMEDIATE).

Thank you for your time and patience.

Re: Fixed time step tutorial

PostPosted: Fri Aug 09, 2013 8:24 am
by belfegor
I think i solved this right. Moved all "moving" related stuff into update function which is called inside "fixed time step loop".

Re: Fixed time step tutorial

PostPosted: Tue Sep 03, 2013 2:51 am
by L. Spiro
Sorry, I didn’t see this topic until now.


L. Spiro