Skip to content

Revert canvas rendering changes from #322, #323 and #324 - #325

Merged
dovvnloading merged 1 commit into
mainfrom
revert/canvas-render-speculation
Aug 14, 2026
Merged

Revert canvas rendering changes from #322, #323 and #324#325
dovvnloading merged 1 commit into
mainfrom
revert/canvas-render-speculation

Conversation

@dovvnloading

Copy link
Copy Markdown
Owner

Problem

Three changes aimed at the connection-lag-while-dragging artifact were shipped without confirmed reproduction of a fix. The most recent, #324, made the situation worse: the lag became visible in the light theme too, where it had previously gone unnoticed.

The most likely cause is the composition flag. The audit behind #324 found that the flag introduced in #323 never reached the browser, because the window library passes a conflicting switch and duplicate switches resolve last-one-wins. #324 corrected that delivery, so disabling delegated composition took effect for the first time. It applies to both themes equally, which matches the report. The stroke width increase and explicit smoothing hint in the same change also affect both themes and cannot be ruled out as contributors.

Change

Restores graphlink_desktop.py, web_ui/src/app/styles.css and web_ui/src/lib/tokens/gl-vars-dev.css to their state as of #321. This removes: the layer promotion hints (#322), the composition flag (#323 and #324), the connection stroke colour token and width and smoothing change (#324), the dark shadow values matching light (#324), and the page root background (#324).

The measured performance fixes in #319, #320 and #321 are untouched.

Test plan

  • Full frontend check passes: schema, types, lint (0 errors), 1927/1927 tests, production build, bundle size
  • Restored values confirmed in place: stroke width 1.5, dark shadow alphas 0.40/0.45/0.55, no browser flags in the launcher

These three changes were attempts at the drag artifact that were not
confirmed to work before shipping, and the most recent one made things
worse: with #324 in place the connection lag became visible in the light
theme as well, where it had previously been unnoticeable.

The most likely cause of that regression is the composition flag. The
audit behind #324 established that the flag added in #323 never reached
the browser, because the window library passes a conflicting switch and
duplicate switches resolve last-one-wins. #324 corrected the delivery,
so disabling delegated composition took effect for the first time - and
it applies to both themes equally, which matches the report exactly. The
stroke width increase and the explicit high-quality smoothing hint in
the same change also affect both themes and cannot be ruled out.

This restores graphlink_desktop.py, styles.css and gl-vars-dev.css to
their state as of #321. The measured performance fixes in #319, #320 and
#321 are untouched.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@dovvnloading
dovvnloading merged commit 926c217 into main Aug 14, 2026
@dovvnloading
dovvnloading deleted the revert/canvas-render-speculation branch August 15, 2026 14:41
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.

1 participant