Performance¶
Most screens cost little. This page says what the plugin recomputes for each kind of change, which habits keep a screen cheap, how to measure your own project, and what a measured run showed.
How the plugin draws¶
The plugin draws documents on its own UI thread, apart from the game thread. A change you make reaches the screen one update later, and a field set several times in one game frame arrives once, with its last value (The update cycle). Layout and style are computed only for what a change touched, and what did not change is drawn again from its earlier result.
What costs¶
| You change | The plugin recomputes |
|---|---|
The text of an element ({{ field }} in text) |
Layout of that text and of its ancestors, whose size can depend on it, then the paint of that text. Siblings keep their earlier layout and paint. |
A class (class or class:) |
Style of the element. Style of descendants or siblings too only when a selector of your style sheets reaches them (.a .b, .a + .b). Layout reruns only when a changed property affects it. |
A size (width, height, margins, padding) |
Layout of the element and its ancestors. Descendants and siblings whose inputs did not change reuse their earlier layout. |
transform or opacity |
No layout. A change of an existing opacity, or of a transform of the same kind, replays the paint of the element and of everything below it with the new alpha or matrix, without recording it again. The first change away from opacity: 1 or transform: none, and an animation starting or ending, records the subtree once. A box-shadow, a decorator, an image, an SVG, a progress bar or a list marker below a changing opacity is generated again: fading a container full of icons redraws every icon each frame. |
| Opening a document, first time | The compiled file is read, the elements are built, and style and layout of the whole document run once. |
| Opening a document again | A document without keep-alive is destroyed on close, so it costs the same as the first time. A kept or preloaded document comes back as it was; a tab that was shown stays and shows again without being created. |
An animation of a size property is a size change on every frame; an animation of transform or opacity is the
paint-only row on every frame.
Do and don't¶
Long lists: :virtual and :key. Without :virtual every entry is an element, and each of them is
styled and laid out. With it only the rows near the visible part exist (Virtual lists); the parent needs a fixed height and overflow-y: auto.
:key keeps the element of an entry across inserts and removals instead of rebuilding rows.
<!-- Do -->
<div class="list">
<div class="row" :for="row : Items" :key="row.Id" :virtual>{{ row.Name }}</div>
</div>
<!-- Don't, with thousands of entries -->
<div class="list">
<div class="row" :for="row : Items">{{ row.Name }}</div>
</div>
Animate transform and opacity, not sizes. Growing a panel with width or shifting it with margin-left runs
layout on every frame; a transform does not. A size animation also paints again on every frame: the background and
border of each animated element are built for its new box, and text that moves by a fraction of a pixel gets new glyph
geometry, so it keeps the same placement and sharpness as in a browser. This cost grows with the number of animated
elements, and web browsers give the same advice for the same reason. A panel or a few buttons animating width,
height or padding are fine. For many elements at once (a grid of tiles, every row of a list) animate transform
instead, or one container: in What we measured, 1000 tiles cost three to five times as much with
width, height and padding as with transform. scale() scales the text with the box; when the text must keep
its size, slide or fade the element instead of resizing it.
/* Do */
@keyframes slide { from { transform: translateX(0px); } to { transform: translateX(40px); } }
.panel { animation: slide 0.3s ease-out; }
/* Don't */
@keyframes slide { from { margin-left: 0px; } to { margin-left: 40px; } }
Animate one container, not its children. An opacity or transform on a container is one change that replays its
subtree. The same animation on every child is one change per child.
/* Do */
.stage { animation: fade 1s linear infinite alternate; }
/* Don't */
.stage .tile { animation: fade 1s linear infinite alternate; }
Measure in your project¶
Use the engine's own tools. Start a build that is not Shipping with Unreal Insights tracing:
MyGame.exe -trace=cpu,frame
Open the trace in Unreal Insights and look in the timing view for the timers whose names start with ArcRmlUI.. These
need only the cpu channel and exist in every build except Shipping:
| Timer | What it covers |
|---|---|
ArcRmlUI.ui.view_frame <document> |
One frame of one document on the UI thread: update, render and publish. |
ArcRmlUI.ui.view.update, ui.view.render, ui.view.publish |
The parts of a view frame. |
ArcRmlUI.ui.compiled.read_document, ui.compiled.instance |
Reading the compiled file when a document opens, and building the document from it. |
ui.view_frame carries the document path, so you see which screen a frame belongs to; the others are scopes under it or under the open of that document. The per-element timers of the plugin
appear only with the counters channel on too (-trace=cpu,frame,counters).
What we measured¶
The numbers below are the time of one view frame on the UI thread, in ms. They come from packaged Development builds on one machine: AMD Ryzen Threadripper 3960X, RTX 4090, 1920x1080. One run on one machine shows the order of magnitude, not a guarantee for yours.
Demo hub screens (the hub of the Demo, six tabs; one run on 2026-11-22; the average over the run / the worst frame):
| Action | Average / worst (ms) |
|---|---|
| Arrow key moves focus | 1.6-2.6 / 4.6-6.3 |
| Switch to a tab already visited | 1.2-2.5 / 6.3-12.8 |
| First visit of a tab | 1.2-3.5 / 9.6-26.9 |
| First visit of the first tab (Inventory) | 2.1 / 39.4 |
Animations (test documents: a flex-wrapped field of 1000 tiles, or one container with 2000 descendants; the latest run of each, 2026-11-23 or 2026-11-24; the average over the run):
| Animation | Average (ms) |
|---|---|
| Fade of one container with 2000 descendants | 1.4 |
Slide (translateX) of one container with 2000 descendants |
1.6 |
transform on each of 1000 tiles, transition / keyframes |
3.3 / 5.8 |
width, height and padding on each of 1000 tiles, transition / keyframes |
15.3 / 15.4 |
A large page. A test document of about 43,700 elements takes about 0.4 s to open; use :virtual
for long lists.
Against Chrome¶
The same pages run in Chrome on the same machine. Chrome's numbers are its main-thread work from a Chrome trace (style, layout and paint; compositor and raster not counted); ours are the UI-thread view frame. Dates are on each chart; the pages did not change between the runs.
In the colour animation Chrome drew a frame only every 83-108 ms, with a long animation frame on each one, most likely raster of the 1,000 repainted tiles, which neither side counts in the work per frame.
Demo hub screens. Chrome runs the React prototype of the hub; only its engine part (style, layout, paint, median per step) is compared, without the prototype's own JavaScript.
| Action | Chrome engine, median (ms) | ArcRmlUI, average / worst frame (ms) |
|---|---|---|
| Arrow key moves focus | 1.9-5.1 | 1.6-2.6 / 4.6-6.3 |
| Build a tab (Chrome rebuilds it on every switch; ours: first visit) | 8-24 | 1.2-3.5 / 9.6-26.9 |
On the large page Chrome is still faster: 1.6x on layout, 2.3x on the whole frame of a class change and 2.6x on opening. The gap is closing: