Transform quality at extreme zoom levels #1893
Unanswered
christian-byrne
asked this question in
Q&A
Replies: 1 comment
-
I saw that Figma and threejs are forcing the reflow after there is an zoom/pan interaction + short delay (throttled). It seems a lot better actually. I wonder how else it can be optimized. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed that at extreme zoom levels (>5x or <0.2x), transforms can show pixelation/stretching artifacts since its just showing the scaled already-rasterized layer.
Looking at
Transform.vue
:transform: `translate(${viewport.value.x}px,${viewport.value.y}px) scale(${viewport.value.zoom})`
Would it work to force a reflow/re-rasterization at certain zoom thresholds? For example, triggering a brief style change or changing Vue key -- to forcee the browser to re-rasterize the transform layer:
The idea being to get fresh rasterization at the new scale and avoiding ever stretching the original raster map too much.
Beta Was this translation helpful? Give feedback.
All reactions