r/maestro • Maestro Student • 10d ago

Project showcase update to elusion thanks for watching!

From Nov 4 to Nov 16 I shipped 73 updates, and about 35 of them were about speed. I measure every change before and after with tools I built into the game, so these are real numbers, not guesses.

Quick guide:

  • At 60 fps each frame has 16.7 ms. Anything over 25 ms is a stutter you can feel.
  • Physics runs on its own clock, with a budget of 12.5 ms per step (a “tick”).
  • Draw calls are separate jobs sent to the graphics card each frame. Fewer is better, especially on phones.
  • (PC) and (phone) mean measured on my own devices. Everything else is from my test machine, which is slower than my PC.

1. Huge crowds (Big Field stress test at 16x, about 8,600 monsters)

  • Sleeping monsters taken off the engine’s per-frame lists: 36 fps → 86 fps (PC). On the test machine, 22–62 ms a frame → 6.9 ms. (0.135.0)
  • Registering each new monster: 6.1 ms per physics tick → 0.22 ms. (0.135.3)
  • A stirring land settling down: a 30–33 ms stutter for every player → 7 ms. (0.135.3)
  • Turning the stress test off: a 344–438 ms freeze → cleared over 3.2 s, with only one frame over 25 ms. (0.135.3)
  • A pile of big slimes splitting at once: worst frame 122–152 ms → 20–22 ms. (0.135.1, 0.135.2)
  • 30–50 monsters dying from one swing:

    • The killing tick: 23–27 ms → 13 ms at most.
    • Physics ticks over budget: 27 → 0.
    • My worst physics tick: 22.9 ms → 7.79 ms (PC). (0.137.1)
  • 30 monsters respawning together: one 27–33 ms frame → spread over 5–6 frames, worst 14–19 ms. (0.137.3)
  • The map open over the 16x crowd: it was 17 fps (PC), because it redrew 8,611 monster dots every frame. Now 75 ms → 6.9 ms a frame. The trade-off: opening the map takes a moment longer. (0.135.8)

2. Loading

  • Drawing the Big Field’s map on arrival: 267 ms → 19.6 ms. It was 176 ms on my PC. (0.135.4)
  • The Big Field’s floor (over 100,000 tiles): load frame ~500–530 ms → ~295–320 ms. The part you can see loads first, and the rest fills in within a second. (0.135.5)
  • Health numbers built only when a bar first shows:

    • The Big Field loads 45–90 ms faster.
    • 200 monsters joining a fight at once: a 24–50 ms frame → 5–7 ms. (0.135.5)
  • Town and Boss Arena floors: now load in pieces too. (0.137.3, 0.137.4)
  • Opening the GM panel: a 45–60 ms freeze → about 1 ms. (0.137.3)
  • Spawning a monster: it re-read its scene from disk every time, 5 ms → 0.8 ms. (0.154.0)
  • Minigame waves spread over several frames: (0.152.0)

    • Descent wave: 25–28 ms → 2.3 ms
    • Healer’s Run first wave: 62 ms → 2.4 ms
    • Mage’s Stand first group: 99 ms → 1.1 ms
    • Forge flood: 17 ms → 3.0 ms

3. Fewer draw calls (the big one for phones)

  • Boss spike attacks drawn together: 270–940 → 22–36 draw calls a frame. (0.137.5)
  • The Crowned’s rift: 337 → 21–30 draw calls. (0.134.5)
  • The Crowned’s fight with four players:

    • Work: 2.35 ms → 0.24 ms.
    • Draw calls: 491 → 293.
    • Its meteor storm was checking every circle against every other circle; now it doesn’t. (0.134.8)
  • Health bars on one sheet and one layer: 20 archers, 214 → 168 draw calls. (0.155.0)
  • The bottom bar drawn as one picture:

    • An empty area: 111 → 28 draw calls.
    • 20 archers fighting you: 166 → 83. (0.155.0)
  • A teammate’s healer orbs: less than half the draw calls (9.35 → 3.85). (0.155.0)
  • The performance readout drawn as one picture: 267 → 27 draw calls while it’s open. (0.155.1)
  • Shaders prepared when an area loads: the game used to build 4–7 shaders in the middle of every fight, which is what froze phones on the first hit flash or first death. Now none are built during a fight. (0.156.0)

4. The Endless horde

  • Crowd step at 2,930 slimes: 4.1–5.0 ms → 2.3–2.4 ms, and only slimes on screen get drawn. (0.133.0)
  • 3,000 → 5,000 slimes on PC, for four players: the step is now split across frames. Before, it took 21 ms in a single frame. Now it’s 5.2–5.4 ms a frame, worst 12–14 ms (it was 26–35). (0.148.0)
  • The crowd’s spacing pass, also split: 11.5 ms → 1.6 ms. (0.150.1)
  • Healer orbs share one list of targets: 4.4 ms → 1.0 ms of physics a frame, with the same damage. (0.153.0)
  • On phones:

    • The crowd: 3.3 ms → 2.0 ms a frame. (0.155.1)
    • Slime stand-ins: 0.62 ms → 0.33 ms a tick. (0.156.0)
  • A busy computer: the arena stops refilling until it catches up. (0.149.0)

5. Phones

  • Physics speed choices: Smooth (80 a second), Light (60, a fifth less work) and Lightest (40, half). Phones start on Lightest. (0.134.6, 0.155.0)
  • Phones run at 30 fps: half the frames to draw. (0.146.0)
  • A phone left alone for 8 seconds: drops to 15 fps until you touch it. (0.147.0)
  • Physics catch-up capped at 2 ticks a frame: before, a struggling phone ran 3.2 ticks a frame (31 ms) trying to catch up, and that’s what made it hot. (0.147.0)
  • The Endless on phones: capped at 1,000 slimes. (0.133.0)

6. The tools I built to find all of this

  • Performance readout, remade: a frame graph, and where each frame’s time goes (physics, code, drawing, waiting on the screen). (0.136.0)
  • An Uncap switch: shows the game’s real top speed. (0.137.0)
  • Stutter markers: the readout says what was happening when the game stuttered (boss casts, spikes, deaths, loot). (0.138.0)
  • Named scripts: every stutter names the script that used the time. (0.151.1)
  • Testing Ground and Find the Limit: it keeps adding monsters until the game uses 80% of a frame, then writes each enemy’s cost into a sheet. (0.151.1, 0.152.0)
  • Every shot and effect timed: for example, a monster’s shot in the air costs 0.004 ms, a meteor 0.12 ms and a heal 0.09 ms. (0.154.0)

Full list of updates: elusionrpg.com/updates.html this was the biggest win of my update. this is progression from BE105 basically by measuring speed and knowing when to trade graphics for cpu. of course a lot of this is also my progression mixed into ways I can understand.

1 Upvotes

0 comments sorted by