-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breakout crashes on Windows with bgfx video driver #6106
Comments
I have updates to the fixedfreq monitor code pending for weeks now which also should fix some edge cases in addition to a speed improvement. I have a look into the asserts issues and will fix those. |
Updated title. |
@MooglyGuy Can you please be more specific which asserts get thrown? I just did using the official build chain
and I am experiencing no asserts from start to end. I do not have a native windows development environment. BGFX will crash immediately on every game in my virtualbox Win7 machine. |
|
What you experience is that the driver validation fails. I have no idea how this could happen. I have invested quite some time to try to recreate this but had no success.
Once we have solved the validate issue : When debugging with In the meantime I managed to get bgfx working in my Win7 VM. I can confirm that my next commit will fix the crash when running with bgfx. I think that the crash is triggered when you run a game with a very very high screen refresh rate - e.g. >1 kHz. That can happen in the current code in fixedfreq.cpp during the first couple milliseconds until vsync detection has stabilizied. Same as on a real monitor.
|
The netlist validation failures also happen to me with
The macro expansion is being messed up leading to bogus terminal names: |
@firewave: Thanks for identifying the source of all evil :-) Actually,
Now, on getting there, Note to myself: The second link has a workaround for vs compilers for counting args. Hopefully it is |
The PSTRINGIFY section in putil.h should be changed to something like the following for MSVC compilers:
Will only have time for this later this week. The code delivers expected results on godbolt.org for msvc, g++ and clang++ but needs more testing. |
Compiles and no more validation failures. |
Workaround for a bug in msvc. __VA_ARGS__ are expanded to a single token in msvc, all other compilers expand to a list of tokens.
Fixed by 7b695da |
There is the following issue on MAMETesters: https://mametesters.org/view.php?id=7531
However, I cannot debug the issue. VS2019 is my preferred debugger, and in an actual debug-enabled build, there are numerous assorted asserts that get thrown well before the crash can even occur.
@couriersud needs to sort out his own house before I can even begin to properly diagnose what's up with the BGFX rendering backend.
The text was updated successfully, but these errors were encountered: