Merge branch 'redisplay_fix' into 'master'
Redisplay fix Calling redisplay() multiple times per turn is notorious for causing lag. The worst offender is probably Smoke Bomb, and it just got stripped from Creeping Dark. This commit introduces a new scheduleRedisplay method, which uses little-known feature of game:onTickEnd to ensure that a redisplay would only get called once per this tick, not causing any frame drops.
No related branches found
No related tags found
Showing
- game/engines/default/engine/Map.lua 5 additions, 0 deletionsgame/engines/default/engine/Map.lua
- game/modules/tome/data/talents/chronomancy/anomalies.lua 2 additions, 2 deletionsgame/modules/tome/data/talents/chronomancy/anomalies.lua
- game/modules/tome/data/talents/cursed/darkness.lua 1 addition, 1 deletiongame/modules/tome/data/talents/cursed/darkness.lua
- game/modules/tome/data/talents/spells/earth.lua 2 additions, 2 deletionsgame/modules/tome/data/talents/spells/earth.lua
- game/modules/tome/data/talents/spells/fire-alchemy.lua 2 additions, 1 deletiongame/modules/tome/data/talents/spells/fire-alchemy.lua
Loading
Please register or sign in to comment