docs: Add comment to IsRunningSlowly (again)

This commit is contained in:
Hajime Hoshi 2018-02-03 00:57:10 +09:00
parent 35bbee9307
commit b9c115eb92

10
run.go
View File

@ -57,11 +57,17 @@ func setRunningSlowly(slow bool) {
// The typical code with IsRunningSlowly is this: // The typical code with IsRunningSlowly is this:
// //
// func update(screen *ebiten.Image) error { // func update(screen *ebiten.Image) error {
// // update the state //
// // Update the state.
//
// // When IsRunningSlowly is true, the rendered result is not adopted.
// // Skip rendering then.
// if ebiten.IsRunningSlowly() { // if ebiten.IsRunningSlowly() {
// return nil // return nil
// } // }
// // draw something to the screen //
// // Draw something to the screen.
//
// return nil // return nil
// } // }
// //