vokegpu / ekg-ui-library

High-performance multi-platform modular GUI library with GPU API modular support: OpenGL/Vulkan accelerated
MIT License
70 stars 3 forks source link

Task multi-threading option instead of `ekg::update` on another different thread. #21

Open MrsRina opened 3 months ago

MrsRina commented 3 months ago

Maybe, a specific async-task or concurrent-task only may be the best option for multi-threading on EKG.

If running ekg::update() on a different thread, the flow is totally loss (draw glitch, crazy behaviors etc); the way I am thinking to do is using a specialized threading task executor with future. May work better. Note: The tasks executed must be the application-side only, and not pre-allocated internal tasks (such as reload, sync, gc, etc); due the address pointless issues.

The current status of threading on EKG is 0%, but soon I must fix this issue. Thanks, meow.