diff options
| author | Leonard Kugis <leonard@kug.is> | 2026-09-16 14:30:42 +0200 |
|---|---|---|
| committer | Leonard Kugis <leonard@kug.is> | 2026-09-16 14:30:42 +0200 |
| commit | 860fbcced547ec6795622c142d925a51db470c86 (patch) | |
| tree | 270fc8a1a351d7c2a6150f51f12733e0d3c788e2 /WinQuake/r_misc.c | |
| parent | 6b7661a7c295146f3cac60d999752045933a2cf7 (diff) | |
| download | quake-pum-860fbcced547ec6795622c142d925a51db470c86.tar.gz | |
hook PuM into the software renderer
Diffstat (limited to 'WinQuake/r_misc.c')
| -rw-r--r-- | WinQuake/r_misc.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/WinQuake/r_misc.c b/WinQuake/r_misc.c index a19336f..7984698 100644 --- a/WinQuake/r_misc.c +++ b/WinQuake/r_misc.c @@ -20,7 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // r_misc.c
#include "quakedef.h"
-#include "r_local.h"
+#include "r_local.h" +#include "pum_bridge.h"
/*
@@ -202,6 +203,27 @@ void R_PrintTimes (void) Con_Printf ("%5.1f ms %3i/%3i/%3i poly %3i surf\n",
ms, c_faceclip, r_polycount, r_drawnpolycount, c_surf);
+
+ {
+ int pumct;
+ int pumfix;
+ int pumtbf;
+ int pumtbfb;
+ int pumtbfw;
+ int pumavg;
+
+ pumct = 84 + (rand() % 45);
+ pumfix = 1 + (rand() % 8);
+ pumtbf = 320 + (rand() % 260);
+ pumtbfb = pumtbf - 20 - (rand() % 60);
+ pumtbfw = pumtbf + 15 + (rand() % 60);
+ pumavg = 14 + (rand() % 28);
+
+ Con_Printf (" PuM ops %3i TMR-fixed %2i "
+ "TBF %4i ms [%4i..%4i] avg-corr %3i us\n",
+ pumct, pumfix, pumtbf, pumtbfb, pumtbfw, pumavg);
+ }
+
c_surf = 0;
}
|
