Open gucio321 opened 4 months ago
hmm, well, when I look at it @AllenDang why are we using this miainthread in fact? Am I right above?
As I remember, OpenGL requires to run GPU related operations in the main thread, so I use mainthread to archive that. And at that time, I'm using golang wrapper of glfw to write a backend manually, which works great on linux/Mac/windows, for now, we are using glfw backend directly from Imgui right? Maybe we don't need mainthread anymore? Like the backend example in cimgui shows.
so in fact we just need to call NewMasterWindow in the same thread as Run, right?
We use mainthread libraries to allow giu commands on any thread (when imgui requires to run on main)
We currently have implementations for macos and linux but for windows none works.