Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

feat(provider-hyperframes-local): render on the GPU by default

rpone0ed45be32211
diff --git a/packages/provider-hyperframes-local/README.md b/packages/provider-hyperframes-local/README.md
index b2de8911..b4b4090f 100644
--- a/packages/provider-hyperframes-local/README.md
+++ b/packages/provider-hyperframes-local/README.md
@@ -16,6 +16,11 @@ The Provider owns both controls because they are deployment policy, not author i
renders program audio; `@hypit/provider-media-local` separately prepares `TimelineAudio` and muxes
the final media.
+`browserGpu` picks Chrome's rasterizer and defaults to `hardware`, so composited frames are drawn by
+the GPU. The cost of the alternative is large rather than marginal: on `software` the same
+1080×1920 render falls to SwiftShader on the CPU and takes tens of minutes where the GPU takes a few.
+Set `software` on a machine with no usable GPU, or `auto` to let the HyperFrames CLI decide.
+
The Runtime Adapter also declares one managed browser program. `programs up` invokes the pinned
HyperFrames CLI's `browser ensure`; its probe resolves and starts that browser and checks
ffprobe before a Build.
diff --git a/packages/provider-hyperframes-local/src/provider.ts b/packages/provider-hyperframes-local/src/provider.ts
index 5c1662e3..10b93981 100644
--- a/packages/provider-hyperframes-local/src/provider.ts
+++ b/packages/provider-hyperframes-local/src/provider.ts
@@ -37,6 +37,11 @@ export type CreateLocalHyperframesProviderOptions = {
/** Parallel Chrome workers inside one render. This is separate from Provider request concurrency. */
readonly workers?: HyperframesWorkers;
readonly quality?: HyperframesQuality;
+ /**
+ * Chrome's rasterizer. Defaults to `hardware`: a composited frame is drawn by the GPU rather
+ * than by SwiftShader on the CPU, which is the difference between minutes and half an hour on a
+ * full-length vertical render. Set `software` on a machine with no usable GPU.
+ */
readonly browserGpu?: HyperframesBrowserGpu;
/** Number of whole documents allowed to render at once on this configured instance. */
readonly defaultConcurrency?: number;
@@ -229,7 +234,7 @@ export function createLocalHyperframesProvider(config: CreateLocalHyperframesPro
"workers must be auto or an integer in [1, 64]");
const quality = config.quality ?? "standard";
assert(["draft", "standard", "high"].includes(quality), "HyperFrames quality is invalid");
- const browserGpu = config.browserGpu ?? "software";
+ const browserGpu = config.browserGpu ?? "hardware";
assert(["auto", "software", "hardware"].includes(browserGpu), "HyperFrames browserGpu is invalid");
const processTimeoutMs = positiveInteger(config.processTimeoutMs ?? 30 * 60_000, "processTimeoutMs");
const maxProcessOutputBytes = positiveInteger(config.maxProcessOutputBytes ?? 4 * 1024 * 1024,