ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3.03k stars 199 forks source link

Stretched scaling in Jazz Jackrabbit 2 in windowed mode #475

Open daniel-j opened 2 years ago

daniel-j commented 2 years ago

When playing Jazz Jackrabbit 2 in windowed mode, gamescope crops away the titlebar and menubar, which is great. But then it gets the scaling wrong, and it stretches the game pixels. For example running the game at 640x480 gets stretched to 652x530 (tested on Steam Deck). Here is a screenshot with integer scaling, to prove that it is not scaling properly:

20220425225658_1

Screenshot from the game: Jazz2-EASTER1-001

For reference, when running JJ2 on a GNOME desktop, you can see the menus and border: Screenshot from 2022-04-25 22-59-11

The game has a 640x400 video mode when in windowed, which would work great on the Deck, but since it gets the width and height wrong, it looks bad.

The game has a fullscreen (DirectDraw) mode, but it seems to draw more power on the Deck so I would prefer to run it windowed (and gamescope crops and scales it up). I tried adding gamescope -w 768 -h 480 -- %command% to the launch arguments, but I can only hear the game music, no game window appear and SD ui just keep spinning.

This issue is similar to #472, atleast when trying to run gamescope nested.

Jazz Jackrabbit 2 TSF running with the Plus patch from GOG.

daniel-j commented 2 years ago

Hmm, this seems to be caused by Proton/wine’s fullscreen hack/fshack, which gives the wrong size to gamescope.