Fixed time step tutorial

General Discussions Regarding L. Spiro Engine

Fixed time step tutorial

Postby belfegor » Mon Aug 05, 2013 10:08 am

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.
belfegor
I Have a Question
 
Posts: 3
Joined: Mon Aug 05, 2013 10:01 am

Re: Fixed time step tutorial

Postby belfegor » Fri Aug 09, 2013 8:24 am

I think i solved this right. Moved all "moving" related stuff into update function which is called inside "fixed time step loop".
belfegor
I Have a Question
 
Posts: 3
Joined: Mon Aug 05, 2013 10:01 am

Re: Fixed time step tutorial

Postby L. Spiro » Tue Sep 03, 2013 2:51 am

Sorry, I didn’t see this topic until now.


L. Spiro
It is amazing how often people try to be unique, and yet they are always trying to make others be like them.
- L. Spiro 2011
L. Spiro
Site Admin
 
Posts: 54
Joined: Thu Jul 21, 2011 2:59 pm
Location: Tokyo, Japan


Return to General Related

Who is online

Users browsing this forum: No registered users and 0 guests

cron