PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Framegame & Timer

Hi again,

I have a app with Timer() usage, taht funcion in Framegame.cpp is bothering:

Code:

// Sync
if (!StateChanged())
{
// ChangeState resets the clock, so don't sync in that case
while ((g_Api->Timer() - time) < m_FrameTime);
}


what's that for ? can i double slash it ? (seems to work well then)

BTW, what's going on over there ? the www.overloaded.com seems beta-freezed ? are you encountring big issues ? or working on V1.0 ? we have no news :( [/quote]
It syncs the app so each frame takes as long as you specified in game.ini (frametime=30, by default).

And at Overloaded, some guys are still enjoying their holidays, so the others are very busy. :)
ok ! from one point of view it's interesting to sync the app but from the other, if we do so, we can't use Timer() because if NOT changestate, the basecount is reseted ?

anyway, if we do use our own sync in the main loop, is it ok that we remove that part ?

some people holydays are longer than mine !!! :)