mirror of
https://github.com/storytold/figcraft.git
synced 2026-12-01 22:19:23 +00:00
A dragged layer with any effect on it used to give up the drag sprite, so every pointer move asked the canvas for a new render (about 20 ms each for a 600 x 360 glass pane over stripes in a debug build here; 48 ms per move in the release glass bench at 200 %), and the layer stuttered behind the pointer. - The sprite now takes layers with effects of their own (drop and inner shadows, blurs, noise, texture, glass): render_area draws them as the page does. - A background blur or glass in the sprite reads what lies under it where the layer is now: figcraft_render::render_area_moved draws the layers where they started but reads their backdrop at the drag's shift. A thread of the sprite's own renders it for the latest shift and hands the image back; the sprite keeps moving with the outline every frame and shows the newest render. The canvas renders nothing until the drop. - The glass shading loop runs its rows in parallel outside a parallel render (exports and the sprite), as blurs already do; bands of a canvas render stay on their own thread.