WillPower3309 / swayfx

SwayFX: Sway, but with eye candy!
MIT License
1.42k stars 54 forks source link

60 FPS cap #363

Open Zilibobka-S opened 4 weeks ago

Zilibobka-S commented 4 weeks ago

swayfx version 0.4-5f42307 (Sep 26 2024, branch 'master') (based on sway 1.9.0) Config: https://gist.github.com/Zilibobka-S/3dc11b22270e699f6264578914bd9e08

I tried in games, because they start lag. So: When the game is windowed, there is no FPS cap.

But when the game is in fullscreen FPS suddenly starts capping

voidcityy commented 2 days ago

It's default Wayland behavior to avoid tearing. Sway 1.10 lets you enable tearing (and thus unlock your FPS) with allow_tearing option, but swayFX is currently 1.9-based and you can't really do anything on it. There is the max_render_time option that you can set to a lower value like 6 to increase your FPS but it's not a substitute for tearing, most games won't run smoothly with it.