Studio › Manual › Debug and performance

Performance Doctor

Run > Performance > Profile (⌥⇧F6, or Profile in the Performance tab, ⌥⇧⌘D) builds a timed copy of the project and runs it on the Raspberry Pi chosen in the device menu, or on this Mac. Studio measures every frame and every event, then lists what to fix, ranked by the time each fix could save. Your project's files are never changed by a run.

  • The frame graph: one bar per frame; red bars took longer than the frame budget. The dashed line is the budget, the blue tick the CPU's part of the frame.
  • Where the time goes: Begin Step, Step, End Step, Draw, Draw GUI, your other events, GameMaker's own work outside your code (drawing instances without a Draw event, collisions, layers), and the garbage Collector.
  • Findings: plain-language reasons the game is slow, each with the milliseconds a frame it could save (measured from the run, or an estimate). Click one for details and to open its code. Findings with Fix… have a safe one-click fix.
  • Events: every event (and with Time Script Functions Too, every function) by its own time a frame, its calls and how many new objects it made each frame.
  • Room map: the view and the slowest seconds (red rings) of the chosen room, and its instances by object (a snowflake: they never moved).
  • Stop Profiling (⌃⇧F6) ends early; the game writes its log (studio_perf.csv in its save folder) and quits.

Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.