Skip to content

feat(editor): default preview quality to Full on capable machines - #4392

Merged
richiemcilroy merged 15 commits into
mainfrom
feat/preview-quality-default
Nov 19, 2026
Merged

richiemcilroy merged 15 commits into
mainfrom
feat/preview-quality-default

Conversation

@richiemcilroy

@richiemcilroy richiemcilroy commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

The editor preview now defaults to Full on Apple Silicon, where it is free, and stays on Half elsewhere. A paused Full frame is also redrawn at the canvas size, the way Half already is.

flowchart TD
    A[general_settings] --> B{editorPreviewQualityChosen?}
    B -- yes --> S[stored quality]
    B -- no --> C{stored full or quarter?}
    C -- yes --> S
    C -- "no (missing, or half)" --> M{this machine}
    M -- "Apple Silicon" --> F[Full]
    M -- "everything else, or a software render device" --> H[Half]
Loading
  • EditorPreviewQuality::from_general (apps/desktop-gpui/src/store.rs): earlier builds wrote the whole settings object, so almost every existing store holds "half". A stored half only counts as a choice once editorPreviewQualityChosen is set. A stored full or quarter was always picked by hand and is kept.
  • set_editor_preview_quality writes the quality and the chosen flag together. The editor's Full | Half | Quarter control is the only writer.
  • A render device that fell back to (or was forced onto) a software adapter keeps Half on any machine. The editor re-reads the default once its render device exists.
  • Windows stays on Half for now. Its preview frames go through a CPU readback that costs more at Full, and no real Windows GPU has been measured yet; a dedicated-GPU rule follows once it is.
  • schedule_sharp_preview (apps/desktop-gpui/src/editor_window.rs) used to skip anything but Half. Full renders 1664x1080 for a 3024x1964 recording, which a large Retina canvas still magnifies. It is now redrawn at the canvas size when still. Quarter stays as chosen.

Why these machines

Same build, 10 minute 3024x1964 60 fps project, 3 interleaved rounds per side.

Machine Quality Playback fps Scrub / zoom drag / slider, p50 CPU per run
Apple Silicon (virtual), 2x Half 59.8 to 60.0 18.4 / 18.6 / 20.4 ms 7.0 to 7.2 s
Apple Silicon (virtual), 2x Full 59.8 to 59.9 18.5 / 18.5 / 20.3 ms 6.9 to 7.6 s
Linux, software GPU Half 29.2 to 30.0 40.8 / 38.7 / 19.9 ms 113 to 120 s
Linux, software GPU Full 23.8 to 24.4 48.3 / 47.1 / 62.8 ms 134 to 141 s
  • On Apple Silicon, Full costs nothing measurable (+9 MB GPU memory).
  • Without a capable GPU, Full drops playback to 24 fps and triples slider latency. Off macOS every preview frame is read back through the CPU, so Full's extra pixels cost real time there.

This branch against main

Same 3024x1964 60 fps project, 3 interleaved rounds per side. "Old store" is {"editorPreviewQuality":"half"} as earlier builds wrote it. "Chosen Half" also carries editorPreviewQualityChosen.

Machine Store Quality Paused frame on a 1956x1272 px canvas Playback fps, 3 rounds Scrub fine / zoom drag / slider, p50
Apple Silicon (virtual), 2x main, fresh install Half redrawn to canvas, 1.00x 42.3 to 58.8 18.7 / 18.6 / 20.6 ms
Apple Silicon (virtual), 2x this PR, fresh install Full redrawn to canvas, 1.00x 40.8 to 59.8 18.8 / 18.5 / 20.2 ms
Apple Silicon (virtual), 2x this PR, old store Full redrawn to canvas, 1.00x 45.6 to 57.1 18.7 / 18.6 / 20.4 ms
Apple Silicon (virtual), 2x this PR, chosen Half Half redrawn to canvas, 1.00x 53.2 to 59.9 18.4 / 18.6 / 20.3 ms
Linux, software GPU main, fresh install Half 1080x702 21.7 to 28.9 43.2 / 51.0 / 41.9 ms
Linux, software GPU this PR, fresh install Half 1080x702 22.7 to 29.0 42.2 / 41.3 / 45.8 ms
  • Both runners slowed in later rounds for every side, main included (macOS round 1: 57.1 to 59.8 fps for all four). Interaction latency matches main throughout.
  • The app never writes the default back: stores without a choice still hold only what they started with.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

The editor defaults to Full on Apple Silicon unless it uses software rendering, preserves saved choices, and redraws paused Full previews at the canvas size.

  • Editor previews default to Full on capable Apple Silicon.
  • Paused Full previews can sharpen to canvas size.

Reviews (11) · Last reviewed commit: "test(editor): expect Half on Apple Silic..." · Reviewed by Greptile

@sandchest-com

sandchest-com Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Sandchest

Sandchest reviewed 0e25248: nothing exploitable found in this change.

Sandchest reviews every change for vulnerabilities an attacker could use · 1 credit · Review details

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Capy found 1 potential issue (1 medium).

View 1 other finding in Capy.

Open in Capy

Comment thread apps/desktop-gpui/src/store.rs Resolved
Comment thread apps/desktop-gpui/src/store.rs Resolved
Comment thread apps/desktop-gpui/src/editor_window.rs Resolved
Comment thread apps/desktop-gpui/src/store.rs Resolved
@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Ignored Ignored Preview Nov 19, 2026 1:07am UTC

@vercel
vercel Bot temporarily deployed to Preview – cap-status November 18, 2026 17:54 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

Comment thread apps/desktop-gpui/src/store.rs Resolved

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Capy found no issues.

Open in Capy

@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

@vercel
vercel Bot temporarily deployed to Preview – cap-status November 18, 2026 17:58 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

@vercel
vercel Bot temporarily deployed to Preview – cap-status November 18, 2026 17:58 Inactive

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Capy found no issues.

Open in Capy

@greptile-apps

This comment has been minimized.

@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Capy found no issues.

Open in Capy

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Capy found no issues.

View 1 other finding in Capy.

Open in Capy

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Capy found no issues.

View 1 other finding in Capy.

Open in Capy

Full is proven free on Apple Silicon. Windows previews go through a CPU
readback that costs more at Full, and no real Windows GPU has been
measured yet, so the dedicated-GPU rule waits for that measurement.
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Capy found no issues.

Open in Capy

Comment thread apps/desktop-gpui/src/store.rs Resolved
@vercel
vercel Bot temporarily deployed to Preview – cap-status November 19, 2026 00:44 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Capy found no issues.

View 1 other finding in Capy.

Open in Capy

@richiemcilroy
richiemcilroy merged commit 887cfee into main Nov 19, 2026
65 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.

1 participant