@specter-automation/test 1.0.136 → 1.0.137

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.
@@ -1202,7 +1202,7 @@ class SpecterWorld {
1202
1202
  const portTag = this.transport.friendlyPortTag;
1203
1203
  const stepTitle = `${portTag}Measure performance: ${name}`;
1204
1204
  return await test_1.default.step(stepTitle, async () => {
1205
- await this.transport.sendCommand({ command: 'StartPerfCapture', payload: { name, hitchMs, timelinePreview: options.timelinePreview ?? false } });
1205
+ await this.transport.sendCommand({ command: 'StartPerfCapture', payload: { name, hitchMs, timelinePreview: options.timelinePreview ?? true } });
1206
1206
  let failed = false;
1207
1207
  let failure;
1208
1208
  try {
@@ -110,8 +110,9 @@ export interface MeasurePerformanceOptions {
110
110
  /** Frames slower than this many milliseconds count as hitches. Default: 50. */
111
111
  hitchMs?: number;
112
112
  /**
113
- * Keep recording the runner's timeline preview frames while measuring. Default: false, so the preview's own
114
- * cost isn't counted against the game. Turn it on to measure what the preview costs.
113
+ * Keep recording the runner's timeline preview frames while measuring, so the timeline shows what happened during
114
+ * the measurement. Default: true (each preview frame costs a GPU readback and a small JPEG encode).
115
+ * Turn it off for the strictest numbers: the timeline then holds the last frame from before the measurement.
115
116
  */
116
117
  timelinePreview?: boolean;
117
118
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@specter-automation/test",
3
- "version": "1.0.136",
3
+ "version": "1.0.137",
4
4
  "description": "Playwright integration for Unreal Engine automation via Specter",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",