add -renderstats command-line arg to activate RENDERSTATS (d1x r1.36, r1.15, r1.33)

This commit is contained in:
Bradley Bell 2004-05-20 07:25:22 +00:00
parent fa4b1da8b7
commit 1de277460d
4 changed files with 14 additions and 4 deletions

View file

@ -1,5 +1,8 @@
2004-05-20 Matthew Mueller <donut@dakotacom.net>
* arch/ogl/ogl.c, include/gr.h, main/inferno.c: add -renderstats
command-line arg to activate RENDERSTATS (d1x r1.36, r1.15, r1.33)
* arch/ogl/ogl.c: fix last commit (d1x r1.35)
* arch/ogl/ogl.c: add RENDERSTATS counter for number of textures

View file

@ -1,4 +1,4 @@
/* $Id: ogl.c,v 1.23 2004-05-20 07:16:53 btb Exp $ */
/* $Id: ogl.c,v 1.24 2004-05-20 07:25:11 btb Exp $ */
/*
*
* Graphics support functions for OpenGL.
@ -72,7 +72,6 @@ int last_width=-1,last_height=-1;
int GL_TEXTURE_2D_enabled=-1;
int GL_texclamp_enabled=-1;
extern int gr_renderstats;
extern int gr_badtexture;
int r_texcount = 0, r_cachedtexcount = 0;
int ogl_alttexmerge=1;//merge textures by just printing the seperate textures?

View file

@ -1,4 +1,4 @@
/* $Id: gr.h,v 1.24 2004-05-15 16:25:35 schaffner Exp $ */
/* $Id: gr.h,v 1.25 2004-05-20 07:25:14 btb Exp $ */
/*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
@ -550,6 +550,8 @@ extern unsigned char Test_bitmap_data[64*64];
//shortcut to look at current font
#define grd_curfont grd_curcanv->cv_font
extern int gr_renderstats;
extern unsigned int FixDivide( unsigned int x, unsigned int y );
extern void gr_show_canvas( grs_canvas *canv );

View file

@ -1,4 +1,4 @@
/* $Id: inferno.c,v 1.76 2004-05-20 05:16:21 btb Exp $ */
/* $Id: inferno.c,v 1.77 2004-05-20 07:25:22 btb Exp $ */
/*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
@ -913,6 +913,9 @@ void print_commandline_help()
printf( " D2X Options:\n\n");
printf( " -noredundancy %s\n", "Do not send messages when picking up redundant items in multi");
printf( " -shortpackets %s\n", "Set shortpackets to default as on");
#ifdef OGL // currently only does anything on ogl build, so don't advertise othewise.
printf(" -renderstats %s\n", "Enable renderstats info by default");
#endif
printf( " -maxfps <n> %s\n", "Set maximum framerate (1-100)");
printf( " -notitles %s\n", "Do not show titlescreens on startup");
printf( " -hogdir <dir> %s\n", "set shared data directory to <dir>");
@ -1260,6 +1263,9 @@ int main(int argc, char *argv[])
}
//end addition - Victor Rachels
if (FindArg("-renderstats"))
gr_renderstats = 1;
if ( FindArg( "-autodemo" ))
Auto_demo = 1;