]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
make the first frame even nicer
authorRudolf Polzer <divVerent@xonotic.org>
Sat, 4 Jun 2011 04:49:00 +0000 (06:49 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Sat, 4 Jun 2011 04:49:00 +0000 (06:49 +0200)
qcsrc/client/View.qc

index 90601ce953ed3a52d71331df9bd149549db6a553..8c7f87c984c089b187d380164cdf9e3d3a7e023a 100644 (file)
@@ -488,7 +488,10 @@ void CSQC_UpdateView(float w, float h)
        TargetMusic_Advance();
        Fog_Force();
 
-       drawframetime = bound(0.000001, time - drawtime, 1);
+       if(drawtime == 0)
+               drawframetime = 0.01666667; // when we don't know fps yet, we assume 60fps
+       else
+               drawframetime = bound(0.000001, time - drawtime, 1);
        drawtime = time;
 
        // watch for gametype changes here...