light update for every three frames because why not *shrug*

This commit is contained in:
minjaesong
2021-08-15 00:40:32 +09:00
parent deb2dcf28b
commit a064275cfb

View File

@@ -206,7 +206,7 @@ object IngameRenderer : Disposable {
if (!gamePaused) {
measureDebugTime("Renderer.ApparentLightRun") {
// recalculate for even frames, or if the sign of the cam-x changed
if (AppLoader.GLOBAL_RENDER_TIMER % 2 == 0 || WorldCamera.x * oldCamX < 0)
if (AppLoader.GLOBAL_RENDER_TIMER % 3 == 0 || WorldCamera.x * oldCamX < 0)
LightmapRenderer.fireRecalculateEvent(actorsRenderBehind, actorsRenderFront, actorsRenderMidTop, actorsRenderMiddle, actorsRenderOverlay)
oldCamX = WorldCamera.x