fltk-rs / fltk-webview

webview functionality for embedded fltk windows
MIT License
47 stars 7 forks source link

Replace the FLTK and GTK idle functions with a single FLTK repeating timeout #18

Closed djarb closed 2 years ago

djarb commented 2 years ago

The timeout is on a 1 millisecond cycle, so the webview is still very responsive to user input, but this drops CPU usage for an active webview from 100% to negligible.

MoAlyousef commented 2 years ago

Thank you for this PR

djarb commented 2 years ago

Happy to help. Thanks for merging.