feat: add microprofiler to the renderer

This commit is contained in:
3UR
2026-03-03 05:58:08 +10:00
parent 5b3d67063f
commit 73fffbbcec
15 changed files with 37749 additions and 2 deletions
+14
View File
@@ -0,0 +1,14 @@
#pragma once
// enable only if you know what you're doing
// requires linking Minecraft.Client against Ws2_32.lib
// stats are available at http://127.0.0.1:1338/
//#define ENABLE_PROFILING
#ifdef ENABLE_PROFILING
#include "microprofile/microprofile.h"
#define PROFILER_SCOPE(group, name, color) MICROPROFILE_SCOPEI(group, name, color);
#else
#define PROFILER_SCOPE(group, name, color) ((void)0);
#endif