Add opt-in bounded render density to Canvas viewers - #286
Merged
Conversation
Owner
Author
|
Final exact-head evidence for
Persisted DPR3 Canvas evidence:
This remains opt-in only; native DPR stays the default. Default/user-facing Auto remains blocked on visual/readability/performance evidence. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Starts #276 P4 / #285 by donating the Three.js render-density policy to Canvas2D without changing current 2D defaults.
Compatibility boundary
renderquery (or an unknown value) keeps the existing nativedevicePixelRatioexactly;Experimental modes
render=auto: mobile <= 1x, desktop <= 1.45xrender=high: mobile <= 1.25x, desktop <= 1.8xrender=low: <= 0.85xThese mirror the established Three.js donor policy.
Shared implementation
render-density.jsbrowser helper owns the policy;viewer.jstree-router.jsresize synchronizationEvidence / gates
This PR intentionally does not make Auto the default. A default/UI decision stays blocked on visual/readability/performance evidence.
Refs #285 #276.