Repository navigation
perf(ps5): low-latency decoder instance; decode and render wait measured apart - #129
Open
xservzeroman wants to merge 2 commits into
Open
xservzeroman wants to merge 2 commits into
xservzeroman wants to merge 2 commits into
Conversation
…red apart Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… changelog Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Stacked on #128. Submodule
third-party/chiaki-ngpoints at chiaki-ng-mooncastperf/decode-latency@ 227e79dd (two commits on top of c5fa7fad).Saleh: PXPlay shows decode < 1 ms on the Odin 2 Portal (Snapdragon 8 Gen 2, "kalama"); MoonCast showed up to 5 ms on the same device and network.
What the numbers measured
releaseOutputBuffer/…AtTime), smoothed over about 20 frames.What I found on the Odin
c2.qti.hevc.decoderandc2.qti.hevc.decoder.low_latency(also AVC).createDecoderByTypealways picked the default one.releaseOutputBuffer(render)never fired the frame-rendered callback on this codec2 decoder. Releasing with a timestamp (now) does, and shows the frame just as soon.Changes (chiaki-ng-mooncast fd5b9a23 + 227e79dd)
<name>.low_latency(Qualcomm) or.lowlatency(MediaTek) instance when the device has one. Standard keeps the default.operating-rate32767.AMediaCodec_setOnFrameRenderedCallback(Android 13+). Lowest delay now releases withreleaseOutputBufferAtTime(now)so it reports.stats … decode= render=. A diagnostics line is logged every 1800 frames.Measurements (Odin 2 Portal, PS5-423, 1080p60 HEVC, home screen ~0.3 Mbps, 30 s each, test268)
queueInputBufferreturns, which alone is ~0.5 ms here) or use a different measure; we can't see its code.Test notes
🤖 Generated with Claude Code