loop: Bug fix: the threshold to detect if the game stops was too strict (#)

This commit is contained in:
Hajime Hoshi 2016-08-29 01:40:43 +09:00
parent cddaae55dd
commit c23224c56b

View File

@ -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
}