Skip to content

Commit

Permalink
Add back ticker to make it all work correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Nov 18, 2023
1 parent 5a0eead commit 38cb822
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/driver/glfw/loop.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ func (d *gLDriver) runGL() {

postEmptyEvent()

for {
eventTick := time.NewTicker(time.Second / 60) // TODO: Why does it not work without this?
for range eventTick.C {
d.waitForEvents()

if atomic.LoadUint32(&d.mainDone) == 1 {
Expand Down

0 comments on commit 38cb822

Please sign in to comment.