perf(iced): reduce iced layer submit cost when UI draw is idle #1079
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
SakulFlee/Orbital#1079
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Summary
On Windows, the iced/debug overlay costs roughly the same as the scene submission:
overlay_layers: ~1.69 ms mean, up to 3.67 msiced_draw: ~0.82 msiced_submit: ~0.86 msscene_submit: ~1.72 msTogether they are about 85% of the 4.02 ms render total.
When
iced_drawdrops to ~0.09 ms (rows 88-92),iced_submitremains ~0.73-0.81 ms. So even an apparently idle or hidden iced layer still costs ~0.8 ms CPU.Investigation
Acceptance criteria
The Android minimal capture shows this is larger than the idle-submit case:
iced_draw~0.05 ms,iced_submit~0.96 ms.iced_draw~10.4 ms,iced_submit~4.8 ms,ui_events~5.4 ms.presentis under 1 ms.So active panel drawing and event processing are also major costs, not just an idle layer submit. The tabbed single-panel mobile layout in #1082 should reduce the number of visible panels; this issue should probably cover both active draw and idle submit.