← Back to Pull requests

fix: reuse the comparison capture across paused seeks #4970

Open
unknown opened this pull request with 389 lines diff across 4 files
View on GitHub
unknown unknown commented on Nov 30, 2026 15:10 UTC
Author

!1. What changes
!2. Why and how
!3. What to check

Fixed issues / References


  • Closes #4898
  • Please check


  • Like playback, the paused comparison now captures again only after an edit of its own scene (Scene.Edited). An edit inside a scene shown here through a Scene Drawable raises no Edited here, so it reaches the comparison at this scene's next edit instead of the next seek.
  • <details><summary>Full description</summary>

    Description


  • While an effect comparison is active and playback is paused, a seek, frame step or playhead drag no longer serializes the whole scene on the UI thread and builds a new comparison renderer for each frame, which stalled the UI more the larger the project.

  • How: the player counts scene edits with its own Scene.Edited handler, which, unlike OnSceneEdited, stays subscribed during playback. Each capture records the count it saw, and a paused render reuses the capture, and so the renderer, until the count moves. A failed capture is never reused, so the next render retries it.
  • Screenshots / Render output


    None: nothing on screen changes.

    Affected areas


  • Beutl.Engine (rendering / scene / track)

  • Beutl.ProjectSystem (project / document persistence)

  • UI (Beutl.Editor, Beutl.Editor.Components, Beutl.Controls)

  • Beutl.Extensibility (plugin abstractions)

  • Beutl.NodeGraph (node editor)

  • Beutl.FFmpegIpc / Beutl.FFmpegWorker (media IPC boundary)

  • Beutl.Api (server API client)

  • Build / CI / docs only
  • Breaking changes


    None.

    Raises the format floor?


    No.

    Test plan


  • PlayerViewEffectComparisonTests.Paused_seeks_reuse_the_comparison_capture_until_the_scene_is_edited (tests/Beutl.HeadlessUITests/): starts a comparison, seeks five frames while paused and checks that each render keeps the first capture; then changes the blur and checks that the next render captures again and the comparison shows the edit. With the fix's call reverted on the merged branch, it fails at the first seek.

  • dotnet build tests/Beutl.HeadlessUITests/Beutl.HeadlessUITests.csproj -m:2 (after merging main)

  • dotnet test tests/Beutl.HeadlessUITests/Beutl.HeadlessUITests.csproj -f net11.0 --no-build --filter "FullyQualifiedName~PlayerViewEffectComparisonTests|FullyQualifiedName~PreviewWorkingScaleIndicatorTests": 12 passed.
  • </details>

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    Bug Fixes
    Effect comparison previews now update when scene edits change the effect, so the comparison reflects the latest settings.
    * Seeking between frames while paused no longer causes the comparison preview to refresh unnecessarily, helping keep the preview consistent and responsive.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 389 lines (+291 / -98) across 4 files Reviewer: coderabbitai[bot] Review duration: 7m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.43) × (1 − Review Confidence (0.42)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 389 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 81% · Reviewer familiarity: 35%
    42%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.357
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #4970"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 42.2% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 43.1% (MEDIUM) · Higher = larger blast radius
    43.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 42.2% · Lower = rushed or shallow review
    42.2%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 24.9% · Safe to merge
    24.9%
    Repository