@series-inc/rundot-syncplay 5.25.0-beta.0 → 5.25.0-beta.1
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.
- package/dist/runtime-session.js +4 -2
- package/package.json +2 -2
package/dist/runtime-session.js
CHANGED
|
@@ -205,9 +205,11 @@ export function createRuntimeSession(config) {
|
|
|
205
205
|
const count = Math.max(0, Math.floor((total * config.runtime.identity.tickRate + 1e-9) / 1000));
|
|
206
206
|
if (count > (config.maxCatchUpFrames ?? 240))
|
|
207
207
|
throw new Error('session.catch-up-limit');
|
|
208
|
-
accumulatedMs = total;
|
|
209
208
|
runFrames(count);
|
|
210
|
-
|
|
209
|
+
// Commit consumed time only after the frames actually land; if runFrames
|
|
210
|
+
// throws, accumulatedMs keeps its pre-update value so a later update does
|
|
211
|
+
// not over-count catch-up for frames that never stepped.
|
|
212
|
+
accumulatedMs = Math.max(0, total - count * (1000 / config.runtime.identity.tickRate));
|
|
211
213
|
return count;
|
|
212
214
|
},
|
|
213
215
|
stepFrames: runFrames,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@series-inc/rundot-syncplay",
|
|
3
|
-
"version": "5.25.0-beta.
|
|
3
|
+
"version": "5.25.0-beta.1",
|
|
4
4
|
"description": "Kinetix orchestration, rollback, replay, late-join, and deterministic networking for RUN.game",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"Kinetix"
|
|
65
65
|
],
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@series-inc/rundot-kinetix": "0.1.0-beta.
|
|
67
|
+
"@series-inc/rundot-kinetix": "0.1.0-beta.5"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@dimforge/rapier2d-compat": "0.19.3",
|