ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3.08k stars 206 forks source link

Color depth adjustement (8 or 16bpp) #134

Open TiBeN opened 3 years ago

TiBeN commented 3 years ago

Hi,

Just tried Gamescope with some Wine games (using Lutris). This is just incredible i can now play games in full screen which only launched with a virtual desktop normally resulting a tiny window.

Some old games requires color depth to be 8 or 16 bpp. Midtown Madness is an example. The common trick to handle this is to use Xephyr which can be set to required color depth. The real downside of Xephyr is that it is not possible to get hardware acceleration (if understand well, i more of an user than a techie).

I wonder if it's possible to do the same with Gamescope (ie changing the color depth) ?

emersion commented 3 years ago

Which Xephyr option are you using to set the color depth to 8 or 16 bpp?

TiBeN commented 3 years ago

I don't use directly Xephyr but through Lutris option. But according to this the option is "-depth x" where x is the color depth: https://appdb.winehq.org/objectManager.php?sClass=version&iId=4458&iTestingId=99410

emersion commented 3 years ago

This doesn't seem to work, however this does:

Xephyr -screen 640x480x16

Documented here:

TinyX Device Dependent Usage:
-screen WIDTH[/WIDTHMM]xHEIGHT[/HEIGHTMM][+[-]XOFFSET][+[-]YOFFSET][@ROTATION][X][Y][xDEPTH/BPP[xFREQ]]  Specify screen characteristics
TiBeN commented 3 years ago

Yes you are right , i was about to edit my post as i observed the same. "-depth " in the link is used when launching a separate X server.

emersion commented 3 years ago

ajax said there's no way to set the depth for Xwayland right now, but that patches are welcome.

TiBeN commented 3 years ago

Ok. I doubt i have required skills for that but who know.. anyway thank you for your feedback and investigation.