mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
loop: Bug fix: the threshold to detect if the game stops was too strict (#)
This commit is contained in:
parent
cddaae55dd
commit
c23224c56b
@ -146,7 +146,7 @@ func (c *runContext) render(g GraphicsContext) error {
|
||||
}()
|
||||
|
||||
// If lastUpdated is too old, we assume that screen is not shown.
|
||||
if 5*int64(time.Second)/int64(fps) < n-c.lastUpdated {
|
||||
if 10*int64(time.Second)/int64(fps) < n-c.lastUpdated {
|
||||
c.lastUpdated = n
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user