Extremely slow gif rendering

This commit is contained in:
2023-09-11 20:07:36 +00:00
parent 35c0337837
commit 6b73624c12
10 changed files with 841 additions and 150 deletions

View File

@@ -1119,6 +1119,14 @@ JSValue duk_cmd(JSContext *js, JSValueConst this, int argc, JSValueConst *argv)
case 130:
ret = JS_NewFloat64(js, stm_ms(js2uint64(argv[1])));
break;
case 131:
gif_rec_start();
break;
case 132:
str = JS_ToCString(js, argv[1]);
gif_rec_end(str);
break;
}
if (str)