light: seems like the problem is the ram access time

This commit is contained in:
minjaesong
2019-01-17 21:08:50 +09:00
parent b594c3b053
commit a379c7dea8
2 changed files with 28 additions and 20 deletions

View File

@@ -491,6 +491,8 @@ open class Ingame(batch: SpriteBatch) : IngameInstance(batch) {
/** RENDER CODE GOES HERE */
//renderGame(batch)
AppLoader.debugTimers["Ingame.render"] = measureNanoTime { renderGame() }
AppLoader.debugTimers["Ingame.render-Light"] =
(AppLoader.debugTimers["Ingame.render"] as Long) - ((AppLoader.debugTimers["Renderer.LightSequential"] as? Long) ?: 0)
}
protected fun updateGame(delta: Float) {