raylib on wayland spams frames
Reported by "daniel" on Discord.
`zig build raylib-app` (also raylib-zig) runs frames continuously. daniel got somewhere by doing:
```
raylib.endDrawing();
zglfw.waitEvents();
```
Instead of the normal:
```
raylib.enableEventWaiting();
raylib.endDrawing();
raylib.disableEventWaiting();
```
But `endDrawing` polls for events, and then `waitEvents` polls again. This needs to be investigated.
0 条评论