Lots of feature upgrades.

This commit is contained in:
Justin Marshall
2026-05-30 02:50:21 -07:00
parent 7806bb8ef8
commit ea74cd9921
13 changed files with 2433 additions and 153 deletions
+17
View File
@@ -703,3 +703,20 @@ BOOL nthread_run_gameloop(BOOL bReloop) {
return (lDelta >= 0);
}
//******************************************************************
//******************************************************************
int nthread_get_render_interp()
{
long lFrameMs = 1000 / GAME_FRAMES_PER_SECOND;
long lUntilNextFrame = sglGameClock - (long)GetTickCount();
long lElapsed = lFrameMs - lUntilNextFrame;
if (lElapsed <= 0)
return 0;
if (lElapsed >= lFrameMs)
return 256;
return (int)((lElapsed * 256) / lFrameMs);
}