/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Engine/Foundation/UserConfig.h
69 строк
2 KB
Sanakan8472
Cross-platform tracing system (ETW, LTTNG, Perfetto) (#1815)
15 фев 2026, 10:24
Не верифицирован
15 фев 2026, 10:24
fac0c1f
Код
Авторство
О чём код?
#pragma once /// \file /// Global settings for how to to compile EZ. /// Modify these settings as you needed in your project. #ifdef BUILDSYSTEM_COMPILE_ENGINE_AS_DLL # undef EZ_COMPILE_ENGINE_AS_DLL # define EZ_COMPILE_ENGINE_AS_DLL EZ_ON #else # undef EZ_COMPILE_ENGINE_AS_DLL # define EZ_COMPILE_ENGINE_AS_DLL EZ_OFF #endif #if defined(BUILDSYSTEM_BUILDTYPE_Shipping) // Development checks like assert. # undef EZ_COMPILE_FOR_DEVELOPMENT # define EZ_COMPILE_FOR_DEVELOPMENT EZ_OFF // Performance profiling features # undef EZ_USE_PROFILING # define EZ_USE_PROFILING EZ_OFF // OS tracing features (ETW / LTTNG / Perfetto) # undef EZ_USE_TRACING # define EZ_USE_TRACING EZ_OFF // Tracking of memory allocations. # undef EZ_ALLOC_TRACKING_DEFAULT # define EZ_ALLOC_TRACKING_DEFAULT ezAllocatorTrackingMode::Nothing #else // Development checks like assert. # undef EZ_COMPILE_FOR_DEVELOPMENT # define EZ_COMPILE_FOR_DEVELOPMENT EZ_ON // Performance profiling features # undef EZ_USE_PROFILING # define EZ_USE_PROFILING EZ_ON // OS tracing features (ETW / LTTNG / Perfetto) # undef EZ_USE_TRACING # define EZ_USE_TRACING EZ_ON // Tracking of memory allocations. # undef EZ_ALLOC_TRACKING_DEFAULT # if EZ_ENABLED(EZ_PLATFORM_ANDROID) # define EZ_ALLOC_TRACKING_DEFAULT ezAllocatorTrackingMode::AllocationStatsIgnoreLeaks # else # define EZ_ALLOC_TRACKING_DEFAULT ezAllocatorTrackingMode::AllocationStatsAndStacktraces # endif #endif #if defined(BUILDSYSTEM_BUILDTYPE_Debug) # undef EZ_MATH_CHECK_FOR_NAN # define EZ_MATH_CHECK_FOR_NAN EZ_ON # undef EZ_USE_STRING_VALIDATION # define EZ_USE_STRING_VALIDATION EZ_ON #endif /// Whether game objects compute and store their velocity since the last frame (increases object size) #define EZ_GAMEOBJECT_VELOCITY EZ_ON