Plasma Engine  2.0
Loading...
Searching...
No Matches
UserConfig.h
1#pragma once
2
4
7
8
9#ifdef BUILDSYSTEM_COMPILE_ENGINE_AS_DLL
10# undef PL_COMPILE_ENGINE_AS_DLL
11# define PL_COMPILE_ENGINE_AS_DLL PL_ON
12#else
13# undef PL_COMPILE_ENGINE_AS_DLL
14# define PL_COMPILE_ENGINE_AS_DLL PL_OFF
15#endif
16
17#if defined(BUILDSYSTEM_BUILDTYPE_Shipping)
18
19// Development checks like assert.
20# undef PL_COMPILE_FOR_DEVELOPMENT
21# define PL_COMPILE_FOR_DEVELOPMENT PL_OFF
22
23// Performance profiling features
24# undef PL_USE_PROFILING
25# define PL_USE_PROFILING PL_OFF
26
27// Tracking of memory allocations.
28# undef PL_ALLOC_TRACKING_DEFAULT
29# define PL_ALLOC_TRACKING_DEFAULT plAllocatorTrackingMode::Nothing
30
31#else
32
33// Development checks like assert.
34# undef PL_COMPILE_FOR_DEVELOPMENT
35# define PL_COMPILE_FOR_DEVELOPMENT PL_ON
36
37// Performance profiling features
38# undef PL_USE_PROFILING
39# define PL_USE_PROFILING PL_ON
40
41// Tracking of memory allocations.
42# undef PL_ALLOC_TRACKING_DEFAULT
43# define PL_ALLOC_TRACKING_DEFAULT plAllocatorTrackingMode::AllocationStatsAndStacktraces
44
45#endif
46
47#if defined(BUILDSYSTEM_BUILDTYPE_Debug)
48# undef PL_MATH_CHECK_FOR_NAN
49# define PL_MATH_CHECK_FOR_NAN PL_ON
50# undef PL_USE_STRING_VALIDATION
51# define PL_USE_STRING_VALIDATION PL_ON
52#endif
53
54
56#define PL_GAMEOBJECT_VELOCITY PL_ON
57
58// Migration code path. Added in March 2023, should be removed after a 'save' time.
59#undef PL_MIGRATE_RUNTIMECONFIGS
60#define PL_MIGRATE_RUNTIMECONFIGS PL_ON