Refactor resetForNewFrame()
nkrisztian89 opened this issue · comments
Krisztian Nagy commented
resetForNewFrame()
calls can take 4.5-4.8% of total time with shadows and dynamic lights off- the code can be refactored to not need it - a frame counter can be implemented and cached values can be marked with the frame number - so on a new frame, only the counter needs to be incremented