]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/view.qc
Use gettime(GETTIME_FRAMESTART) instead of gettime(GETTIME_REALTIME) to calculate...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / view.qc
index ee9164bae1a279b4c0038441b7b595c637c4a26f..6eb3c851563a70b67bd09d9ec061d7f80f120ef7 100644 (file)
@@ -372,7 +372,8 @@ void fpscounter_update()
        if(!STAT(SHOWFPS))
                return;
 
-       float currentTime = gettime(GETTIME_REALTIME);
+       float currentTime = gettime(GETTIME_FRAMESTART);
+
        showfps_framecounter += 1;
        if(currentTime - showfps_prevfps_time > STAT(SHOWFPS))
        {
@@ -388,7 +389,7 @@ void fpscounter_update()
 
 STATIC_INIT(fpscounter_init)
 {
-       float currentTime = gettime(GETTIME_REALTIME);
+       float currentTime = gettime(GETTIME_FRAMESTART);
        showfps_prevfps_time = currentTime; // we must initialize it to avoid an instant low frame sending
 }