Sys_DirtyTime returns double, float doesn't have enough accuracy to hold
a gettimeofday() result, which caused VERY seldom loading screen updates
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11847
d7cf8633-e32d-0410-b094-
e92efae38249
VID_Finish();
}
-static float loadingscreen_lastupdate;
+static double loadingscreen_lastupdate;
void SCR_UpdateLoadingScreen (qboolean clear, qboolean startup)
{
// limit update rate
if (scr_loadingscreen_maxfps.value)
{
- float t = Sys_DirtyTime();
+ double t = Sys_DirtyTime();
if ((t - loadingscreen_lastupdate) < 1.0f/scr_loadingscreen_maxfps.value)
return;
loadingscreen_lastupdate = t;