-
Notifications
You must be signed in to change notification settings - Fork 157
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
Vulkan renderer only draws in top quarter of screen #304
Comments
Seems like wayland is reporting wrong size to game due to scaling factor. Are you using xwayland or did you force to wayland with sdl video driver env? r_mode is not used by default in r_fullscreen 1, r_modeFullscreen is. Also if your desktop resolution is in fact 4k you should be able to use -2 and not specify the width/height cvars. Note it works fine for 4k res for me under Manjaro Linux KDE. Albeit this is X11 and NOT wayland. |
It is using Wayland. Still getting the same behavior with
|
You should probably try to force it to use x11 with |
Vulkan does work correctly with |
Try to compile and run debug build and post |
SDL_WINDOW_ALLOW_HIGHDPI presumably desired on wayland and macOS but even then not guaranteed. SDL_Vulkan_GetDrawableSize / SDL_GL_GetDrawableSize / SDL_GetWindowSize will have different behavior iirc. Not really great wayland support with highdpi until SDL3 which has a lot of other downsides still that I can tell. |
SDL2 might not report correctly window dimensions for Vulkan in Wayland mode, I see no reliable ways to fix this on engine side |
now |
What else did you change on the system? |
I'm on Arch Linux using Nvidia Open drivers and Wayland. I'm using the
quake3e-git
package from the AUR.Using the Vulkan renderer, the game only renders in the top quarter of my fullscreen window as shown. When I set
r_fullscreen 0
, the game still only renders in the top quarter of the window.cl_renderer opengl
renders the entire fullscreen window as expected.Perhaps relevant settings:
The text was updated successfully, but these errors were encountered: