mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
opengl: Bug fix: Remove infinite for loop and improve FPS on iOS
This commit is contained in:
parent
77a1117165
commit
e3ef0540a3
@ -83,12 +83,8 @@ loop:
|
||||
return err
|
||||
case <-c.worker.WorkAvailable():
|
||||
c.worker.DoWork()
|
||||
default:
|
||||
select {
|
||||
case <-chDone:
|
||||
break loop
|
||||
default:
|
||||
}
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user