Skip to content
Game 5 Unit 51 of 128 1 hr learning time

Performance Optimisation

Speed up critical paths and optimise frequently-executed code.

40% of Ink War

Performance optimisation makes the game smoother and more responsive.

Run It

pasmonext --sna inkwar.asm inkwar.sna

Unit 51 Screenshot

Version shows “PHASE 4 V0.3”.

Technique

AreaDescription
Loop unrollingReduce overhead
Register useAvoid memory access
Look-up tablesPre-computed values

The Complete Code

What You’ve Learnt

  • Profiling - Identifying bottlenecks
  • Cycle counting - Z80 timing
  • Optimisation - Speed improvements

What’s Next

Unit 52 adds advanced AI look-ahead.

What Changed

Unit 50 → Unit 51