A bug in gameGuiCtrl.cc ?
by Julien Carme · in Torque Game Engine · 01/19/2003 (4:14 am) · 1 replies
I noticed something strange in the code of gameTSCtrl.cc:
gameTSCtrl::onRender, line 76:
if(!skipRender)
{
Parent::onRender(offset, updateRect);
renderChildControls(offset, updateRect);
}
And in guiTSCtrl.cc, in guiTSCtrl::onRender, line 148:
renderChildControls(offset, updateRect);
The call to renderChildControls in gameTSCtrl seems to be redundant with the one in its parent, and it could be a significant waste of CPU time (especially in the case of multiple viwport).
Julien
gameTSCtrl::onRender, line 76:
if(!skipRender)
{
Parent::onRender(offset, updateRect);
renderChildControls(offset, updateRect);
}
And in guiTSCtrl.cc, in guiTSCtrl::onRender, line 148:
renderChildControls(offset, updateRect);
The call to renderChildControls in gameTSCtrl seems to be redundant with the one in its parent, and it could be a significant waste of CPU time (especially in the case of multiple viwport).
Julien
About the author
Torque 3D Owner Frank Bignone
Darkhand Studio
People at BraveTree already pointed it out.