mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +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
|
return err
|
||||||
case <-c.worker.WorkAvailable():
|
case <-c.worker.WorkAvailable():
|
||||||
c.worker.DoWork()
|
c.worker.DoWork()
|
||||||
default:
|
case <-chDone:
|
||||||
select {
|
break loop
|
||||||
case <-chDone:
|
|
||||||
break loop
|
|
||||||
default:
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user