Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 960 Bytes

README.md

File metadata and controls

24 lines (13 loc) · 960 Bytes

GodotTracy

Tracy Profiler module for the Godot Engine

git clone --recurse-submodules https://github.com/Pineapple/GodotTracy.git

Copy godot_tracy folder to modules folder in Godot sources.

Add module_godot_tracy_enabled=true to your SCons command to build with Tracy enabled.

Get Tracy documentation and profiler binary from releases page.

Example how to add Tracy instrumentation in Godot

In every file where you call Tracy functions add #include "modules/godot_tracy/profiler.h"

Add FrameMark; in platform specific loop to mark the boundaries of the frames. On Windows it's inside OS_Windows::run() in platform/windows/os_windows.cpp

Add ZoneScopedN("Text visible in Tracy"); inside the functions you want to profile in Tracy.