ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3k stars 198 forks source link

[Question] How can I use inverse tone mapping (ITM) on the Steam Deck's Gaming Mode gamescope session? #1487

Open SaltyBet opened 3 weeks ago

SaltyBet commented 3 weeks ago

Not an issue, but a question.

From #751, what I'm understanding is that the following ITM-related arguments exist for a nested gamescope session:

If I understood the information correctly, how can I use ITM on the Steam Deck's Gaming Mode gamescope session?

I was thinking about modifying /usr/bin/gamescope-session, but it's read-only.

Is there a GUI toggle or similar?

Lawstorant commented 2 weeks ago

You don't need itm settings if you're running steam in gamescope session These are my only gamescope options:

GAMESCOPECMD="gamescope"
GAMESCOPEOPTS=" -e --hdr-enabled --adaptive-sync -w 3440 -h 1440 -r 165"

STEAMCMD="steam-runtime"
STEAMOPTS="-gamepadui -newbigpicture -steamos3"
SaltyBet commented 2 weeks ago

@Lawstorant: You don't need itm settings if you're running steam in gamescope session

Thanks for replying.

So SDR->HDR ITM should happen automatically?

If so, that's not what I'm seeing while using SDR games on the Steam Deck's Gaming Mode gamescope session (no HDR logo appears).

Lawstorant commented 2 weeks ago

Do you have all the needed env variables set? And yes, inverse tonemapping is automatic for SDR content

export WINEDLLOVERRIDES=dxgi=n
export STEAM_GAMESCOPE_COLOR_TOYS=1
export GAMESCOPE_VRR_ENABLED=1
export STEAM_GAMESCOPE_HDR_SUPPORTED=1
export STEAM_GAMESCOPE_VRR_SUPPORTED=1
export DXVK_HDR=1
export ENABLE_GAMESCOPE_WSI=1
export STEAM_GAMESCOPE_COLOR_MANAGED=1
SaltyBet commented 2 weeks ago

Do you have all the needed env variables set?

I'm using SteamOS. Do you mean setting env vars in, say, $HOME/.profile, or something else?

And yes, inverse tonemapping is automatic for SDR content

So SDR->HDR ITM is automatic, but only if I set env vars?

OK, I'll test and report back.