Game Development Community

SceneLighting and Light Cache

by UZON · in Torque Game Engine · 01/17/2008 (4:35 am) · 2 replies

Can someone explain for me how those four variables works and how can i optimize (or remove) the light in the mission load by those variables.

$pref::sceneLighting::cacheLighting
$pref::sceneLighting::cacheSize
$pref::sceneLighting::purgeMethod
$pref::sceneLighting::terrainGenerateLevel

#1
08/01/2009 (7:57 am)
I bring back the current post. Anyone about the purpose of these variables? I have found them in the engine\lightingSystem\sgSceneLighting.cc but it's hard for me to understand the code.

Thanks
#2
08/02/2009 (4:39 am)
I found informations about $pref::sceneLighting::terrainGenerateLevel. It takes values from 0 to 4 and it helps to speed up scene relights (recomputing the mission's static lighting).

0 (zero) means that relights will be done with the lowest precision. The highest value 4 can take 50 or more times length of time it takes to relight with a setting of 0!

via "Game Programmers Guide To Torque"