Performance and stability (October 2026)
Performance and stability covers how TLOAA keeps its painted look while running smoothly on the Mac and the iPhone, without freezes or crashes.
Goal (user, 2026-10-01): keep the graphics, get high fps, no glitches and no crashes. A checkpoint backup of the whole project was taken first (SSD, backups/2026-10-01_1100_wave30a-closed-combat-minimap).
Desktop
- Result: the full town, hills, combat and minimap run at 48–58 fps at the start view and 43 fps at a tilted view with no upscaling on a quiet machine. The earlier ~21 fps readings came from other jobs on the same machine.
- Bottleneck: the graphics card. About three quarters of the draw work is shadows; combat and the minimap cost under 3 %.
- Real find: every building and kit shipped its own copy of the same textures. Identical copies now share one texture: video memory 6.9 GB to 3.5 GB, picture unchanged (at most 0.07 % of pixels differ).
- Rejected: anything that visibly lowers quality (texture downsampling, lower upscaling, TAA off).
iPhone
- The crash: a deadlock while compiling shaders. The main thread waits for compile tasks that the worker threads cannot start, because they wait on a lock the main thread holds. The system then ends the app after five seconds of no response. It is not a memory problem.
- Fixes in the phone build: a barrier that lets the worker pool finish between loading stages; duplicate textures merged (package 1.3 GB to 0.64 GB); the terrain layers compressed (about 800 MB less at the first frame); the missing painted ground and water materials restored; the roof and wall cutaway recomputed less often; a 60 fps cap for heat.
- Measured on the Mac with the phone's exact package: boot 37 s to about 10 s, video memory at the first frame 1.9 GB to 1.1 GB.
-
Logging: the game now writes
loaa_boot.log(loading stages and a watchdog) andloaa_life.log(lifecycle events and a ten-second heartbeat) so any future crash leaves evidence. -
Nana in Peels' colours (fixed 2026-10-01, IOS-FIX-1): on the phone Nana showed Peels' textures. The cause was a copied import file: Peels' model carried the same internal import id as Nana's, so the phone package loaded one for the other. Nine doubled ids were given new ones when the phone package is made, and the package was checked on the Mac (Nana and Peels show their own colours).
Building for the phone (2026-10-06)
- One script,
scripts/build_install_phone.sh, builds the latest version and installs it on the iPhone without launching it (--fastonly re-packs the game data). If the phone is not connected it still builds and skips the install. - At the start of every phone build it posts to the team's Slack with a screenshot and the list of changes, and a one-line result at the end (director, 2026-10-06: "send it to slack with screenshot always from now on when we start the build on phone and info with change").
- Each build writes its changes to
data/release_log.json, which the main menu shows as the Release Log; v0.1.6 (6 October) carries all of this wave's work. scripts/slack_toggle.sh on|off|statuspauses or resumes all Slack posting; the periodic report is now short done-bullets with screenshots.
PERF-1: freezes, heat and portraits (2026-10-06)
The director reported freezes while walking and when Nana's quest brings the undead in, an iPhone that heats up and dims after about a minute, and missing portraits in the dialogue box. The rule: no visible drop in quality.
- Portraits in dialogue: the party portraits were drawn over the speaker's portrait; they now hide with the touch layer while a dialogue is open.
- The undead freeze: 5,204 ms to about 102 ms. The cause was the navigation lookups: every "closest point on the navmesh" query walked every polygon of the level (4.5–8 ms each, many per frame). A small spatial index (NavSnap) answers them now, the navmesh is baked with a 2 m detail, encounters are prepared at level start, and spawning works to a time budget.
- Walking: the median frame on the test walk dropped from about 211 ms to about 31 ms on the shared test Mac. Rare spikes of 120–155 ms remain (about 0.1 % of frames).
- iPhone heat: the phone is capped at 30 fps (it already ran at 26–33 fps under load). On the Mac, with the phone's renderer and render size, the game's CPU use fell from about 104 % to 50–81 %. Not yet measured on the phone itself.
- Quality parity: before and after from the same review cameras are identical on the ground, buildings, props and characters; the only differences are the moving sea and the bobbing boat.
FOLLOW-1: companions keep up (2026-10-06)
When the party walked a long way the companions used to race to the goal by their own routes or fall far behind. They now trail the leader along its path, on spots checked against the navmesh. Measured on the same route: the farthest companion at most 7.0 m behind (was 18.2 m), never more than 8 m behind (was 28.9 s of the walk), the leader's stuck time on the balatura stair 90 s to 6.2 s; with the stick 4.8 m (was 17.2 m).
Details: docs/tech/optimization_2026-10.md and docs/tech/ios_optimization_2026-10.md.
Lag fixes and the frame-time gate (2026-10-23 and 24)
- Less lag in Chapter 1 (phone build v0.1.124): cutscenes load under the black screen, the crypt builds in the background, and voices and clips are preloaded (Vella's first cutscene line 21 ms to under 1 ms).
- The square fight starts its waves about 4× faster (140 to 37 ms), and the crypt descent's visibility checks skip far pieces: frames over 50 ms on the route 251 to 106 (v0.1.125).
- Cheap party shadows (v0.1.127): low-poly shadow stand-ins draw the party's shadows, 278k instead of 784k primitives at the pier view.
- Meneferu walks at 60 fps at the harbour and the forum on the test Mac (v0.1.129).
- A hidden frame-time logger on the phone (PERF-LOG-1, v0.1.139): one line every 5 s, read off the phone afterwards without launching the app, with no measurable cost. It feeds the frame-time gate for Meneferu before NPCs: over at least 5 minutes of play at the 30 fps cap, the frame time at the 95th percentile at most 34.5 ms, hitches over 50 ms at most 0.5 %.
- The phone check in
scripts/build_install_phone.shno longer mistakes an "unavailable" phone for a connected one (F-305, 2026-10-24).
See also
- Development status · Team and process
- Camera (touch controls)
- Development portal
Sources: docs/plan/wave_2026-10-01_log.md (OPT-P2, IOS-OPT-1, IOS-FIX-1); docs/plan/wave_2026-10-06_log.md (PERF-1, FOLLOW-1 END); data/release_log.json (v0.1.124, v0.1.125, v0.1.127, v0.1.129, v0.1.139); docs/decisions.md (2026-10-24 21:4x MEN-LOOK-PLAN, 22:1x PERF-LOG-1 and F-305); scripts/build_install_phone.sh; scripts/slack_toggle.sh Last updated: 2026-11-18 (WIKI-CLEAN-1)
Categories: Development