![]() |
Calamity Engine 1.0.0
A cross-platform 2D game engine written in C++ and SDL3.
|
Tracy is a real-time profiler. It's pretty useful if you're trying to find performance issues in your code.
To use it, simply configure your app with the -DTRACY_ENABLED=ON option, then open the tracy client and connect to your app.
For more information regarding tracy usage, please take a look at it's documentation (which is a PDF file :)).
You may have noticed that the template project and the examples all use a separate loop() function, which you don't need at all if you are only targeting native platforms! (In fact, it's a lot easier to not use a separate loop function).
However, if you want your game to compile to Emscripten, you need a separate loop function and you need SOME way to pass the Engine service and the Graphics service to it (you also need to register it with Emscripten). This is the way it's done in the template project and in every example: