Skip to content
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

Wayland - DISPLAY = exposes lowest capability first, game takes lowest FPS as result #1317

Open
zDEFz opened this issue Nov 16, 2024 · 2 comments
Labels
upstream Not directly related to this repo

Comments

@zDEFz
Copy link

zDEFz commented Nov 16, 2024

I am using latest sway with wlroots-git and mesa.
Having 4 displays, one with 144Hz, the other two have 240Hz and the best has 360Hz.
Running with DISPLAY= %command%, the game "Taiko no Tatsujin Demo" picks up 144Hz => 144 FPS, instead of the highest possible, 360Hz => 360FPS.

When this is ran from XWayland, 360FPS are taken with Auto setting.
What can I do?

@whrvt
Copy link
Contributor

whrvt commented Nov 18, 2024

this is an upstream wine issue, but you can try applying my really hacky patch to workaround this. you can save the patch to your wine-tkg-userpatches folder and change the extension from .patch to .mypatch.

to choose your monitor, set the WINE_WAYLAND_DISPLAY_INDEX=monitorindex environment variable, where you'd replace the "monitorindex" with the index of your 360hz monitor from xrandr --listmonitors.

@zDEFz
Copy link
Author

zDEFz commented Nov 18, 2024

this is an upstream wine issue, but you can try applying my really hacky patch to workaround this. you can save the patch to your wine-tkg-userpatches folder and change the extension from .patch to .mypatch.

to choose your monitor, set the WINE_WAYLAND_DISPLAY_INDEX=monitorindex environment variable, where you'd replace the "monitorindex" with the index of your 360hz monitor from xrandr --listmonitors.

That worked.

Is there any way to arbitrarily advertise the refresh rate?
I did even try with an dummy output that has 1000Hz and overlaid it on-top of my current screen.
It did not affect the games framerate at all.

@Tk-Glitch Tk-Glitch added the upstream Not directly related to this repo label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Not directly related to this repo
Projects
None yet
Development

No branches or pull requests

3 participants