Game Development Community

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

#1
01/19/2003 (5:14 am)
It is indeed.
People at BraveTree already pointed it out.