agent-orchestrator/ui-gpui
Hibryda 727c7d2e06 perf(ui-gpui): revert AnimationElement (79% CPU), document shader limitation
GPUI's AnimationElement uses request_animation_frame() internally which runs
at vsync (60fps) causing 79% CPU. Fragment shaders not exposed through GPUI's
Scene API (paint_quad only accepts static color, no time uniform).

Reverted to BlinkState timer pattern (3% CPU, 2 renders/sec).
This is the same approach Zed uses for cursor blink.

Tested approaches and results:
- AnimationElement + pulsating_between: 79% CPU (vsync loop)
- BlinkState + timer(500ms) + cx.notify(): 3% CPU (correct)
- Custom Element + paint_quad: no shader access
- CSS animation (Blitz): 30% CPU (full repaint loop)
2026-03-19 23:03:04 +01:00
..
src perf(ui-gpui): revert AnimationElement (79% CPU), document shader limitation 2026-03-19 23:03:04 +01:00
Cargo.lock feat: add Dioxus and GPUI UI prototypes for framework comparison 2026-03-19 06:05:58 +01:00
Cargo.toml feat: add Dioxus and GPUI UI prototypes for framework comparison 2026-03-19 06:05:58 +01:00