@threenative/playtest 0.3.15 → 0.3.16

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/index.js CHANGED
@@ -857,7 +857,7 @@ var PLAYTEST_ASSERTION_REGISTRY = [
857
857
  observationSource: "bridge",
858
858
  requiredCapabilities: ["browser.console"],
859
859
  resultIdPrefix: "engineCost.",
860
- supportedOn: ["browser"],
860
+ supportedOn: ["browser", "desktop"],
861
861
  triviality: "not-applicable",
862
862
  trivialityRationale: "The counters are measured across the run's frames; an initial value has no frames to count."
863
863
  },
@@ -1626,7 +1626,7 @@ var init_assertion_schema = __esm({
1626
1626
  observationSource: "bridge",
1627
1627
  requiredCapabilities: ["browser.console"],
1628
1628
  resultIdPrefix: "engineCost.",
1629
- supportedOn: ["browser"],
1629
+ supportedOn: ["browser", "desktop"],
1630
1630
  triviality: "not-applicable",
1631
1631
  trivialityRationale: "The counters are measured across the run's frames; an initial value has no frames to count."
1632
1632
  },
@@ -20268,6 +20268,9 @@ var DesktopPlaytestDriver = class {
20268
20268
  // engine prints it only where a developer asked for the dev surfaces. The shell's value must
20269
20269
  // not decide it: an inherited `DEV_MODE=0` would leave the check blind rather than red.
20270
20270
  DEV_MODE: "1",
20271
+ // The engine counts its work into TN_FRAME_BUDGET.counters.engine for the run, as the browser runner's
20272
+ // __THREENATIVE_ENGINE_COST__ does; the player sets that global from this key before the game evaluates.
20273
+ TN_ENGINE_COST: "1",
20271
20274
  ...this.options.env,
20272
20275
  TN_PLAYTEST_MAILBOX_ROOT: this.mailboxRoot,
20273
20276
  // The host reads the request before it evaluates the game entry, the way the browser runner
@@ -867,7 +867,7 @@ var PLAYTEST_ASSERTION_REGISTRY = [
867
867
  observationSource: "bridge",
868
868
  requiredCapabilities: ["browser.console"],
869
869
  resultIdPrefix: "engineCost.",
870
- supportedOn: ["browser"],
870
+ supportedOn: ["browser", "desktop"],
871
871
  triviality: "not-applicable",
872
872
  trivialityRationale: "The counters are measured across the run's frames; an initial value has no frames to count."
873
873
  },
@@ -17530,6 +17530,9 @@ var DesktopPlaytestDriver = class {
17530
17530
  // engine prints it only where a developer asked for the dev surfaces. The shell's value must
17531
17531
  // not decide it: an inherited `DEV_MODE=0` would leave the check blind rather than red.
17532
17532
  DEV_MODE: "1",
17533
+ // The engine counts its work into TN_FRAME_BUDGET.counters.engine for the run, as the browser runner's
17534
+ // __THREENATIVE_ENGINE_COST__ does; the player sets that global from this key before the game evaluates.
17535
+ TN_ENGINE_COST: "1",
17533
17536
  ...this.options.env,
17534
17537
  TN_PLAYTEST_MAILBOX_ROOT: this.mailboxRoot,
17535
17538
  // The host reads the request before it evaluates the game entry, the way the browser runner
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threenative/playtest",
3
- "version": "0.3.15",
3
+ "version": "0.3.16",
4
4
  "license": "MIT",
5
5
  "description": "Scenario-driven playtest harness for Three.js games. Runs on plain Three.js with zero ThreeNative dependencies.",
6
6
  "keywords": [