Skip to content

Commit 8fbcecd

Browse files
committed
Don't draw debug system if it has faded out
Microoptimization yes
1 parent 6866c8e commit 8fbcecd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/engine/game/debugsystem.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,6 +1321,10 @@ function DebugSystem:onWheelMoved(x, y)
13211321
end
13221322

13231323
function DebugSystem:draw()
1324+
if self.state == "IDLE" and self.menu_anim_timer >= 1 then
1325+
return
1326+
end
1327+
13241328
love.graphics.setFont(self.font)
13251329
Draw.setColor(1, 1, 1, 1)
13261330

0 commit comments

Comments
 (0)