![]() |
Flecs v3.2
A fast entity component system (ECS) for C & C++
|
Defines for customizing compile time features. More...
Macros | |
#define | ecs_float_t float |
Customizable precision for floating point operations. | |
#define | ecs_ftime_t ecs_float_t |
Customizable precision for scalar time values. | |
#define | FLECS_NO_DEPRECATED_WARNINGS |
disables deprecated warnings | |
#define | FLECS_DEBUG |
Used for input parameter checking and cheap sanity checks. | |
#define | FLECS_CPP |
C++ API. | |
#define | FLECS_MODULE |
Module support. | |
#define | FLECS_PARSER |
String parser for queries. | |
#define | FLECS_PLECS |
ECS data definition format. | |
#define | FLECS_RULES |
Constraint solver for advanced queries. | |
#define | FLECS_SNAPSHOT |
Snapshot & restore ECS data. | |
#define | FLECS_STATS |
Access runtime statistics. | |
#define | FLECS_MONITOR |
Track runtime statistics periodically. | |
#define | FLECS_METRICS |
Expose component data as statistics. | |
#define | FLECS_SYSTEM |
System support. | |
#define | FLECS_PIPELINE |
Pipeline support. | |
#define | FLECS_TIMER |
Timer support. | |
#define | FLECS_META |
Reflection support. | |
#define | FLECS_META_C |
Utilities for populating reflection data. | |
#define | FLECS_UNITS |
Builtin standard units. | |
#define | FLECS_EXPR |
Parsing strings to/from component values. | |
#define | FLECS_JSON |
Parsing JSON to/from component values. | |
#define | FLECS_DOC |
Document entities & components. | |
#define | FLECS_COREDOC |
Documentation for core entities & components. | |
#define | FLECS_LOG |
When enabled ECS provides more detailed logs. | |
#define | FLECS_APP |
Application addon. | |
#define | FLECS_OS_API_IMPL |
Default implementation for OS API. | |
#define | FLECS_HTTP |
Tiny HTTP server for connecting to remote UI. | |
#define | FLECS_REST |
REST API for querying application data. | |
#define | FLECS_HI_COMPONENT_ID (256) |
This constant can be used to balance between performance and memory utilization. | |
#define | FLECS_HI_ID_RECORD_ID (1024) |
This constant can be used to balance between performance and memory utilization. | |
#define | FLECS_SPARSE_PAGE_BITS (12) |
This constant is used to determine the number of bits of an id that is used to determine the page index when used with a sparse set. | |
#define | ECS_ID_CACHE_SIZE (32) |
Maximum number of components to add/remove in a single operation. | |
#define | ECS_TERM_DESC_CACHE_SIZE (16) |
Maximum number of terms in desc (larger, as these are temp objects) | |
#define | ECS_OBSERVER_DESC_EVENT_COUNT_MAX (8) |
Maximum number of events to set in static array of observer descriptor. | |
#define | ECS_VARIABLE_COUNT_MAX (64) |
Maximum number of query variables per query. | |
Defines for customizing compile time features.
#define ecs_float_t float |
#define ecs_ftime_t ecs_float_t |
#define ECS_ID_CACHE_SIZE (32) |
#define ECS_OBSERVER_DESC_EVENT_COUNT_MAX (8) |
#define ECS_TERM_DESC_CACHE_SIZE (16) |
#define ECS_VARIABLE_COUNT_MAX (64) |
#define FLECS_COREDOC |
#define FLECS_DEBUG |
#define FLECS_EXPR |
#define FLECS_HI_COMPONENT_ID (256) |
This constant can be used to balance between performance and memory utilization.
The constant is used in two ways:
Increasing this value increases the size of the lookup array, which allows fast table traversal, which improves performance of ECS add/remove operations. Component ids that fall outside of this range use a regular map lookup, which is slower but more memory efficient.
#define FLECS_HI_ID_RECORD_ID (1024) |
This constant can be used to balance between performance and memory utilization.
The constant is used to determine the size of the id record lookup array. Id values that fall outside of this range use a regular map lookup, which is slower but more memory efficient.
#define FLECS_HTTP |
#define FLECS_LOG |
#define FLECS_META_C |
#define FLECS_MONITOR |
#define FLECS_NO_DEPRECATED_WARNINGS |
#define FLECS_OS_API_IMPL |
#define FLECS_SPARSE_PAGE_BITS (12) |
This constant is used to determine the number of bits of an id that is used to determine the page index when used with a sparse set.
The number of bits determines the page size, which is (1 << bits). Lower values decrease memory utilization, at the cost of more allocations.