@zaisma/game-server 1.36.0 → 1.37.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/bench/glass.js +11 -6
- package/package.json +1 -1
- package/src/room.d.ts +7 -2
- package/src/room.js +8 -3
package/package.json
CHANGED
package/src/room.d.ts
CHANGED
|
@@ -802,10 +802,15 @@ export declare const GAME_SERVER_OPTIONS: readonly ["maximumPlayerCount", "maxim
|
|
|
802
802
|
*/
|
|
803
803
|
export declare const GAME_SERVER_LIMITS: {
|
|
804
804
|
/**
|
|
805
|
-
* Every file of the game server together, code and data files.
|
|
806
|
-
*
|
|
805
|
+
* Every file of the game server together, code and data files. The data files stream from storage straight into the
|
|
806
|
+
* game server's own memory (maximumMemorySizeBytes), so this leaves half of it for the runtime and the rooms' state.
|
|
807
807
|
*/
|
|
808
808
|
readonly maximumSizeBytes: number;
|
|
809
|
+
/**
|
|
810
|
+
* The code alone (.js, .json and .wasm): a room holds it in its memory (128 MB, shared with other rooms) while it hands
|
|
811
|
+
* it to the sandbox, so this is what a room carries safely.
|
|
812
|
+
*/
|
|
813
|
+
readonly maximumCodeSizeBytes: number;
|
|
809
814
|
/** Files in the zaisma-server/ folder: each is read once whenever a copy of the game server loads. */
|
|
810
815
|
readonly maximumFileCount: 500;
|
|
811
816
|
/** CPU for one call: a tick with the messages since the last one, a join, a request, a schedule's run. */
|
package/src/room.js
CHANGED
|
@@ -141,10 +141,15 @@ export const GAME_SERVER_OPTIONS = [
|
|
|
141
141
|
*/
|
|
142
142
|
export const GAME_SERVER_LIMITS = {
|
|
143
143
|
/**
|
|
144
|
-
* Every file of the game server together, code and data files.
|
|
145
|
-
*
|
|
144
|
+
* Every file of the game server together, code and data files. The data files stream from storage straight into the
|
|
145
|
+
* game server's own memory (maximumMemorySizeBytes), so this leaves half of it for the runtime and the rooms' state.
|
|
146
146
|
*/
|
|
147
|
-
maximumSizeBytes:
|
|
147
|
+
maximumSizeBytes: 64 * 1024 * 1024,
|
|
148
|
+
/**
|
|
149
|
+
* The code alone (.js, .json and .wasm): a room holds it in its memory (128 MB, shared with other rooms) while it hands
|
|
150
|
+
* it to the sandbox, so this is what a room carries safely.
|
|
151
|
+
*/
|
|
152
|
+
maximumCodeSizeBytes: 32 * 1024 * 1024,
|
|
148
153
|
/** Files in the zaisma-server/ folder: each is read once whenever a copy of the game server loads. */
|
|
149
154
|
maximumFileCount: 500,
|
|
150
155
|
/** CPU for one call: a tick with the messages since the last one, a join, a request, a schedule's run. */
|