@zaisma/game-server 1.35.0 → 1.36.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zaisma/game-server",
3
- "version": "1.35.0",
3
+ "version": "1.36.0",
4
4
  "description": "Run your Zaisma game server: the same rooms on Zaisma or on your own server.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://zaisma.com",
package/src/room.d.ts CHANGED
@@ -810,7 +810,7 @@ export declare const GAME_SERVER_LIMITS: {
810
810
  readonly maximumFileCount: 500;
811
811
  /** CPU for one call: a tick with the messages since the last one, a join, a request, a schedule's run. */
812
812
  readonly maximumCallCpuDurationMs: 50;
813
- /** CPU for one start: loading the game server, setup, onRestored, and a real-time room's first tick after either. */
813
+ /** CPU for one start: loading the game server, setup, onRestored, and a real-time room's first tick after any of them, or after its state is put back in a fresh copy of the game server, onRestored or not. */
814
814
  readonly maximumStartCpuDurationMs: 5000;
815
815
  /** CPU for the game server's top-level code (outside its handlers) as it loads: Cloudflare's own limit. Heavy work goes in the first tick. */
816
816
  readonly maximumLoadCpuDurationMs: 1000;
package/src/room.js CHANGED
@@ -149,7 +149,7 @@ export const GAME_SERVER_LIMITS = {
149
149
  maximumFileCount: 500,
150
150
  /** CPU for one call: a tick with the messages since the last one, a join, a request, a schedule's run. */
151
151
  maximumCallCpuDurationMs: 50,
152
- /** CPU for one start: loading the game server, setup, onRestored, and a real-time room's first tick after either. */
152
+ /** CPU for one start: loading the game server, setup, onRestored, and a real-time room's first tick after any of them, or after its state is put back in a fresh copy of the game server, onRestored or not. */
153
153
  maximumStartCpuDurationMs: 5000,
154
154
  /** CPU for the game server's top-level code (outside its handlers) as it loads: Cloudflare's own limit. Heavy work goes in the first tick. */
155
155
  maximumLoadCpuDurationMs: 1000,