perf: remove large drawing stalls

Keep resident geometry and GPU resources stable across edits, MSPACE zoom, and Model/Paper switches. Add unified PERF output for tracing remaining costs.
This commit is contained in:
Hakan Seven 2026-07-25 13:34:48 +03:00
commit 12bf126646
26 changed files with 794 additions and 325 deletions

View file

@ -234,10 +234,11 @@ impl OpenCADStudio {
// Toggle the per-rebuild wire-tessellation readout overlay.
"PERF" => {
self.perf_hud = !self.perf_hud;
crate::perf::set_ui_enabled(self.perf_hud);
self.command_line.push_info(if self.perf_hud {
"PERF HUD on — shows last wire re-tessellation cost"
"PERF panel on — tracing render and interaction costs"
} else {
"PERF HUD off"
"PERF panel off"
});
return Some(Task::none());
}

View file

@ -234,6 +234,7 @@ pub fn start_allowed(cmd: &str) -> bool {
| "DONATE"
| "WEBVERSION"
| "HELP"
| "PERF"
| "CUI"
| "ALIASEDIT"
| "CUILOAD"