imgui will change global state. this poses race conditions, which is not good.
to keep using the performant arefcell and avoiding locks, imgui must be executed before or after the logic frame. thus, a fencing/locking mechanism is needed, to keep changes in sync.
this obviously kills performance, but since its planned that imgui will be stripped in release builds, this does not matter.
imgui will change global state. this poses race conditions, which is not good.
to keep using the performant arefcell and avoiding locks, imgui must be executed before or after the logic frame. thus, a fencing/locking mechanism is needed, to keep changes in sync.
this obviously kills performance, but since its planned that imgui will be stripped in release builds, this does not matter.