]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commit
Bring some accuracy on the fps counter:
authorterencehill <piuntn@gmail.com>
Thu, 23 Sep 2010 22:38:04 +0000 (00:38 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 23 Sep 2010 22:38:04 +0000 (00:38 +0200)
commitd5e6267ea62a1bece388933f2d36c1c239eed383
tree5225537b4edcc80c823782d8da36b78ad2693859
parent5db7ca880239f00f15457c3574493a6112418e6a
Bring some accuracy on the fps counter:
- Get the time with gettime(GETTIME_REALTIME) because for some reason the vars time and frametime are not accurate (frametime and (time - time of previous frame) are always > 0.1) and because otherwise fps depend on slowmo value
- Fix inaccurate fps at low hud_panel_engineinfo_framecounter_time values and default this cvar to 0.1 instead of 1 for both fast update and good reading
defaultXonotic.cfg
qcsrc/client/csqc_builtins.qc
qcsrc/client/hud.qc