You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After many attempts using various methods, I finally implemented the event loop using a simple libuv timer.
Linux and macOS got a better event loop implementation, with a background blocking thread that check for any pending GUI event and when there are one or more, it run a callback in main js thread that dispatch all events.
It appear that on Windows we have no way to check for the presence of pending events on other threads, so I revert to checking them in main thread, once every 100 ms.
Anyway, CPU usage appear to be lower than 1% on my machine. So at least by now, I choose to go on with this implementation. Maybe we can find a better way in future.
Please test it and report any issue you'll find, thanks!
The text was updated successfully, but these errors were encountered:
I just merged Windows branch into master.
From now on, libui-node support Windows OS too!
After many attempts using various methods, I finally implemented the event loop using a simple libuv timer.
Linux and macOS got a better event loop implementation, with a background blocking thread that check for any pending GUI event and when there are one or more, it run a callback in main js thread that dispatch all events.
It appear that on Windows we have no way to check for the presence of pending events on other threads, so I revert to checking them in main thread, once every 100 ms.
Anyway, CPU usage appear to be lower than 1% on my machine. So at least by now, I choose to go on with this implementation. Maybe we can find a better way in future.
Please test it and report any issue you'll find, thanks!
The text was updated successfully, but these errors were encountered: