-
-
Notifications
You must be signed in to change notification settings - Fork 21.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
Change Server initialization order #61436
Change Server initialization order #61436
Conversation
reduz
commented
May 26, 2022
- Registration of server classes happened after Display initialization.
- This made no sense in practice and avoided the registration of custom server drivers (like custom XR server, custom Rendering server, custom XR server).
- Initialization moved to before Display.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm getting a weird crash later on in the process when testing OpenXR but I don't think this is due to this PR. This PR seems to do exactly what it should and allows me to get through the OpenXR initialisation
There seems to be issues with running |
@akien-mga I tried to replicate it locally and I can't. I am not entirely sure what may be causing them. |
Fix is here: #61585 Turns out it is because when we initialise RenderingServer, it calls back into itself which is not allowed in a constructor. |
8c419bc
to
c8925c7
Compare
* Registration of server classes happened after Display initialization. * This made no sense in practice and avoided the registration of custom server drivers (like custom XR server, custom Rendering server, custom XR server). * Initialization moved to _before_ Display.
c8925c7
to
54542ef
Compare
Thanks! |