Game Development Community

T3D 1.1 final - plz check memory leak - LOGGED (THREED-3156)

by Enel · in Torque 3D Professional · 11/23/2011 (12:23 am) · 2 replies

Build: 1.1 final

Platform: Windows 7

Target: in game

Issues: increase memory 80Kb periodically in this function "void SkyBox::_initRender()"

1. Launch the game
2. create skybox
3. look at this function SkyBox::_renderObject( ObjectRenderInst *ri, SceneRenderState *state, BaseMatInstance *mi )
4. And called "_initRender" function per tick and increase memory leak

#1
11/29/2011 (5:56 pm)
/* this code also memory leak location

void TSShapeInstance::reSkin (....)
{
....
....
...

initMaterialList(); <-- here
}

if you are switching player datablock you will be find memory leak

P.S. must be called TSShapeInstance::reSkin

P.S.2 find memory leak with me :)  */

this memory leak occur by so fast texture cleanup cache time

so i do cleanup time is up to 10

TEXMGR->cleanupCache( 10 );
#2
01/11/2012 (12:10 pm)
Thanks Enel for the bug report. I've gone ahead and logged this issue under ticket number THREED-3156.