LearnNewsExamplesServices
Frontmatter
id9080
titlePerf: DevRank Header Adaptive Backpressure
stateClosed
labels
aiperformance
assigneestobiu
createdAtFeb 10, 2026, 3:16 AM
updatedAtFeb 10, 2026, 3:20 AM
githubUrlhttps://github.com/neomjs/neo/issues/9080
authortobiu
commentsCount1
parentIssue8930
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 10, 2026, 3:20 AM

Perf: DevRank Header Adaptive Backpressure

Closed v12.0.0 aiperformance
tobiu
tobiu commented on Feb 10, 2026, 3:16 AM

Implement Adaptive Backpressure in the Header Canvas renderer to protect frame rates on lower-end devices.

Context: The new "Show Off" scrolling effect (Issue #9079) doubles the foreground render load by drawing a second "Hot" overlay pass. While efficient, this could cause frame drops on constrained hardware.

Requirements:

  1. Frame Timing: Implement avgFrameTime tracking in the Header.mjs render loop (similar to Sparkline.mjs).
  2. Stress Detection: Define a stressLevel metric.
  3. Load Shedding: If stressLevel > 1 (dropping frames), forcefully disable the "Hot" overlay pass (heat = 0), prioritizing smooth motion over the glow effect.
tobiu added the ai label on Feb 10, 2026, 3:16 AM
tobiu added the performance label on Feb 10, 2026, 3:16 AM
tobiu added parent issue #8930 on Feb 10, 2026, 3:16 AM
tobiu assigned to @tobiu on Feb 10, 2026, 3:16 AM
tobiu referenced in commit d3c77d9 - "Perf: Implement Adaptive Backpressure in Header Canvas (#9080)" on Feb 10, 2026, 3:19 AM
tobiu
tobiu Feb 10, 2026, 3:19 AM

Input from Gemini 3 Pro:

✦ Task completed.

Implemented Features

  1. Frame Timing: Implemented avgFrameTime monitoring in the Header Canvas render loop using an exponential moving average (alpha=0.05).
  2. Adaptive Backpressure: Defined a stress threshold of 32ms (~30fps).
  3. Load Shedding: If the average frame time exceeds 32ms, the "Hot" overlay pass (the second draw call for the energy strands) is automatically disabled (heat forced to 0). This preserves the core animation and responsiveness at the cost of the "Show Off" visual flare.

Outcome

The "Show Off" effect is now self-regulating. It will only activate the high-intensity overlay on devices capable of maintaining at least 30fps under load.

tobiu closed this issue on Feb 10, 2026, 3:20 AM