mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 12:56:06 +00:00
fix(game-env): OpenGL games stop waiting for each screen refresh (#1715)
With no frame limit, AIO's Direct3D 7 (DirectDraw) test ran at exactly 144 fps on a 144 Hz panel: every frame waited one refresh (6.94 ms). Wine asks for a swap interval of 1 on every OpenGL window, and WineD3D's front-buffer drawing used by DirectDraw and Direct3D 1-7 never lowers it; it only sets the interval in its present path. Mesa's Zink then presents in FIFO. droiddeck-game-env sets vblank_mode=0 for games launched through Proton before the game's environment edits, so a value set in the launch options or the editor wins and an editor Remove leaves Mesa's default. Steam's own runs in compatdata/0 are unchanged. Steam's Frame Limit still holds a game: gamescope's WSI layer presents every swapchain in FIFO while its limiter is on. On the AYANEO Pocket FIT, AIO Direct3D 7 went from 144 to 2,345 and 2,265 fps (1 % low 99 -> 620) with no limit; with the Quick Access limit at 144 and 72 it held at 143.76 and 71.92.
This commit is contained in:
1 parent
213c2da57e
commit
9d82df6981
4 files changed
+58
-1
No files matched your search
@@ -96,6 +96,15 @@ A Unity game under FEX (`UnityPlayer.dll` for Windows builds under Proton,
|
||||
turns it off: without TSO such games can deadlock or crash (seen with Megabonk
|
||||
and Crab Game). A FEX preset chosen for the game itself still applies.
|
||||
|
||||
Games launched through Proton get `vblank_mode=0`, so OpenGL does not wait for
|
||||
each screen refresh. Wine asks for a swap interval of 1 on every OpenGL window, and WineD3D's front-buffer
|
||||
drawing (DirectDraw, Direct3D 1–7) never lowers it, so those games ran at the
|
||||
refresh rate even with no frame limit (AIO Direct3D 7: 144 fps at 144 Hz, about
|
||||
2,260 with the wait off). Steam's Frame Limit still holds a game: while it is on,
|
||||
gamescope's WSI layer presents every swapchain in FIFO at the limit. A
|
||||
`vblank_mode` from the launch options or the environment editor is kept, and
|
||||
**Remove** in the editor leaves Mesa's own default.
|
||||
|
||||
## Defaults and available suggestions
|
||||
|
||||
The initial configuration enables Mesa shader caching with
|
||||
|
||||
Reference in new issue
Block a user