Skip to content

Compiler Directives

Sebastiano Mandalà edited this page Apr 1, 2019 · 6 revisions

These are the compiler directives used by Svelto.ECS and Svelto.Tasks:

DEBUG: this is automatically added by unity when the projects run in editor or in a debug client. Enable several extra checks that are useful for the developer to understand if the framework is being used correctly.

PROFILER: to be used to profile without extra checks that can affect the final performance quite noticeably.

ENABLE_PLATFORM_PROFILER: this enables all the PlatformProfiler calls, which for unity is equivalent to begin and end sample. To be used together with PROFILER when the developer wants to profile using the unity profiler.

RELAXED_ECS This is for legacys reason, don't use it on new projects