SanderMertens / flecs

A fast entity component system (ECS) for C & C++
https://www.flecs.dev
MIT License
5.64k stars 411 forks source link

Add multi_threaded argument to readonly_begin #1172

Closed SanderMertens closed 2 months ago

SanderMertens commented 2 months ago

This adds an argument to ecs_readonly_begin that enables a stricter readonly mode in which no mutations are allowed on the world. This behavior used to be implicitly derived from whether the world had more than one stage.

This is a breaking change. For more info see https://github.com/SanderMertens/flecs/discussions/466#discussioncomment-8789062