[GH-ISSUE #3214] [Feature]: Optimize game storyboard generation latency #1729

Closed
opened 2026-10-21 05:42:06 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @thetopham on GitHub (Jul 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3214

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Auto-storyboard generation can feel late in game flow. After choosing a CYOA option, the next turn text becomes readable before the storyboard media is ready, so players may click through the story and then have to go back once illustrations finally arrive.

Recent timing logs showed the image generation itself was relatively quick once requested, while storyboard planning and scene-analysis gating added much of the delay. The storyboard only needs the completed GM narration text to begin planning; it should not wait for the full scene/asset pipeline to become idle.

Proposed solution

  • Start auto-storyboard generation as soon as the completed GM narration text is available instead of waiting for scene preparation and pending asset generation to finish.
  • Return the planned storyboard immediately and render image/video media in the background so the client can show progressive storyboard progress.
  • Split storyboard director prompting by media type so illustration-only storyboards request compact image-only keyframes, while animation storyboards keep video prompt fields.
  • Remove duplicated storyboard preview tiles from Game Assets because storyboard media is already visible in the gallery/storyboard surfaces.

Alternatives considered

Keeping the previous all-at-once flow was simpler, but it delayed useful feedback until every downstream asset finished. Sequential rendering alone would help the first frame, but it would not address the planning delay or the prompt mismatch between illustration-only and animation storyboards.

Additional context

Implementation branch: thetopham:storyboard-optimizations, targeting staging.

Local validation performed while preparing the branch:

  • pnpm regression:prompt
  • pnpm lint
  • pnpm check after the main storyboard changes
  • After reverting unrelated NPC portrait prompt changes: pnpm regression:prompt, pnpm lint, and git diff --check passed with CRLF warnings only

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Jul 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3214 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Auto-storyboard generation can feel late in game flow. After choosing a CYOA option, the next turn text becomes readable before the storyboard media is ready, so players may click through the story and then have to go back once illustrations finally arrive. Recent timing logs showed the image generation itself was relatively quick once requested, while storyboard planning and scene-analysis gating added much of the delay. The storyboard only needs the completed GM narration text to begin planning; it should not wait for the full scene/asset pipeline to become idle. ## Proposed solution - Start auto-storyboard generation as soon as the completed GM narration text is available instead of waiting for scene preparation and pending asset generation to finish. - Return the planned storyboard immediately and render image/video media in the background so the client can show progressive storyboard progress. - Split storyboard director prompting by media type so illustration-only storyboards request compact image-only keyframes, while animation storyboards keep video prompt fields. - Remove duplicated storyboard preview tiles from Game Assets because storyboard media is already visible in the gallery/storyboard surfaces. ## Alternatives considered Keeping the previous all-at-once flow was simpler, but it delayed useful feedback until every downstream asset finished. Sequential rendering alone would help the first frame, but it would not address the planning delay or the prompt mismatch between illustration-only and animation storyboards. ## Additional context Implementation branch: `thetopham:storyboard-optimizations`, targeting `staging`. Local validation performed while preparing the branch: - `pnpm regression:prompt` - `pnpm lint` - `pnpm check` after the main storyboard changes - After reverting unrelated NPC portrait prompt changes: `pnpm regression:prompt`, `pnpm lint`, and `git diff --check` passed with CRLF warnings only ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:42:06 +07:00
  • closed this issue
  • added the
    in-pr
    label
Author
Owner

@SpicyMarinara commented on GitHub (Jul 4, 2026):

thank you!

<!-- gh-comment-id:4884071704 --> @SpicyMarinara commented on GitHub (Jul 4, 2026): thank you!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#1729
No description provided.