]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - client.h
reworked r_viewscale_fpsscaling to use the time of SCR_DrawScreen
[xonotic/darkplaces.git] / client.h
index 0df5daeea926cd23146d55281e333ee55858d7f1..909a5e225d6c05142d8da0764a11d60aa1c38d3c 100644 (file)
--- a/client.h
+++ b/client.h
@@ -1824,6 +1824,9 @@ typedef struct r_refdef_s
        float shadowpolygonfactor;
        float shadowpolygonoffset;
 
+       // how long R_RenderView took on the previous frame
+       double lastdrawscreentime;
+
        // rendering stats for r_speeds display
        // (these are incremented in many places)
        r_refdef_stats_t stats;