mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-11-01 04:02:48 +08:00
ebiten: rename TPS functions
* SetMaxTPS() -> SetTPS() * MaxTPS() -> TPS() * CurrentTPS() -> ActualTPS() * CurrentFPS() -> ActualFPS() Closes #2071
This commit is contained in:
@@ -279,7 +279,7 @@ func (g *Game) Draw(screen *ebiten.Image) {
|
||||
}
|
||||
|
||||
ebitenutil.DebugPrintAt(screen, "WASD: move", 160, 0)
|
||||
ebitenutil.DebugPrintAt(screen, fmt.Sprintf("TPS: %0.2f", ebiten.CurrentTPS()), 51, 51)
|
||||
ebitenutil.DebugPrintAt(screen, fmt.Sprintf("TPS: %0.2f", ebiten.ActualTPS()), 51, 51)
|
||||
ebitenutil.DebugPrintAt(screen, fmt.Sprintf("Rays: 2*%d", len(rays)/2), padding, 222)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user