chore: overhaul renderer decompilation to match as closely as possible to the original
Co-authored-by: la <76826837+3UR@users.noreply.github.com>
This commit is contained in:
committed by
la
co-authored by
la
parent
cc6aade337
commit
39339e821e
@@ -27,11 +27,20 @@ SOFTWARE.
|
||||
// requires linking Minecraft.Client against Ws2_32.lib
|
||||
// stats are available at http://127.0.0.1:1338/
|
||||
|
||||
//#define ENABLE_PROFILING
|
||||
#define ENABLE_PROFILING
|
||||
|
||||
#ifdef ENABLE_PROFILING
|
||||
#include "microprofile/microprofile.h"
|
||||
#define PROFILER_INIT() \
|
||||
do \
|
||||
{ \
|
||||
MicroProfileOnThreadCreate("MainRenderThread"); \
|
||||
MicroProfileSetEnableAllGroups(true); \
|
||||
} while (0)
|
||||
#define PROFILER_FLIP() MicroProfileFlip(NULL);
|
||||
#define PROFILER_SCOPE(group, name, color) MICROPROFILE_SCOPEI(group, name, color);
|
||||
#else
|
||||
#define PROFILER_INIT() ((void)0);
|
||||
#define PROFILER_FLIP() ((void)0);
|
||||
#define PROFILER_SCOPE(group, name, color) ((void)0);
|
||||
#endif
|
||||
Reference in New Issue
Block a user