Performance
All numbers are medians from the plugin's developer, with the device and date next to each. They come from a small number of devices (Platforms), so treat them as examples, not as a promise for other hardware. Turn time is the wall time of one Run NPC Turn, from the call to On Completed.
Turn time in a packaged game
These runs load the model once and then run 10 turns with a short persona (about 180 prompt tokens) and the same player lines each time. Speculative decoding was off in them (see the next section for what it adds).
| Device | Backend | Package | Median turn | Load | Most memory used |
|---|---|---|---|---|---|
| Samsung Galaxy S26+ (Exynos 2600), 2026-11-21 | GPU | Shipping | 1,020–1,062 ms (4 runs) | 1.97–5.42 s | 1,077.5–1,165.4 MB |
| same | CPU | Shipping | 1,207–1,210 ms (2 runs) | 0.29–2.06 s | 1,796.3–2,626.2 MB |
| same | GPU | Development | 1,045–1,051 ms (2 runs) | 2.09–5.00 s | 1,183.9–1,205.8 MB |
| same | CPU | Development | 1,499–1,576 ms (2 runs) | 0.29–2.67 s | 1,878.4–2,703.7 MB |
| iOS build on the developer's Mac (M2 Max, Designed for iPad), 2026-11-21 | GPU | Development | 254–264 ms (3 runs) | 1.58–7.09 s | 948.2–985.1 MB |
| the developer's Mac (M2 Max), 2026-11-22 | GPU | Development | 369 ms | 3.47 s | 2,603.5 MB |
| same | CPU | Development | 919 ms | 2.17 s | 2,533.3 MB |
| Windows laptop (Intel Core Ultra 7 255U, integrated graphics), 2026-11-21 | GPU | Shipping | 1,112 ms | 8.62 s | 3,354.0 MB |
| same | CPU | Shipping | 2,266 ms | 3.16 s | 1,579.9 MB |
| same | GPU | Development | 1,998–2,101 ms (2 runs) | 10.65–10.93 s | 3,452.0–3,474.2 MB |
| same | CPU | Development | 2,751–2,789 ms (2 runs) | 5.13–6.13 s | 1,706.8–1,707.8 MB |
| Android emulator (arm64), 2026-11-21 | CPU | Development | 1,271–1,474 ms (2 runs) | 0.36–4.19 s | 1,958.8–2,788.4 MB |
- The larger load times in a range are first loads, which compile the caches (warm-up).
- On the S26+ the CPU backend's first launches used the most memory while they built the cache (2,626.2 MB in Shipping, 2,703.7 MB in Development); later launches used 1,796.3–1,878.4 MB.
- Memory is what the platform counts for the game: the footprint on Apple platforms, the resident size plus swap on Android (UE's own figure), the working set on Windows. On Android this includes the model file's mapped pages.
- On the S26+, the Shipping CPU turns were faster than the Development ones (1,207–1,210 ms against 1,499–1,576 ms). Why is not known; the packages were built hours apart.
- The first turn after a load is slower: 2,222 ms on the Mac GPU (2026-11-22) against a median of 369 ms.
On an iPhone. One iPhone Air (iOS 27.3), Development package, one run per backend, 2026-11-23. These runs had speculative decoding at its default (Adaptive) and a slightly longer persona (193 to 201 prompt tokens), so they don't compare directly with the table above.
| Device | Backend | Package | Median turn | Load | Most memory used |
|---|---|---|---|---|---|
| iPhone Air (iOS 27.3), 2026-11-23 | GPU | Development | 221 ms | 10.57 s (first load) | 989.4 MB |
| same | CPU | Development | 642 ms | 1.11 s | 1,004.1 MB |
Speculative decoding
Project Settings → Plugins → NpcAct → Speculative Decoding (Off, On, Adaptive; default Adaptive) lets the model draft a few words ahead and check them in one step. Adaptive drafts only while it measures faster.
Measured with a longer turn (743 prompt tokens), outside UE, on the Galaxy S26+ (2026-11-21):
| Backend | Off | Adaptive |
|---|---|---|
| GPU | 1,588 ms | 1,168 ms |
| CPU | 2,036 ms | 1,617 ms |
In packaged games, 20 turns each in the order Off, Adaptive, Adaptive, Off (2026-11-22): the reply text was the same in every turn, and Adaptive's turn time was 0.750 of Off's on the Mac GPU, 0.740 on the iOS build on the Mac, and 0.964 on the Android emulator's CPU. The drafter added 18.9 MB of memory on the Mac, 121.0 MB on iOS and 60.8 MB on the emulator.
On the Galaxy S26+ GPU, in a packaged Development game running the 44 accuracy turns below once each (2026-11-22), the median turn was 1,599 ms with Off and 1,253 ms with Adaptive.
Two things change with it on:
- Max Reply Tokens is soft by 2 or 3 tokens. One step can accept several drafted tokens, so a reply can run 2–3 tokens past the cap (19 → 21–22 on the Mac GPU). Below the cap the text is the same as Off.
- Generate Struct on a Mac GPU gives different JSON. With a JSON shape to fill, the Mac's GPU path returned different replies with Adaptive than with Off, and 9 of 10 test replies were valid against 10 of 10 with Off. The one miss failed cleanly with Invalid Reply. The CPU, and the iOS build's GPU, gave 10 of 10 with Adaptive. If your game relies on Generate Struct on Mac, set Speculative Decoding to Off. The setting applies to the next Load NPC Model.
Tool-call accuracy
A fixed set of test turns, each with the tool call (or no call) the NPC should make, run with greedy decoding on the developer's Mac (M2 Max) and, in a packaged game, on the Galaxy S26+. The same turns can grade differently on another GPU or device.
| Test set, date | Backend | Correct | No call when one was expected | A call the rules forbid | Invalid arguments | Malformed or wrong tool |
|---|---|---|---|---|---|---|
| 25 turns, the bare runtime, 2026-11-20 | GPU | 17 of 25 | 7 | 1 | 0 | 0 |
| same | CPU | 14 of 25 | 10 | 1 | 0 | 0 |
| 44 turns, the plugin's runtime outside UE, rescue on, 2026-11-22 | GPU | 36 of 44 (33 with the rescue off) | 6 (9 with it off) | 1 | 1 | 0 |
| same | CPU | 30 of 44 (25 with the rescue off) | 11 (16 with it off) | 2 | 1 | 0 |
| 44 turns, a packaged Development game on the Galaxy S26+ (Exynos 2600), rescue on, speculative decoding Off, 2026-11-22 | GPU | 36 of 44 (33 without the rescue's calls) | 5 | 2 | 1 | 0 |
| same, speculative decoding Adaptive | GPU | 35 of 44 (33 without the rescue's calls) | 6 | 2 | 1 | 0 |
The forbidden call is the NPC opening a door its prompt says stays shut; the invalid arguments are a quantity outside the tool's range. The plugin rejects a call like that, so it never reaches On Tool Call; the turn's Stats count it in Rejected Calls. Both are why your game checks every call (game-side checks).
The usual failure is the NPC saying it does something without calling the tool. The rescue makes that call from the player's own words for some tool families (how). Every rescued call in the 44-turn set graded correct (9 on GPU, 15 on CPU, over 3 runs on the Mac; 3 with Off and 2 with Adaptive on the S26+). On the S26+ the forbidden call came in two different turns. Against the Mac GPU, 2 of the 44 turns graded differently with Off and 3 with Adaptive.
Changing a tool's description, or any text the model reads, moves turns between correct and no-call, in both directions: a change in how a number's range is described to the model moved the 25-turn set's GPU result from 17 to 19 correct and its CPU result from 14 to 15, with other turns moving the other way. Re-test a persona after you edit it (Writing NPCs and tools).
CPU threads
Default Cpu Threads (Project settings) sets how many threads the CPU backend uses. On the Galaxy S26+ (10 cores), with a 761-token turn in a packaged Development game, 2 runs of 5 turns at each setting (2026-11-22), the median turn was:
| Threads | Median turn |
|---|---|
| 4 | 1,697–1,700 ms |
| 6 | 1,674–1,678 ms |
| 8 | 1,646–1,647 ms |
| 4, held on the 4 fastest cores | 1,678–1,755 ms |
8, the automatic setting on Android, was the fastest, by about 3% over 4. For Windows, see the laptop below.
History length
Every line in Run NPC Turn's History is read again on every turn. On the Galaxy S26+, with lines of about 20 tokens each before a 761-token turn, in a packaged Development game (2026-11-22, 2 runs of 5 turns at each length), the time to the first reply text was:
| History lines | CPU backend | GPU backend |
|---|---|---|
| 4 | 1,386–1,394 ms | 889–892 ms |
| 8 | 1,566–1,570 ms | 896–897 ms |
| 16 | 2,060–2,080 ms | 1,050–1,056 ms |
So each line added about 57 ms on the CPU backend and about 14 ms on GPU, where the cost came in steps. In the same test, more History also changed what the NPC did (History).
When the GPU fails on a turn (Android)
On Android the plugin moves a turn to the CPU when the GPU fails before any text (Platforms). The Galaxy S26+'s GPU works, so the developer forced that failure on the first turn with a test-only switch that Shipping builds don't contain (2026-11-22, a 761-token prompt, speculative decoding Adaptive):
| Caches before the load | The caller's wait for that turn | Peak resident memory | Runs |
|---|---|---|---|
| none (first launch) | 5,055–5,133 ms | 2,021.4–2,097.9 MB | 3 |
| the CPU cache only | 4,182–4,198 ms | 1,896.4–1,968.4 MB | 3 |
| both | 3,628–4,318 ms | 1,905.0–1,990.2 MB | 3 |
- A plain CPU turn on the same phone took 1,673–1,691 ms (6 runs), so the failed turn makes the player wait about 2 to 3.5 s longer, once. Later turns run on the CPU.
- The app was never killed. A plain first CPU load used more memory than any fallback: 2,737.7–2,815.3 MB resident.
Frame time
Turns run on a worker thread, so the game thread doesn't wait for the model. In the Mac editor (M2 Max), from the load to the unload, no game-thread frame took longer than 33.3 ms in these runs:
- GPU with a cold cache, on a quiet machine (2026-11-21, 3 runs): the worst frames were 8.91–19.70 ms, all during the load; during the turns 8.65–8.87 ms.
- CPU with a warm cache (2026-11-20): the worst frame was 20.55 ms, during the unload; during the turns 10.08 ms. A cold first load on a busy machine is the exception (Troubleshooting).
In the packaged Mac game (2026-11-22) the median frame over the whole run (load, 10 turns, unload) was 8.32 ms on GPU and 8.33 ms on CPU, with no frame over 33 ms.
Galaxy S26+
The example project, NpcActDemo, packaged for Development, played its 12 scripted player lines with the model on the GPU (2026-11-22). Measured from the frames Android showed on screen: from the load to the last reply, 893 frames, median 16.69 ms, the worst 20.90 ms, none over 33 ms. Each frame came on the phone's 60 Hz beat while the model ran. Most memory used: 1,238.1 MB (resident size).
In the test game's empty map, running the accuracy turns and the identity test on GPU (4 runs), the game's median frame was 16.74–16.80 ms over the whole run, with 1–2 frames over 100 ms per run.
Windows laptop, integrated graphics
On the Core Ultra 7 255U laptop with its integrated GPU (2026-11-21), in a 1280×720 window, the empty map's frames were already 25–30 ms. Over each whole run (load, 10 turns, unload):
- CPU backend, 8 threads: median frame 32.75 ms, no frame over 100 ms.
- GPU backend: median frame 35.22 ms, 4 frames over 100 ms, and 1.7 GB more memory than the CPU backend.
- With 8 CPU threads, 38% of frames took longer than 33.3 ms; with 4 threads, 4%, and turns were as fast (2,205 ms against 2,197 ms). That is why the CPU backend uses 4 threads on Windows by default.
A second session on the same laptop (2026-11-22, with UE's CSV profiler on) showed where the frame goes:
- The render thread and the GPU set the frame time, not the game thread. The game thread's median was 2.43–3.11 ms per frame in every run, with or without the model.
- GPU inference competes with the game for the integrated GPU: 26% of frames took longer than 33.3 ms, against 0–1% with the CPU backend. In those slow frames the render thread's median was 51.86 ms.
- The thread result didn't repeat: 8 threads put 0% of frames over 33.3 ms and 4 threads 1%, with turns as fast (2,261 ms against 2,254 ms). Why the two sessions differ isn't known. 4 threads stays the Windows default; it was no slower in either session.
On a laptop like this one, the CPU backend is the better choice. No discrete graphics card has been measured.