About SceneLighting::processCache() in sgSceneLighting.cc
by Isidoros · in Torque Game Engine · 09/03/2009 (7:36 am) · 0 replies
Iam trying to understand the purpose of global variables $pref::sceneLighting::cacheSize,
$pref::sceneLighting::purgeMethod.
I have found where in the core code they are used (sgSceneLighting.cc in the method SceneLighting::processCache()). Searching in the forum I can say that I have managed to make clear the general purpose of processCache(). It checks whether the .ml files should be deleted or not.
At the end of the method there is the comment "sort the entries by the correct method" and there is where the purgeMethod is used. I can't understand what exactly is getting sorted!
Finally whats the range of values that cachesize gets and what are these values depend upon? (an old post here)
Thnks!
$pref::sceneLighting::purgeMethod.
I have found where in the core code they are used (sgSceneLighting.cc in the method SceneLighting::processCache()). Searching in the forum I can say that I have managed to make clear the general purpose of processCache(). It checks whether the .ml files should be deleted or not.
At the end of the method there is the comment "sort the entries by the correct method" and there is where the purgeMethod is used. I can't understand what exactly is getting sorted!
Finally whats the range of values that cachesize gets and what are these values depend upon? (an old post here)
Thnks!
About the author