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:
parent
2bc4c1c8f3
commit
12bf126646
26 changed files with 794 additions and 325 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue