Improving mouse and tasks.

This commit is contained in:
Brad Nelson
2022-11-18 22:53:09 -08:00
parent 8ee1eafef6
commit e9181479fc
3 changed files with 62 additions and 15 deletions

View File

@ -593,10 +593,7 @@ var globalObj = getGlobalObj();
var module = VM(globalObj, ffi, heap);
function run() {
var lastTimeout = Date.now();
while (Date.now() - lastTimeout < 50) {
module.run();
}
module.run();
setTimeout(run, 0);
}
if (globalObj.write) {