cad-editor/src/scene/view
Repository files (latest commit first)
Filename Latest commit message Latest commit date
sLuCHa a55e1ac4f8 perf(render): skip hatch pass while navigating (interaction LOD)
The batched hatch pass evaluates its fill procedurally per fragment — a
point-in-polygon test over the whole boundary plus the pattern test, with a
`discard` that disables early-Z. When the view sits inside a hatch its quad
covers the screen, so panning / zooming re-runs that full-screen shader every
frame (~40 ms/frame on a hatch-heavy plan) even though the rest of the scene
is cheap — the wire pass and CPU prepare are negligible by comparison.

Suppress the hatch pass while the view is actively panning / zooming /
orbiting, detected from `camera_generation` plus a short settle timer
(`Scene::navigating_lod`), and fold that state into the render signature so
the moment the view settles it renders hatches once and the scene-render
cache holds that full-quality frame. A brief `is_settling` subscription keeps
requesting frames just past the settle point so the hatched frame renders
even when no input event would otherwise fire. Mirrors AutoCAD's adaptive
degradation. The paper sheet keeps its fills.
2026-07-05 09:48:49 +02:00
..
camera.rs fix(camera): orbit target in f64 to avoid extent-scale jitter 2026-07-05 03:26:07 +03:00
dispatch.rs feat(properties): show Thickness in the General group 2026-07-03 16:51:05 +03:00
mod.rs refactor(scene): group modules into role-based subfolders 2026-06-16 11:33:46 +03:00
render.rs perf(render): skip hatch pass while navigating (interaction LOD) 2026-07-05 09:48:49 +02:00
transform.rs wip(f64): convert command layer to DVec3 (in progress) 2026-06-24 03:32:11 +03:00
viewport_pane.rs refactor(viewport): migrate model-space tiling to iced pane_grid 2026-06-27 11:50:11 +03:00