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

@ -568,7 +568,7 @@ var A = {
H = { H = {
m8: function m8() { }, m8: function m8() { },
ls(a, b, c) { ls(a, b, c) {
if (a == null) if (a == null)
throw H.wrap_expression(new H.dO(b, c.i("dO<0>"))) throw H.wrap_expression(new H.dO(b, c.i("dO<0>")))
return a return a
}, },
@ -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 {
@ -10141,9 +10140,9 @@ P._Future__propagateToListeners_handleError.prototype = {
n = p.a n = p.a
m = r m = r
l = k.b l = k.b
if (n == null ? m == null : n === m) if (n == null ? m == null : n === m)
l.c = p l.c = p
else else
l.c = P.async_error(r, q) l.c = P.async_error(r, q)
l.b = true l.b = true
} }
@ -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,7 +13276,8 @@ HtmlRenderer.inner_render.prototype = {
} }
}, },
b4() { b4() {
// MARK: 渲染器主"循环" // nextUpdate()
// MARK: 渲染器主"循环"
var async_goto = 0, var async_goto = 0,
async_complete = P._makeAsyncAwaitCompleter(t.z), async_complete = P._makeAsyncAwaitCompleter(t.z),
q, this_ = this, q, this_ = this,
@ -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
// return P._asyncAwait(P.future_future_delayed(P.duration_milsec_sec(1, 0), t.z), $async$b4) // 我们仍然不知道他为啥要在这里 delay 1ms
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(1, 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