From: Rudolf Polzer Date: Sat, 4 Jun 2011 04:49:00 +0000 (+0200) Subject: make the first frame even nicer X-Git-Tag: xonotic-v0.5.0~211^2~19 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=df9bf70f1f7a9b28f0c2955f228cbba777acaabc;p=xonotic%2Fxonotic-data.pk3dir.git make the first frame even nicer --- diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index 90601ce95..8c7f87c98 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -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...