perf-agent: visibility gate VideoEventBuffer

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-13 20:44:59 +00:00
1 parent f8cd7369b5
commit bb39226ca5
11 files changed
+139 -2

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
# Context
## Goal
Improve application responsiveness by optimizing background tasks and ensuring documentation accuracy.
## Scope
- Analyze codebase for performance bottlenecks (timers, loops, concurrency).
- Fix: Visibility-gate `VideoEventBuffer` to prevent UI thrashing when hidden.
- Audit: Verify upload documentation matches implementation.
## Assumptions
- `document.hidden` is reliable.
- `VideoEventBuffer` is the primary feed ingestion path.
## Definition of Done
- `VideoEventBuffer` pauses UI updates when hidden.
- `daily-perf-report` generated.
- Lint passes.