internal/ui: bug fix: adjust the max skip count for fullscreening

Closes #2500
This commit is contained in:
Hajime Hoshi 2022-12-20 02:46:21 +09:00
parent d1b9a0a9a1
commit 3eb2b480be

View File

@ -166,7 +166,8 @@ func (c *context) drawGame(graphicsDriver graphicsdriver.Graphics, forceDraw boo
return err
}
const maxSkipCount = 3
// 180 might be too big but this is a enough value to consider exiting from fullscreen on macOS (#2500).
const maxSkipCount = 180
if !forceDraw && !theGlobalState.isScreenClearedEveryFrame() && !c.isOffscreenDirty {
if c.skipCount < maxSkipCount {