Rismosch / ris_engine

Barebones game engine. Home made passion project.
MIT License
2 stars 1 forks source link

add imgui fence/lock #85

Closed Rismosch closed 8 months ago

Rismosch commented 8 months ago

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.