mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
internal/graphicsdriver/metal: fix comments
This commit is contained in:
parent
7418576c16
commit
599be725b9
@ -230,7 +230,7 @@ func (g *Graphics) flushIfNeeded(present bool) {
|
||||
} else {
|
||||
if delta := time.Second/60 - now.Sub(g.lastFlush); delta > 0 {
|
||||
// nextDrawable can return immediately when the command buffer is empty.
|
||||
// To avoid busy, sleep instead (#2520).
|
||||
// To avoid high CPU usage, sleep instead (#2520).
|
||||
time.Sleep(delta)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user