Skip to content

Defines

Alex Silaev edited this page Oct 12, 2025 · 4 revisions

ENABLE_BECS_FLAT_QUIERIES

Turns off Archetypes and enables flat queries. Flat queries means that query will be performs from current data, so Batches.Apply will not have any effect. May be faster at most cases.

ENABLE_BECS_COLLECTIONS_CHECKS

Debug define (works in Editor only) which detects dependencies between jobs. This is how unity defines it for collections, everything will work a little slower with it, but it is safer.

LEAK_DETECTION

Debug define which detects memory leaks in collections and any safe_ptr usages. It will break performance, use with caution. Very slow, use it only if you really want to debug something.

MEMORY_ALLOCATOR_BOUNDS_CHECK

Internal allocator debug validation. This is used quite rarely, only if in multithreading you screwed up somewhere with allocations and you need to understand what you changed wrong, it can give you a clue.

EXCEPTIONS

Any EXCEPTIONS or EXCEPTIONS_* defines turns on the exceptions in API. If you really sure that your code runs correctly - you may turn off these exceptions to improve your performance.

Clone this wiki locally