perf(iced): make idle panels cost near zero #1103
No reviewers
Labels
No labels
Context: Bug
Context: Enhancements
Platform: Android
Platform: Linux
Platform: Web
Platform: Windows
Platform: iOS
Platform: macOS
Release
Target: CI
Target: CLI
Target: Dependency
Target: Engine
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
SakulFlee/Orbital!1103
Loading…
Reference in a new issue
No description provided.
Delete branch "sakulflee/iced-idle-submit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #1079.
Summary
queue.submitevery frame. The iced fork exposesRenderer::drawplusfinish/recall, so the runtime records the layer and appends it to the main submission. A newOverlaySubmission::MainSubmitmode covers layers that record their own command buffer but share the scene submit.Measurements
Ran
template_all_in_oneat 1280x720 with the debug panels forced visible on a Radeon RX 9060 XT / RADV / Vulkan, 25 s capture:queue.submitper frame;iced_submitnow measures command recording/composite, while the queue submit is folded intoscene_submit.iced_draw~0.03 ms,iced_submit~0.01 ms,overlay_layers~0.07 ms.Verification
cargo fmt --all -- --checkcargo clippy -- -D warningscargo test --no-fail-fastcargo run -p template_all_in_onewith the debug panels visible; no wgpu validation errors or panics.The panels still render, update and accept input; only unchanged frames reuse the cached texture.
Smart test results
Result: PASS
Scope: orbital_app, orbital_iced, orbital_renderer
Reason: directly changed crates
Elapsed: 3m 39s
Workflow run
Overall: 74 tests, 73 passed, 0 failed, 1 skipped
Nextest: 73 tests, 73 passed, 0 failed, 0 skipped
Doctests: 1 tests, 0 passed, 0 failed, 1 skipped
Outcome charts are split between nextest and doctests. The timing chart covers nextest only.
Closes #1079