hyperframes 0.6.24 → 0.6.25

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.
Files changed (2) hide show
  1. package/dist/cli.js +5 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -54,7 +54,7 @@ var VERSION;
54
54
  var init_version = __esm({
55
55
  "src/version.ts"() {
56
56
  "use strict";
57
- VERSION = true ? "0.6.24" : "0.0.0-dev";
57
+ VERSION = true ? "0.6.25" : "0.0.0-dev";
58
58
  }
59
59
  });
60
60
 
@@ -34369,6 +34369,9 @@ function distributeFrames(totalFrames, workerCount, workDir, rangeStart = 0) {
34369
34369
  }
34370
34370
  return tasks;
34371
34371
  }
34372
+ function shouldVerifyWorkerGpu(workerId, config) {
34373
+ return config?.browserGpuMode === "software" && workerId === 0;
34374
+ }
34372
34375
  async function executeWorkerTask(task, serverUrl, captureOptions, createBeforeCaptureHook, signal, onFrameCaptured, onFrameBuffer, config) {
34373
34376
  const startTime = Date.now();
34374
34377
  let framesCaptured = 0;
@@ -34383,7 +34386,7 @@ async function executeWorkerTask(task, serverUrl, captureOptions, createBeforeCa
34383
34386
  createBeforeCaptureHook(),
34384
34387
  config
34385
34388
  );
34386
- if (config?.browserGpuMode === "software") {
34389
+ if (shouldVerifyWorkerGpu(task.workerId, config)) {
34387
34390
  await assertSwiftShader(session.page, readWebGlVendorInfoFromCanvas);
34388
34391
  }
34389
34392
  await initializeSession(session);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperframes",
3
- "version": "0.6.24",
3
+ "version": "0.6.25",
4
4
  "description": "HyperFrames CLI — create, preview, and render HTML video compositions",
5
5
  "repository": {
6
6
  "type": "git",