-
Notifications
You must be signed in to change notification settings - Fork 16
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
Switching between renderers #66
Conversation
That's fixes video mode in settings
Switching between vk and any other renderer requires full window teardown and recreation with different SDL flags. I'm not entirely sure, but I suspect that this would require quite a bit of work on Xash3D engine side. Can you check that |
The advice helped! To switch correctly, we need to recreate the window. With some hacks, it worked. Well... Almost |
@w23 We may need your help and a lot of fixes to switch render correctly |
Same as in OpenGL renderer
918db33
to
eb0668d
Compare
At the moment, switching the renderer is working. But it has three problems that prevent from playing comfortably:
VK renderer crashes are caused by problems with textures. |
Closed. After creating the texture manager, PR will be cleaned and re-opened in the parent repository |
Description
Xash3D FWGS engine already has a mechanism for switching renderers via the r_refdll сvar. But now it's broken. The vulkan is not in the list, switching renderers causes glitches, and the window is not recreated.
Plan
In this PR, I want to fix the switching of renderers, as well as all related problems.
Behavior changing
The -ref option will override the r_refdll variable and after restarting the render will remain the same as the last time
Todo
Engine
Refactoring
Settings gui
Refused todos
Thats draft, switch is not working properly!