feat(debug_ui): add time-windowed performance history #907

Merged
SakulFlee merged 5 commits from feat/debug-ui into main 2026-10-24 02:16:57 +00:00
Owner
  • retain graph/table history only while the Performance window is visible
  • make the history window adjustable from 0.5s to 60s with a slider and exact input
  • compute windowed table stats for stages, instantaneous FPS and CDT
  • add selectable FPS/CDT graphs alongside stage graphs
  • downsample graphs and use time-based rolling stats for avg/min/max
- retain graph/table history only while the Performance window is visible - make the history window adjustable from 0.5s to 60s with a slider and exact input - compute windowed table stats for stages, instantaneous FPS and CDT - add selectable FPS/CDT graphs alongside stage graphs - downsample graphs and use time-based rolling stats for avg/min/max <!-- Please read and understand every line you submit, verify the build, lints, tests, and affected examples, and remove any AI/model attribution. You own this change and are responsible for its correctness, licensing, security, and follow-up. Delete this note before opening the pull request. -->
feat(debug_ui): add time-windowed performance history
All checks were successful
Lint / lint (pull_request) Successful in 3m25s
PR / test (pull_request) Successful in 2m48s
c6f38209d7
- retain graph/table history only while the Performance window is visible
- make the history window adjustable from 0.5s to 60s with a slider and exact input
- compute windowed table stats for stages, instantaneous FPS and CDT
- add selectable FPS/CDT graphs alongside stage graphs
- downsample graphs and use time-based rolling stats for avg/min/max

Smart test results

Result: PASS

Scope: full workspace

Reason: workspace-level change: Cargo.lock

Elapsed: 5m 38s

Workflow run

Overall: 404 tests, 394 passed, 0 failed, 10 skipped

Nextest: 393 tests, 393 passed, 0 failed, 0 skipped
Doctests: 11 tests, 1 passed, 0 failed, 10 skipped

Outcome charts are split between nextest and doctests. The timing chart covers nextest only.

Crate Nextest Passed Failed Skipped Doctests Time
orbital 1 1 0 0 - 0.67s
orbital_2d 29 29 0 0 0/1 0.19s
orbital_app 9 9 0 0 0/1 0.06s
orbital_camera 4 4 0 0 - 0.03s
orbital_core 2 2 0 0 - 0.01s
orbital_debug_render 0 0 0 0 0/1 0.00s
orbital_debug_ui 38 38 0 0 0/1 0.26s
orbital_ecs 114 114 0 0 0/2 0.94s
orbital_ecs_bridge 37 37 0 0 - 0.29s
orbital_file_manager 5 5 0 0 - 0.08s
orbital_iced 16 16 0 0 - 0.12s
orbital_importer_gltf 13 13 0 0 - 0.19s
orbital_input 11 11 0 0 - 0.08s
orbital_light 6 6 0 0 - 0.04s
orbital_macros 0 0 0 0 0/1 0.00s
orbital_math 4 4 0 0 - 0.03s
orbital_procgeo 2 2 0 0 - 0.01s
orbital_resources 18 18 0 0 - 0.18s
orbital_shader_core 0 0 0 0 1/1 0.00s
orbital_shader_preprocessor 12 12 0 0 - 0.08s
orbital_shadow 3 3 0 0 - 0.02s
orbital_text 14 14 0 0 0/1 0.47s
orbital_texture 9 9 0 0 - 0.06s
orbital_touch_ui 1 1 0 0 0/1 0.01s
orbital_ui 32 32 0 0 0/1 0.22s
orbital_world_environment 13 13 0 0 - 0.09s
pie showData
    title Nextest outcomes
    "Passed" : 393
pie showData
    title Doctest outcomes
    "Passed" : 1
    "Skipped" : 10
xychart-beta
    title "Slowest crates (nextest seconds)"
    x-axis ["orbital_ecs", "orbital", "orbital_text", "orbital_ecs_bridge", "orbital_debug_ui", "orbital_ui", "orbital_importer_gltf", "orbital_2d"]
    y-axis "Seconds" 0 --> 1
    bar [0.94, 0.67, 0.47, 0.29, 0.26, 0.22, 0.19, 0.19]
<!-- orbital-ci-test-results --> ## Smart test results **Result:** PASS **Scope:** full workspace **Reason:** workspace-level change: Cargo.lock **Elapsed:** 5m 38s [Workflow run](https://forgejo.sakul-flee.de/SakulFlee/Orbital/actions/runs/495) **Overall:** 404 tests, 394 passed, 0 failed, 10 skipped **Nextest:** 393 tests, 393 passed, 0 failed, 0 skipped **Doctests:** 11 tests, 1 passed, 0 failed, 10 skipped _Outcome charts are split between nextest and doctests. The timing chart covers nextest only._ | Crate | Nextest | Passed | Failed | Skipped | Doctests | Time | | --- | ---: | ---: | ---: | ---: | ---: | ---: | | orbital | 1 | 1 | 0 | 0 | - | 0.67s | | orbital_2d | 29 | 29 | 0 | 0 | 0/1 | 0.19s | | orbital_app | 9 | 9 | 0 | 0 | 0/1 | 0.06s | | orbital_camera | 4 | 4 | 0 | 0 | - | 0.03s | | orbital_core | 2 | 2 | 0 | 0 | - | 0.01s | | orbital_debug_render | 0 | 0 | 0 | 0 | 0/1 | 0.00s | | orbital_debug_ui | 38 | 38 | 0 | 0 | 0/1 | 0.26s | | orbital_ecs | 114 | 114 | 0 | 0 | 0/2 | 0.94s | | orbital_ecs_bridge | 37 | 37 | 0 | 0 | - | 0.29s | | orbital_file_manager | 5 | 5 | 0 | 0 | - | 0.08s | | orbital_iced | 16 | 16 | 0 | 0 | - | 0.12s | | orbital_importer_gltf | 13 | 13 | 0 | 0 | - | 0.19s | | orbital_input | 11 | 11 | 0 | 0 | - | 0.08s | | orbital_light | 6 | 6 | 0 | 0 | - | 0.04s | | orbital_macros | 0 | 0 | 0 | 0 | 0/1 | 0.00s | | orbital_math | 4 | 4 | 0 | 0 | - | 0.03s | | orbital_procgeo | 2 | 2 | 0 | 0 | - | 0.01s | | orbital_resources | 18 | 18 | 0 | 0 | - | 0.18s | | orbital_shader_core | 0 | 0 | 0 | 0 | 1/1 | 0.00s | | orbital_shader_preprocessor | 12 | 12 | 0 | 0 | - | 0.08s | | orbital_shadow | 3 | 3 | 0 | 0 | - | 0.02s | | orbital_text | 14 | 14 | 0 | 0 | 0/1 | 0.47s | | orbital_texture | 9 | 9 | 0 | 0 | - | 0.06s | | orbital_touch_ui | 1 | 1 | 0 | 0 | 0/1 | 0.01s | | orbital_ui | 32 | 32 | 0 | 0 | 0/1 | 0.22s | | orbital_world_environment | 13 | 13 | 0 | 0 | - | 0.09s | ```mermaid pie showData title Nextest outcomes "Passed" : 393 ``` ```mermaid pie showData title Doctest outcomes "Passed" : 1 "Skipped" : 10 ``` ```mermaid xychart-beta title "Slowest crates (nextest seconds)" x-axis ["orbital_ecs", "orbital", "orbital_text", "orbital_ecs_bridge", "orbital_debug_ui", "orbital_ui", "orbital_importer_gltf", "orbital_2d"] y-axis "Seconds" 0 --> 1 bar [0.94, 0.67, 0.47, 0.29, 0.26, 0.22, 0.19, 0.19] ```
fix(debug_ui): improve entity labels and text input handling
All checks were successful
Lint / lint (pull_request) Successful in 1m52s
Templates / templates (pull_request) Successful in 4m53s
PR / test (pull_request) Successful in 6m51s
5262c86aab
- show #id, role, active camera, light subtype and model details in ECS rows
- keep the active camera realized every frame so camera movement survives edits
- use the correct rotation field id for ModelInstances edits
- suppress game input while a text field is focused and style fields for contrast
fix(debug_ui): polish ECS selection, rotation and tabbing
All checks were successful
Lint / lint (pull_request) Successful in 1m1s
Templates / templates (pull_request) Successful in 1m51s
PR / test (pull_request) Successful in 5m56s
aafa99532e
- collapse the previously selected entity when selecting another
- edit Rotation components as Euler degrees instead of raw quaternions
- clear stale edit errors when the selection changes
- move between text fields with Tab and Shift+Tab
fix(orbital_iced): traverse floating panel children in operations
All checks were successful
Lint / lint (pull_request) Successful in 1m7s
Templates / templates (pull_request) Successful in 2m2s
PR / test (pull_request) Successful in 5m56s
752886144f
FloatingPanel did not implement Widget::operate, so focus probes and focus_next/focus_previous never reached the content. Forward operations to the title and content trees, which restores text-field tab navigation and focus suppression.
fix(orbital_iced): make text-field tab navigation work
All checks were successful
Lint / lint (pull_request) Successful in 1m1s
Templates / templates (pull_request) Successful in 1m52s
PR / test (pull_request) Successful in 5m55s
26a7871dc9
The upstream focus_next/focus_previous helpers depend on Operation outcome chaining, which UserInterface::operate does not process in this fork. Track focusable indices directly and move focus in a single pass. Also forwards operations into the FloatingPanel content tree so text inputs are reachable.
Author
Owner

Closes #901

Closes #901
Author
Owner

Closes #902

Closes #902
Author
Owner

Closes #903

Closes #903
Author
Owner

Closes #904

Closes #904
SakulFlee deleted branch feat/debug-ui 2026-10-24 02:16:57 +00:00
Sign in to join this conversation.
No description provided.