nextUpdate!

This commit is contained in:
shenjack 2024-04-21 21:47:19 +08:00
parent 97459bf29f
commit 5d6da0b0f1
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -9752,7 +9752,6 @@ P._TimerImpl.prototype = {
setTimeout(H.convert_dart_closure_to_js_md5(new P.kC(b), 0), 0) setTimeout(H.convert_dart_closure_to_js_md5(new P.kC(b), 0), 0)
} else { } else {
if (self.setTimeout != null) { if (self.setTimeout != null) {
// self.setTimeout(H.convert_dart_closure_to_js_md5(new P.l9(this, b), 0), a)
self.setTimeout(H.convert_dart_closure_to_js_md5(new P._TimerImpl_internalCallback(this, b), 0), 0) self.setTimeout(H.convert_dart_closure_to_js_md5(new P._TimerImpl_internalCallback(this, b), 0), 0)
// b.$0() // 草,这下…… 6 // b.$0() // 草,这下…… 6
} else { } else {
@ -13109,7 +13108,6 @@ HtmlRenderer.inner_render.prototype = {
// this.gfd -> this.fe // this.gfd -> this.fe
if (run_env.from_code) { if (run_env.from_code) {
this_.b4() this_.b4()
logger.debug("主循环启动")
return return
} else { } else {
A.vo(this_.gfd()) A.vo(this_.gfd())
@ -13278,6 +13276,7 @@ HtmlRenderer.inner_render.prototype = {
} }
}, },
b4() { b4() {
// nextUpdate()
// MARK: 渲染器主"循环" // MARK: 渲染器主"循环"
var async_goto = 0, var async_goto = 0,
async_complete = P._makeAsyncAwaitCompleter(t.z), async_complete = P._makeAsyncAwaitCompleter(t.z),
@ -13298,8 +13297,9 @@ HtmlRenderer.inner_render.prototype = {
case 5: case 5:
this_.Q = async_result this_.Q = async_result
async_goto = 6 async_goto = 6
// 我们仍然不知道他为啥要在这里 delay 1ms
// return P._asyncAwait(P.future_future_delayed(P.duration_milsec_sec(1, 0), t.z), $async$b4) // return P._asyncAwait(P.future_future_delayed(P.duration_milsec_sec(1, 0), t.z), $async$b4)
return P._asyncAwait(P.future_future_delayed(P.duration_milsec_sec(0, 0), t.z), $async$b4) // return P._asyncAwait(P.future_future_delayed(P.duration_milsec_sec(0, 0), t.z), $async$b4)
// break // break
case 6: case 6:
this_.db = null this_.db = null
@ -13336,7 +13336,7 @@ HtmlRenderer.inner_render.prototype = {
if (q >= 2000) { if (q >= 2000) {
p = this_.Q p = this_.Q
p = !(p == null || p.a.length === 0) p = !(p == null || p.a.length === 0)
} else p = false } else { p = false }
if (p) { if (p) {
this_.c5(this_.cy) this_.c5(this_.cy)
this_.cy = false this_.cy = false