mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +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:
|
||||
//
|
||||
// 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() {
|
||||
// return nil
|
||||
// }
|
||||
// // draw something to the screen
|
||||
//
|
||||
// // Draw something to the screen.
|
||||
//
|
||||
// return nil
|
||||
// }
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user