internal/graphicsdriver/metal: fix comments

This commit is contained in:
Hajime Hoshi 2023-01-03 23:16:01 +09:00
parent 7418576c16
commit 599be725b9

View File

@ -230,7 +230,7 @@ func (g *Graphics) flushIfNeeded(present bool) {
} else { } else {
if delta := time.Second/60 - now.Sub(g.lastFlush); delta > 0 { if delta := time.Second/60 - now.Sub(g.lastFlush); delta > 0 {
// nextDrawable can return immediately when the command buffer is empty. // 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) time.Sleep(delta)
} }
} }