mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
docs: Add comment to IsRunningSlowly (again)
This commit is contained in:
parent
35bbee9307
commit
b9c115eb92
10
run.go
10
run.go
@ -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
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user