mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
internal/clock: refactoring
This commit is contained in:
parent
c5e952d196
commit
d4e1787154
@ -54,16 +54,14 @@ func init() {
|
|||||||
|
|
||||||
func ActualFPS() float64 {
|
func ActualFPS() float64 {
|
||||||
m.Lock()
|
m.Lock()
|
||||||
v := actualFPS
|
defer m.Unlock()
|
||||||
m.Unlock()
|
return actualFPS
|
||||||
return v
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func ActualTPS() float64 {
|
func ActualTPS() float64 {
|
||||||
m.Lock()
|
m.Lock()
|
||||||
v := actualTPS
|
defer m.Unlock()
|
||||||
m.Unlock()
|
return actualTPS
|
||||||
return v
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func max(a, b int64) int64 {
|
func max(a, b int64) int64 {
|
||||||
|
Loading…
Reference in New Issue
Block a user