Module 10
Testing and performance
Debugging, unit and integration tests, profiling, Parallel Luau and mobile budgets.
Start lesson 1: Debugging: breakpoints, the console, a method- Lessons
- 6
- Time
- 7.5 hours
- Practice
- 7 code cells, 60 questions
Lessons
- 1Debugging: breakpoints, the console, a methodDebug a Roblox game like a pro. Pause Beacon Yard's server code on a breakpoint, read Watch and the Call Stack, use logpoints and the F9 Developer Console, and follow a repeatable method.
- 2Unit tests with Jest-LuaWrite unit tests for a Roblox game with Jest-Lua. Test Beacon Yard's pure rules in unit/specs/*.spec.luau, mock slow dependencies, run the test place from Studio's command bar in Edit mode, and understand what CI checks.
- 3Integration playtestsRun integration playtests inside a real Roblox Play session. Read Beacon Yard's tests/ harness, invoke RunGameTests, use test-only attributes, keep Output clean, and fix a flaky health check.
- 4Performance: MicroProfiler, memory, networkProfile a Roblox game with the MicroProfiler, Script Profiler and Developer Console. Find what Beacon Yard does every frame, profile a drill, count its particles, read memory and network, and measure native code before and after.
- 5Parallel Luau: Actors and multithreadingLearn Parallel Luau for Roblox. Put scripts under Actors, desynchronize for independent work, synchronize to touch the world, share data with messages and SharedTable, and judge when Beacon Yard would benefit.
- 6Mobile: streaming, memory and draw budgetsMake a Roblox game run on low-end phones. Learn instance streaming and its model modes, test in Studio's device simulation and on a real phone, and budget memory, instances, textures and draw calls.
Game versions in progress
Also works on m14-ship, which finishes in a later module.