Improve LittlevGL frame rates

This commit is contained in:
Themba Dube 2019-06-23 18:33:47 -04:00
parent 676a957861
commit ef943a1ab4

View File

@ -123,7 +123,7 @@
var the_mp_handle_pending = Module.cwrap('mp_handle_pending', null); var the_mp_handle_pending = Module.cwrap('mp_handle_pending', null);
function handle_pending() { function handle_pending() {
the_mp_handle_pending(); the_mp_handle_pending();
setTimeout(handle_pending, 50); // should call lv_task_handler() setTimeout(handle_pending, 10);
} }
/*Initialize the REPL.*/ /*Initialize the REPL.*/
mp_js_init_repl(); mp_js_init_repl();