mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 03:58:55 +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 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
|
c.lastUpdated = n
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user