mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 06:10:56 +00:00
[sw] Move surf and edge stats printing to begin_frame
Part of cleaning up SetupFrame
This commit is contained in:
parent
3414eb12a3
commit
0cfff27cd0
2 changed files with 22 additions and 20 deletions
|
@ -190,29 +190,9 @@ R_SetUpFrustumIndexes (void)
|
|||
void
|
||||
R_SetupFrame (void)
|
||||
{
|
||||
int edgecount;
|
||||
vrect_t vrect;
|
||||
float w, h;
|
||||
|
||||
if (r_numsurfs->int_val) {
|
||||
if ((surface_p - surfaces) > r_maxsurfsseen)
|
||||
r_maxsurfsseen = surface_p - surfaces;
|
||||
|
||||
Sys_Printf ("Used %ld of %ld surfs; %d max\n",
|
||||
(long)(surface_p - surfaces),
|
||||
(long)(surf_max - surfaces), r_maxsurfsseen);
|
||||
}
|
||||
|
||||
if (r_numedges->int_val) {
|
||||
edgecount = edge_p - r_edges;
|
||||
|
||||
if (edgecount > r_maxedgesseen)
|
||||
r_maxedgesseen = edgecount;
|
||||
|
||||
Sys_Printf ("Used %d of %d edges; %d max\n", edgecount,
|
||||
r_numallocatededges, r_maxedgesseen);
|
||||
}
|
||||
|
||||
R_CheckVariables ();
|
||||
|
||||
R_AnimateLight ();
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include "QF/cvar.h"
|
||||
|
||||
#include "QF/plugin/general.h"
|
||||
#include "QF/plugin/vid_render.h"
|
||||
|
||||
|
@ -109,6 +111,26 @@ sw_vid_render_shutdown (void)
|
|||
static void
|
||||
sw_begin_frame (void)
|
||||
{
|
||||
if (r_numsurfs->int_val) {
|
||||
int surfcount = surface_p - surfaces;
|
||||
int max_surfs = surf_max - surfaces;
|
||||
if (surfcount > r_maxsurfsseen)
|
||||
r_maxsurfsseen = surfcount;
|
||||
|
||||
Sys_Printf ("Used %d of %d surfs; %d max\n",
|
||||
surfcount, max_surfs, r_maxsurfsseen);
|
||||
}
|
||||
|
||||
if (r_numedges->int_val) {
|
||||
int edgecount = edge_p - r_edges;
|
||||
|
||||
if (edgecount > r_maxedgesseen)
|
||||
r_maxedgesseen = edgecount;
|
||||
|
||||
Sys_Printf ("Used %d of %d edges; %d max\n", edgecount,
|
||||
r_numallocatededges, r_maxedgesseen);
|
||||
}
|
||||
|
||||
// do 3D refresh drawing, and then update the screen
|
||||
if (vr_data.scr_fullupdate++ < vid.numpages) {
|
||||
vr_data.scr_copyeverything = 1;
|
||||
|
|
Loading…
Reference in a new issue