Repository navigation
Load the video player with the first video slide - #59
Merged
Merged
Conversation
Creating a MediaPlayer, AudioOutput, or VideoOutput starts Qt Multimedia's FFmpeg backend, which probes the GPU's hardware decoders on the GUI thread. On an NVIDIA GB10 that added about two seconds to every launch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryDefers creating the video player until a video slide is first selected.
|
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.
Hype took about 2.2 seconds to open its window on an NVIDIA GB10, whatever the deck held. Nearly all of it was
engine.load(Main.qml)creating theMediaPlayer,AudioOutput, andVideoOutput: any one of them starts Qt Multimedia's FFmpeg backend, which callsav_hwdevice_ctx_create(vkCreateDevice,cuInit) on the GUI thread to probe hardware decoders.The player and its output now live in a
Loaderthat turns on the first time a video slide is selected and stays on. Decks without video never start the backend, and decks with video keep hardware decoding (turning the probe off withQT_FFMPEG_DECODING_HW_DEVICE_TYPESwould also have removed the delay, but at that cost). The window now opens in about 0.4 seconds.This is the same trap other Omarchy apps have hit, so the omarchy-app skill gets a rule about it too.
🤖 Generated with Claude Code