Skip to content

Performance

Brian Jr edited this page Dec 1, 2026 · 3 revisions

Performance and memory

Command Panel runs all the time in the background, so it should stay light. This page shows how much memory (RAM) it uses on an AYN Thor, what each feature adds, and how to keep it low.

Measured on Command Panel v0.16.0, AYN Thor with 16 GB of RAM, November 30, 2026. Numbers are PSS (the app's fair share of memory, the figure Android itself uses), rounded.

At a glance

What's going on Memory used
Panel closed, Replay Buffer off about 110 MB
Panel open, Replay Buffer off about 135 MB
Panel closed, Replay Buffer on (default settings) about 135 MB
Panel closed, Replay Buffer on (largest settings) up to about 270 MB

On a 16 GB Thor, 110 MB is under 1% of the device's memory.

The idle total has two parts:

  • The app itself: about 68 MB.
  • The root helper: about 42 MB. This is a small separate process that handles privileged actions (brightness, screen blanking, Replay Buffer capture and so on). Most of its size is the fixed cost of starting a Java process outside Android's usual app launcher, and it stays about the same whatever you turn on.

What each feature adds

Feature Panel closed Panel open
The panel itself 0 +25 MB (its window on the lower screen)
Replay Buffer +8 to +160 MB, see below same
Still image background +5 MB +6 MB
Animated (GIF) background 0 +10 to +14 MB
Gradient background, still or moving 0 +3 to +7 MB

Good to know:

  • Closing the panel gives its memory back. Opening and closing it again and again doesn't make it grow.
  • Animated backgrounds only animate while the panel is open. Large GIFs are shrunk to the panel's size, so a big file costs about the same as a small one once it's playing. Importing a very large GIF briefly uses about 25 MB more while it's processed.
  • Gradients are the lightest backgrounds. A moving gradient is drawn by the GPU and costs about the same memory as a still one; moving costs battery, not RAM.
  • A still image stays in memory after you close the panel, so it opens instantly next time.

Replay Buffer

Replay Buffer keeps the last few seconds of gameplay in memory so you can save a clip at any time. That memory is set aside the moment it turns on, and it stays in use the whole time Replay Buffer is on, even with the panel closed.

How much depends on three settings: what it records (Top, Bottom or Both screens), Quality, and how many seconds it keeps. With sound on:

Records Quality 15 s 30 s 60 s 90 s
Top screen Low 8 MB 13 MB 25 MB 37 MB
Top screen Balanced 13 MB 25 MB (default) 48 MB 71 MB
Top screen High 26 MB 49 MB 94 MB 140 MB
Bottom screen Low 8 MB 11 MB 20 MB 30 MB
Bottom screen Balanced 11 MB 20 MB 39 MB 58 MB
Bottom screen High 21 MB 39 MB 76 MB 112 MB
Both screens Low 9 MB 18 MB 34 MB 51 MB
Both screens Balanced 18 MB 34 MB 66 MB 99 MB
Both screens High 36 MB 68 MB 131 MB 160 MB (limit)

Recording also adds about 4 MB to the root helper and a little graphics memory for the video encoder.

Good to know:

  • The default (Top screen, Balanced, 30 seconds) uses about 25 MB. We measured it on the device and it matched the table.
  • Saving a clip briefly needs about as much again while the clip is written out. A fix to remove that is planned.
  • Turning Replay Buffer off frees all of it within a few seconds.

Keeping memory low

  1. Pick the Replay Buffer settings you actually use. The default is light. Both screens on High for 90 seconds is the heaviest thing Command Panel can do. If you only clip the top screen, record only the top screen.
  2. Turn Replay Buffer off when you don't need it. It's the only feature that holds a lot of memory while the panel is closed.
  3. Prefer a gradient background to a GIF if you want something moving.
  4. Close the panel when you're done. It gives back its 25 MB.

What we're improving

These came out of this round of measurements:

  • Replay Buffer only uses the memory its clip needs. Today it can end up holding its whole buffer even when the video needs much less. This is the biggest saving.
  • Saving a clip without a second copy in memory.
  • Giving memory back when Android asks for it, including the cached background image.
  • A smaller cache for Replay Studio's thumbnails.
  • Finding out why the app holds some extra native memory while idle.

This page will be updated with new numbers once those land.

How these numbers were measured

  • Release build: dumpsys meminfo while switching the panel and Replay Buffer with adb, in every combination, after letting each state settle (and letting the Replay Buffer fill).
  • Backgrounds: measured on a debug build, comparing each background with no background, the panel open and closed. A debug build uses more memory overall, but what each background adds is the same as on a release build.
  • Replay Buffer table: calculated from the app's sizing rule (bitrate times seconds kept, plus 2 seconds and 25% headroom, limited to 160 MB). The default setting was checked on the device.

Clone this wiki locally