moonlight-qt
moonlight-qt copied to clipboard
Cannot use odd number resolution for encoder (1117p LowDPI on Macbook M3)
Describe the bug The stream resolution is not what I set it to
Steps to reproduce
- choose 1728x1117p as custom res
- have a host with virtual display driver at same res (probably optional)
- Open moonlight stats and see stream is 1116p and not 1117p
Screenshots
**Moonlight settings
- H265, HDR, fullscreen Default settings doesn't change anything
**Client PC details
- OS: MacOS Sonoma
- Moonlight Version: Latest nightly or stable are both affected
- GPU: M3 (30 cores)
**Server PC details
- OS: Win 11 23H2
- Sunshine Version: Latest nightly or stable are both affected
- GPU: RTX 4080
Moonlight Logs (please attach) Moonlight-1710696391.log
Additional context
Log say Encoder height must not be odd. Rounding 1117 to 1116
This makes sharp image impossible on Macbook M3 16" at half res
(3456x2234p is full res, 1728x1117 is half res (lowdpi retina mode)
Full res is hard to run (need high bandwidth, need beefy GPU on host) and use more battery. If we can get sharp image at half res (how MacOS desktop is running by default) like "integer scaling" it would be great for every Mac user
Well even if this can't be fixed, the underlying issue seems to be how LowDPI is handled in Moonlight (no integer scaling for upscaling to max monitor res)
see https://github.com/moonlight-stream/moonlight-qt/issues/1185#issuecomment-2002558360