forked from 1b-agent/opencadstudio-upstream
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:
1 parent
2bc4c1c8f3
commit
12bf126646
26 files changed
+795
-326
No files matched your search
@@ -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());
|
||||
}
|
||||
|
||||
@@ -234,6 +234,7 @@ pub fn start_allowed(cmd: &str) -> bool {
|
||||
| "DONATE"
|
||||
| "WEBVERSION"
|
||||
| "HELP"
|
||||
| "PERF"
|
||||
| "CUI"
|
||||
| "ALIASEDIT"
|
||||
| "CUILOAD"
|
||||
|
||||
Reference in new issue
Block a user