Skip to content

Commit

Permalink
optimized cpu usage
Browse files Browse the repository at this point in the history
  • Loading branch information
s1moe2 committed Apr 5, 2020
1 parent db9f0bf commit 976735c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tictacgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
const (
screenWidth = 600 // must be a square
screenHeight = 600
frameRate = 10
frameRate = 30
)

func main() {
Expand Down Expand Up @@ -72,8 +72,9 @@ func setup() {
}
}

sdl.Delay(1000 / frameRate)
}

sdl.Delay(1000 / frameRate)
}
}

Expand Down

0 comments on commit 976735c

Please sign in to comment.