indigodarkwolf / box16

A fork of the official X16 emulator, converted to C++20 and with a bunch of features tweaked and added.
MIT License
41 stars 19 forks source link

Bug: Emulator doesn't render on some drivers. #34

Closed indigodarkwolf closed 2 years ago

indigodarkwolf commented 2 years ago

See also: (Discord)

I'm walking through the debugger. It's something related to OpenGL. glGetSynciv is always coming back GL_UNSIGNALED and glClientWaitSync is always coming back GL_TIMEOUT_EXPIRED. Both of those conditions skip the rendering step. Looks like maybe a driver thing. Yup, when I remove both USE_GL_GET_SYNC and USE_GL_CLIENT_WAIT_SYNC it works.

The fix I would like to see:

indigodarkwolf commented 2 years ago

This was eventually confirmed to fix the known problem cases where Box16 wasn't rendering. Thanks again!