@rendiv/bundler 0.1.17 → 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-entry-code.d.ts","sourceRoot":"","sources":["../src/render-entry-code.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,cAAc,EAAE,MAAM,EACtB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAClC,MAAM,
|
|
1
|
+
{"version":3,"file":"render-entry-code.d.ts","sourceRoot":"","sources":["../src/render-entry-code.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,cAAc,EAAE,MAAM,EACtB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAClC,MAAM,CA0KR"}
|
|
@@ -57,8 +57,10 @@ let rootInstance = null;
|
|
|
57
57
|
let resolveFrameReady = null;
|
|
58
58
|
|
|
59
59
|
window.__RENDIV_SET_FRAME__ = (frame) => {
|
|
60
|
+
const t0 = performance.now();
|
|
60
61
|
currentFrame = frame;
|
|
61
62
|
rerender();
|
|
63
|
+
window.__RENDIV_RENDER_MS__ = performance.now() - t0;
|
|
62
64
|
return new Promise((resolve) => {
|
|
63
65
|
resolveFrameReady = resolve;
|
|
64
66
|
// Check immediately if already ready
|
|
@@ -81,17 +83,12 @@ function checkReady() {
|
|
|
81
83
|
if (resolveFrameReady && getPendingHoldCount() === 0) {
|
|
82
84
|
const resolve = resolveFrameReady;
|
|
83
85
|
resolveFrameReady = null;
|
|
84
|
-
|
|
85
|
-
requestAnimationFrame(() => {
|
|
86
|
-
requestAnimationFrame(() => {
|
|
87
|
-
resolve();
|
|
88
|
-
});
|
|
89
|
-
});
|
|
86
|
+
resolve();
|
|
90
87
|
}
|
|
91
88
|
}
|
|
92
89
|
|
|
93
|
-
// Poll for pending holds
|
|
94
|
-
setInterval(checkReady,
|
|
90
|
+
// Poll for pending holds (4ms for faster hold detection)
|
|
91
|
+
setInterval(checkReady, 4);
|
|
95
92
|
|
|
96
93
|
function App() {
|
|
97
94
|
const Root = getRootComponent();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-entry-code.js","sourceRoot":"","sources":["../src/render-entry-code.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CACrC,cAAsB,EACtB,SAAmC;IAEnC,qDAAqD;IACrD,MAAM,UAAU,GAAG,cAAc,CAAC;IAElC,sEAAsE;IACtE,MAAM,gBAAgB,GAAG,SAAS,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,GAAG,CAAC;QACrE,CAAC,CAAC,iEAAiE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK;QACjG,CAAC,CAAC,EAAE,CAAC;IAEP,OAAO;UACC,UAAU;;;;;;;EAOlB,gBAAgB
|
|
1
|
+
{"version":3,"file":"render-entry-code.js","sourceRoot":"","sources":["../src/render-entry-code.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CACrC,cAAsB,EACtB,SAAmC;IAEnC,qDAAqD;IACrD,MAAM,UAAU,GAAG,cAAc,CAAC;IAElC,sEAAsE;IACtE,MAAM,gBAAgB,GAAG,SAAS,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,GAAG,CAAC;QACrE,CAAC,CAAC,iEAAiE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK;QACjG,CAAC,CAAC,EAAE,CAAC;IAEP,OAAO;UACC,UAAU;;;;;;;EAOlB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwJjB,CAAC;AACF,CAAC"}
|