Repository navigation
Merge latest upstream moonlight-qt fixes - #11
Merged
Merged
Conversation
This allows it to synchronize with the lifetime of the rendering context.
Many renderers do not properly synchronize these on their own, so let's do it for them. HDR and window changes are infrequent enough not to really matter.
Vulkan Video supports these on all Nvidia GPUs.
…bo v7.387.0 This is now disabled by default in libplacebo and must be explicitly enabled when the application knows that all other code sharing the device has been enlightened about the new queue synchronization flags. Since we know that Gamescope's WSI doesn't handle these new flags correctly, we will disable internally synchronized queues when that layer is present. See ValveSoftware/gamescope#2261
SDL3 -> 3.4.20 sdl2-compat -> bebc6eb0 libplacebo -> v7.387.0 Fixes moonlight-stream#2084 Fixes moonlight-stream#2079 Fixes moonlight-stream#2051 Fixes moonlight-stream#2031
Upstream libplacebo make internally synchronized queues opt-in.
…t-stream#2093) NavigableToolButton bound its icon size to its background. Material's ToolButton background is half the button height while the content is square, but spans the full button width otherwise. When the window straddles a 2x and a 1x display, the header row briefly lays out at a smaller height, the content stops being square, and the icon width becomes the button width. The button's implicit width is then icon + padding, so every layout pass widens it by 12px without end and reloads the SVG icon at each new size. The UI hangs and memory grows until the process is killed. Size the icon from the button's own height instead. That height comes from Layout.preferredHeight, not from the icon, so there's no feedback loop, and the icon stays 30x30 in the 60px toolbar as before. Fixes moonlight-stream#2092
This is required to safely synchronize with the main loop.
Logging can happen from multiple threads at the same time.
These are not handled properly in the export (or import) paths.
…stream#2107) amdgpu on DCN < 3.2 performs a full update for every commit that allows a modeset, which halves the frame rate with V-Sync enabled at 120 Hz. Fixes moonlight-stream#2106
FFmpeg -> 9.1 dav1d -> 1.5.5 SDL -> d3926e74bd
Some joystick backends can't hotplug without SDL_PumpEvents(). See moonlight-stream#2104. This reverts commit d5b7ef0.
It doesn't properly handle hotplugging on all joystick backends, so we want to use it only as long as we need to avoid crashing during video subsystem shutdown. Fixes moonlight-stream#2104
libva has supported DRI3 on XWayland for years now.
Build fixes: - Re-enabled CFG and EHCont on OpenSSL (/OPT:REF fixes the ILT thunk issue) - Fixed missing assembly optimizations on Windows ARM64 OpenSSL build - Fixed missing /O2 flag for Windows OpenSSL builds - Increased optimization level for Meson projects Updates: - SDL3 -> ae7dae5b630 - sdl2-compat -> 0cc83e9ad87 - discord-rpc rapidjson -> 297637bc0a0f00 - openssl -> 3.5.9 (downgraded to 3.5 LTS)
Brings in the 50 upstream commits since the fork point (ac29686), including the moonlight-common-c update, renderer and pacer fixes, overlay callback synchronization, gamepad and audio fixes, and Windows dependency updates. Conflict resolutions: - Keep Perigee's removal of upstream's build-appimage and build-win-mac workflows, and port their libplacebo and Windows Qt bumps into Perigee's own workflows instead. - Keep Perigee's NavigableToolButton, whose fixed-size icon is already free of the upstream toolbar resize loop (moonlight-stream#2092). - Keep Perigee's PC tile layout and add upstream's tooltip for truncated host names. - Keep both Perigee's notification state and upstream's renderer lock in OverlayManager. Because upstream's new renderer lock is taken before the notification mutex in notifyOverlayUpdated(), setOverlayState() and setCommandPanelVisible() no longer call it while holding the notification mutex. Taking the two locks in opposite orders could deadlock once setOverlayRenderer() waited for the write lock. The AppImage and Flatpak builds move libplacebo to v7.387.0, which makes internally synchronized queues opt-in, so the removed libplacebo patch is no longer applied. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011f1yPGqpe2amt5jbXY2EYG
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Bartosz · project thread
Summary
Merges upstream moonlight-qt
master(up toa85f933e) into Perigee. That's the 50 upstream commits made since Perigee's fork point (ac29686). There is no upstream release newer than 6.2.0, so this tracks upstream's development branch.What comes in:
0405384→b618ef2: about 55 fixes covering races in video, input and timing, STUN and RTSP hardening, replay detection on control streams, and correct reinitialization when starting a second stream.SDL_QueueAudio()fails./guard:signreton ARM64.Conflict resolutions
build-appimage.yml/build-win-mac.yml: kept deleted as in Perigee. The relevant bumps went into Perigee's own workflows instead: Windows Qt 6.12.0 → 6.12.1 inrelease-windows.yml, and libplacebo → v7.387.0 inpackage-linux-appimage.ymland the Flatpak manifest.libplacebo-disable-internally-synchronized-queues.patchbecause v7.387.0 makes internally synchronized queues opt-in, andplvk.cppnow enables them itself. The AppImage workflow no longer applies the patch. I didn't bump SDL, FFmpeg or dav1d in the AppImage/Flatpak, because those are pinned alongside their source notices.NavigableToolButton.qml: kept Perigee's version. Its fixed 20px icon and custom background never bind the icon to the background width, so the upstream resize loop (macOS: main window hangs with runaway memory when dragged between displays with different scaling moonlight-stream/moonlight-qt#2092) doesn't affect it.PcView.qml: kept Perigee's tile layout and added upstream's tooltip that shows the full host name when it's truncated.OverlayManager: kept both Perigee's notification and command panel state and upstream'sm_OverlayRendererLock. Upstream'snotifyOverlayUpdated()takes the renderer lock and then Perigee's notification mutex.setOverlayState()andsetCommandPanelVisible()called it while holding the notification mutex, which is the opposite order. That could deadlock oncesetOverlayRenderer()was waiting for the write lock. Both now release the mutex before notifying.setCommandPanelVisible()also readsm_Rendererunder the renderer lock.Testing
Built the debug app on Ubuntu 24.04 (Qt 6.4.2) with no compiler warnings, then ran the Linux checks:
UIThemeTest::applicationThemeAndPopupand the two gridtest_contextMenucases fail. They also fail onmasterunder Qt 6.4 and pass on Fedora CI.I haven't tested streaming against a real host here.
Generated by Claude Code