-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
A few shutdown & re-init bugs #3320
Comments
Check your setup, it looks like something is attaching to your D3D device. |
What do you mean by attaching to? Which issue are you responding to? If you mean issue 3, I only mean to report the potential issue and I can live with it. Issue 1 and Reproduced issue 1 on Mac + Metal. Issue 2... never got multi-threading to work with Mac + Metal. Edit: issue 2 is my mistake not calling reset and set view rect after re-init. Still not understanding why 1 happens, but I think at minimum the below log message is incorrect. It is not guaranteed to be single thread mode when the message says so. The Helloworld demo appears to be so on Mac.
|
Regarding issue 1, I faced a similar problem. The reason I suspect is that I did not report here nor proposed a PR yet to avoid making a wrong report due to limited BGFX knowledge, and make bkaradzic loose his time on it. We will finish porting our project (Visual Pinball X, OSS pinball simulator) and get back with bug report/fix when we'll have better validations/test cases performed. |
A few issues encountered when trying to get shutdown and re-init to work.
The program simply inits bgfx, shuts it down, then inits it again using the same Init struct.
Looks like it's relevant to the
BGFX_API_THREAD_MAGIC
checkMulti-thread mode. Mostly works but after 2nd init clearing stops working, with all backends.(fixed, user error)In both modes, below warning appears during shutdown:
d3d11
backend:d3d12
backend:GL and Vulkan seems fine. Metal and GLES not tested.
This issue is not as important as the first 2 since shutdown & re-init is not as useful on Windows.
The text was updated successfully, but these errors were encountered: