Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

1.5 KB
Raw Blame

optimize

Notes like these: "it's slow", "the file's too big", "it stutters", "the game lags", "it took forever to render". The same piece, lighter: smaller files, faster renders, smooth play.

Assess

  • Measure first: the export's size and bitrate (raea media probe), the render's time, a game's frame rate live.
  • Find the cost: footage at a far higher resolution than the frame, 3D lights and shadows nobody sees, a model with more triangles than pixels, per-frame work that could be computed once.

Decide

  • Which cost the note means: the file's size, the render's time or the game's frame rate. Each has its own fix.
  • What may change. The look stays the same unless the person agrees to a trade.

Change

  • Delivery: --quality per use (raea guide rendering); a share copy for sending (the skill's ffmpeg line).
  • Footage: raea mezz for long-GOP sources; trim to the parts used.
  • 3D: fewer shadow-casting lights, smaller shadow maps, decimated models (raea guide bevy/blender), the limits in raea guide bevy/limits.
  • Code: compute what doesn't change outside the frame function, keyed by index, still frame-pure.

Verify

  • The same measurements, before and after. The look is unchanged in stills at the same frames.

When it goes wrong

  • The look changed: banding in gradients, blotching in dark frames, soft detail from a bitrate set too low.
  • The fix was guessed, not measured, and nothing got faster.
  • Work cached outside the frame broke frame purity, so a render no longer matches its play.