call Mem_CheckSentinelsGlobal every frame if developer_memorydebug cvar
is on (or MEMPARANOIA is on)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9482
d7cf8633-e32d-0410-b094-
e92efae38249
#if MEMPARANOIA
Mem_CheckSentinelsGlobal();
#if MEMPARANOIA
Mem_CheckSentinelsGlobal();
+#else
+ if (developer_memorydebug.integer)
+ Mem_CheckSentinelsGlobal();
#endif
// if there is some time remaining from this frame, reset the timers
#endif
// if there is some time remaining from this frame, reset the timers
imageformat_t *firstformat, *format;
unsigned char *f, *data = NULL;
char basename[MAX_QPATH], name[MAX_QPATH], *c;
imageformat_t *firstformat, *format;
unsigned char *f, *data = NULL;
char basename[MAX_QPATH], name[MAX_QPATH], *c;
- if (developer_memorydebug.integer)
- Mem_CheckSentinelsGlobal();
+ //if (developer_memorydebug.integer)
+ // Mem_CheckSentinelsGlobal();
if (developer_texturelogging.integer)
Log_Printf("textures.log", "%s\n", filename);
Image_StripImageExtension(filename, basename, sizeof(basename)); // strip filename extensions to allow replacement by other types
if (developer_texturelogging.integer)
Log_Printf("textures.log", "%s\n", filename);
Image_StripImageExtension(filename, basename, sizeof(basename)); // strip filename extensions to allow replacement by other types
{
if (developer.integer >= 10)
Con_Printf("loaded image %s (%dx%d)\n", name, image_width, image_height);
{
if (developer.integer >= 10)
Con_Printf("loaded image %s (%dx%d)\n", name, image_width, image_height);
- if (developer_memorydebug.integer)
- Mem_CheckSentinelsGlobal();
+ //if (developer_memorydebug.integer)
+ // Mem_CheckSentinelsGlobal();
if(allowFixtrans && r_fixtrans_auto.integer)
{
int n = fixtransparentpixels(data, image_width, image_height);
if(allowFixtrans && r_fixtrans_auto.integer)
{
int n = fixtransparentpixels(data, image_width, image_height);
// texture loading can take a while, so make sure we're sending keepalives
CL_KeepaliveMessage(false);
// texture loading can take a while, so make sure we're sending keepalives
CL_KeepaliveMessage(false);
- if (developer_memorydebug.integer)
- Mem_CheckSentinelsGlobal();
+ //if (developer_memorydebug.integer)
+ // Mem_CheckSentinelsGlobal();