Skip to content

Refactor video player#891

Merged
neon-nyan merged 8 commits into
mainfrom
video-perf
Jul 12, 2026
Merged

Refactor video player#891
neon-nyan merged 8 commits into
mainfrom
video-perf

Conversation

@shatyuka

@shatyuka shatyuka commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Main Goal

Optimize video player performance

PR Status :

  • Overall Status : In Progress
  • Commits : In Progress
  • Synced to base (Collapse:main) : Yes
  • Build status : OK
  • Crashing : No
  • Bug found caused by PR : N/A

Checklist

  • Zero copy (Acrylic effect doesn't work over SwapChainPanel)
  • Fix memory leaks / race conditions
    • SharedLastMediaPosition
    • Video playback
  • Fix stutter
    • Enable read-ahead buffer

@shatyuka shatyuka marked this pull request as ready for review July 10, 2026 03:20
Comment on lines +354 to +361
private static void TrimSharedLastMediaPositionIfNeeded()
{
// Fast path: skip cleanup when below the cap.
if (Interlocked.Increment(ref _sharedLastMediaPositionCount) <= MaxSharedLastMediaPositionEntries)
{
return;
}

This comment was marked as outdated.

SetValue(IsVideoPlayProperty, false);
if (_videoPlayer != null!)
{
DisposeVideoPlayer();

This comment was marked as outdated.

@neon-nyan neon-nyan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@neon-nyan neon-nyan merged commit eb59d6e into main Jul 12, 2026
8 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants