Skip to content

Dynamic display resolution not working, client does not correctly indicate "Optimize Game Settings" value resulting in wrong host resolution for the stream. #507

Description

@tiny3d

Moonlight Version

v1.6.29

Device Type

webOS TV

Device Model

OLED55GX6LA

Device OS

5.5.0-19

Host OS

Windows

Host Software

Sunshine

Host Setup

Ryzen 7 5800X, 64GB RAM, Nvidia RTX 3070 running Windows 11 24H2

Bug Description

Sunshine Host (v2025.213.180.858) reports that WebOS Moonlight client does not have "Optimize Game settings" enabled even though this has been enabled in client. Target resolution information not properly communicated to host causing fall-back to low-resolution (800x600) on the Virtual Display Driver.

Host log contains following messages that likely relate to the issue:

[2025-02-16 13:01:33.753]: Warning: Sunshine is configured to change resolution automatically, but the "Optimize game settings" is not set in the client! Resolution will not be changed.
[2025-02-16 13:01:33.767]: Info: Using the following configuration:
{
"device_id": "{9acddf6d-43cc-576e-9aff-0c5fc80b4cc8}",
"device_prep": "EnsureOnlyDisplay",
"hdr_state": null,
"refresh_rate": {
"type": "rational",
"value": {
"denominator": 1,
"numerator": 60
}
},
"resolution": null
}

Full Verbose log from including Moonlight WebOS client connection and disconnect from Sunshine host attached:
sunshine-LG G1-resolution-fail-verbose.log.txt

Reproduction Steps

Sunshine Host is configured with Virtual Display Driver monitor as specific Display Device ID to use and Device configuration set to "Deactivate other displays and activate only the specified display".

WebOS Moonlight client is configured with "Optimize Game settings for streaming" enabled and 4k resolution.

Connect to host using any of the configured applications, stream will be established using 4k resolution, but host VDD resolution is set to 800x600 due to missing information from client.

Expected Behavior

Host is expected to set the Client preferred 4k resolution on the Virtual Display device and use that for streaming.

Note: Moonlight QT client on Laptop with Ubuntu Linux works successfully and consistently towards the same Sunshine host. Issue confirmed both towards latest stable Sunshine release and current pre-release version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions