cemu-project / Cemu

Cemu - Wii U emulator
https://cemu.info
Mozilla Public License 2.0
6.8k stars 527 forks source link

Image gamma with steam remote play #1060

Closed Odizinne closed 1 month ago

Odizinne commented 7 months ago

When using Cemu fullscreen with vulkan on windows host, streaming through steam remote play to a device (steam deck in this case) give a way too bright image:

This brightness / gamma is correct on the host.

IMG_20240111_174730 When exiting fullscreen / focusing other window everything goes back to normal.

IMG_20240111_174754

I think it might be related to steam remote window capture, but Cemu is the only app where this issue occurs, so i'm not sure.

Tested with and without graphics pack, result is the same.
Tested with 2 different games.

OpenGL is working as intended. Linux host is not affected, only windows.

log.txt

Squall-Leonhart commented 7 months ago

This is not a Cemu bug.

https://steamcommunity.com/groups/homestream/discussions/1/3191368254806677908/

Odizinne commented 7 months ago

From what i read:

16 March - Steam Client Update Released A new Steam client has been released and will be automatically downloaded.

Remote Play Fixed washed out colors streaming D3D9 games

This does not appear to be related to vulkan

Also the post mention issue with steam link. but here steam link works fine. Only remote play (built in steam client) is affected

Edit: steam link works fine beaucse it shares the entire screen. Remote play will share the application window if possible

Squall-Leonhart commented 7 months ago

on second look, your windows PC has hdr on with Auto-hdr optimizing the appearance of Cemu, this only occurs fullscreen unless the DXGI swapchain is enabled in the video driver where it is then performed either way.

Odizinne commented 7 months ago

HDR / auto HDR is off. I don't use it. the pictures are from my steam deck.

Squall-Leonhart commented 7 months ago

Is this a steamdeck connected to a tv?

Odizinne commented 7 months ago

No, streaming my main PC to it.

Cemu added as a non steam game on windows host PC, launched via steam on the deck (linux) using the built in remote play feature.

No hdr enabled on the host (at least in windows settings), idk about AMD drivers, but never seen such option ( DXGI swapchain)

Squall-Leonhart commented 7 months ago

enabling Triplebuffering in the Radeon control panel will turn on DXGI Swapchain.

Odizinne commented 7 months ago

image

This is off and has never been on

Squall-Leonhart commented 7 months ago

Crap, AMD is automatically using the DXGI swapchain on Vulkan, only Opengl requires TB enabled to turn it on.

if i'm right, opengl should be broken with that toggled too.

Odizinne commented 7 months ago

Yeah was reading that too. I'll try with OpenGL and this setting

Squall-Leonhart commented 7 months ago

Hey, this issue may be resolved in SteamOS 3.5.8

Odizinne commented 7 months ago

I already tried beta builds, unfortunately it does not change anything for Cemu.

Eating right now, and i'll follow back with opengl test. If the same occurs with triple buffering, i guess we can call the driver problem and close this issue

i'll also try another vulkan game, like doom. If this is a driver "problem" the issue should be reproducible with any native vulkan games.

Odizinne commented 7 months ago

So:

Not sure why only Cemu fullscreen is affected

Odizinne commented 7 months ago

Performed a factory reset, switch back to preview channel on the deck, and it's seems to be gone.

Weird as i was already on the preview channel before the reset.

This issue can be closed. Thanks a lot for the help on troubleshooting!

Edit: Nvm i was still on OpenGL ...

Exzap commented 1 month ago

Not sure what the current state of this is, but I am closing it since it's up to Valve to fix this anyway. We have no control over their way of capturing Cemu's output