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