-
-
Notifications
You must be signed in to change notification settings - Fork 5
feat(render): VSync 呈现时钟升级为去抖 PI 滤波,消除周期性 hitch #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
27b3939
feat(render): 升级 VSync 呈现时钟为去抖 PI 滤波
qiin2333 34de16a
fix(render): PI 增益改用整除替代算术右移,消除负值取整偏置
qiin2333 90279db
chore: update common-c
qiin2333 aa72513
fix(ci): restore HDR callback submodule
qiin2333 609be07
chore: align common-c mic submodule
qiin2333 8faf8fd
fix(native): build common-c nanors sources
qiin2333 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Submodule moonlight-common-c
updated
25 files
| +3 −3 | .gitmodules | |
| +5 −10 | CMakeLists.txt | |
| +1 −1 | enet | |
| +1 −0 | nanors | |
| +0 −21 | nanors/LICENSE | |
| +0 −11 | nanors/deps/obl/autoshim.h | |
| +0 −4,106 | nanors/deps/obl/gf2_8_mul_table.h | |
| +0 −603 | nanors/deps/obl/gf2_8_tables.h | |
| +0 −282 | nanors/deps/obl/oblas_lite.c | |
| +0 −11 | nanors/deps/obl/oblas_lite.h | |
| +0 −1 | nanors/deps/simde | |
| +0 −178 | nanors/rs.c | |
| +0 −26 | nanors/rs.h | |
| +38 −0 | src/Input.h | |
| +142 −1 | src/InputStream.c | |
| +23 −0 | src/Limelight.h | |
| +7 −5 | src/Platform.c | |
| +38 −17 | src/Platform.h | |
| +17 −15 | src/PlatformSockets.c | |
| +3 −1 | src/PlatformSockets.h | |
| +2 −0 | src/RtpAudioQueue.c | |
| +1 −8 | src/RtpAudioQueue.h | |
| +2 −1 | src/RtpVideoQueue.c | |
| +0 −191 | src/rswrapper.c | |
| +0 −32 | src/rswrapper.h |
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
补上 2 秒以内的 PTS 正向跳变重锚。
Line 329 只把
>2s当作不连续;如果 reconnect/seek 让 PTS 正向跳 500ms~2s,会进入 PI 分支并被 ±8ms 限幅,targetPresentTimeNs仍会偏到未来,可能造成 VSync 冻结。建议按帧间隔设置更近的连续性阈值,保留 2s 作为上限。🐛 建议修正
📝 Committable suggestion
🤖 Prompt for AI Agents