Update comments

This commit is contained in:
Hajime Hoshi 2018-07-11 11:06:18 +09:00
parent 3cd9dfd800
commit aa06c5ffa5

5
run.go
View File

@ -55,9 +55,8 @@ func setDrawingSkipped(skipped bool) {
atomic.StoreInt32(&isDrawingSkipped, v)
}
// IsDrawingSkipped returns true if the game is running too slowly to keep 60 FPS of rendering.
// The game screen is not updated when IsDrawingSkipped is true.
// It is recommended to skip heavy processing, especially drawing screen,
// IsDrawingSkipped returns true if rendering result is not adopted.
// It is recommended to skip drawing images or screen
// when IsDrawingSkipped is true.
//
// The typical code with IsDrawingSkipped is this: