[GH-ISSUE #5692] [Issue]: Game Mode stays in writing state during idle gap before scene analysis #3151

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

Originally created by @Gunterlie on GitHub (Aug 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5692

Originally assigned to: @Gunterlie on GitHub.

$## Summary

Game Mode can spend about 5-10 seconds with low CPU and GPU use after the main LLM finishes generating text but before sidecar scene analysis starts. During this interval, the status bar still says "The Game Master is writing the next segment...".

The delay is inconsistent in frequency and duration. With fast LLMs, it can represent most of the total turn latency.

Expected behavior

After the main Game Master response is complete, Marinara should either begin scene analysis without an avoidable idle gap or show the actual processing phase. The status text should not say that the Game Master is writing when no main text generation is running.

Actual behavior

The generated text is not immediately presented as the completed Game Mode narration. The UI continues to show "The Game Master is writing the next segment..." while CPU and GPU remain largely unused. Sidecar analysis starts later.

Steps to reproduce

  1. Configure a Game Mode chat with a fast main LLM and enable sidecar scene analysis.
  2. Send a player action.
  3. Observe the interval after the main model stops producing tokens and before the scene analysis request begins.
  4. Compare the status text and system CPU/GPU activity during this interval.

The interval does not occur with the same duration on every turn.

Environment

  • Marinara Engine version: 2.4.4
  • Install type: installer or other Windows installation (not specified in the report)
  • OS + version: Windows 10.0.26100 (x64)
  • Browser or app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36

Logs, screenshots, or video

No logs, screenshots, or video were provided.

Additional context

Reported diagnostics:

  • GPU: ANGLE (Microsoft, Microsoft Basic Render Driver (0x0000008C) Direct3D11 vs_5_0 ps_5_0, D3D11)
  • Active connection: G4 31B StyleTune
  • Connection provider: custom
  • LLM model: G4-MeroMero-v2-31B-Q5_K_M.gguf
  • Server memory: heap 345.9 / 4288 MiB; RSS 543 MiB

Code inspection indicates that the server saves the assistant message before post-processing agents finish, but the client keeps Game Mode isStreaming active until the full generation request completes. The client then refreshes messages and starts scene processing. This may combine post-processing, refresh work, and scene-analysis startup into a visible idle interval. The Microsoft Basic Render Driver may affect local rendering or sidecar performance, but it does not explain the inaccurate writing status by itself.

  • I DID NOT read this template and provide the requested details.
Originally created by @Gunterlie on GitHub (Aug 31, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5692 Originally assigned to: @Gunterlie on GitHub. $## Summary Game Mode can spend about 5-10 seconds with low CPU and GPU use after the main LLM finishes generating text but before sidecar scene analysis starts. During this interval, the status bar still says "The Game Master is writing the next segment...". The delay is inconsistent in frequency and duration. With fast LLMs, it can represent most of the total turn latency. ## Expected behavior After the main Game Master response is complete, Marinara should either begin scene analysis without an avoidable idle gap or show the actual processing phase. The status text should not say that the Game Master is writing when no main text generation is running. ## Actual behavior The generated text is not immediately presented as the completed Game Mode narration. The UI continues to show "The Game Master is writing the next segment..." while CPU and GPU remain largely unused. Sidecar analysis starts later. ## Steps to reproduce 1. Configure a Game Mode chat with a fast main LLM and enable sidecar scene analysis. 2. Send a player action. 3. Observe the interval after the main model stops producing tokens and before the scene analysis request begins. 4. Compare the status text and system CPU/GPU activity during this interval. The interval does not occur with the same duration on every turn. ## Environment - Marinara Engine version: 2.4.4 - Install type: installer or other Windows installation (not specified in the report) - OS + version: Windows 10.0.26100 (x64) - Browser or app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36 ## Logs, screenshots, or video No logs, screenshots, or video were provided. ## Additional context Reported diagnostics: - GPU: ANGLE (Microsoft, Microsoft Basic Render Driver (0x0000008C) Direct3D11 vs_5_0 ps_5_0, D3D11) - Active connection: G4 31B StyleTune - Connection provider: custom - LLM model: G4-MeroMero-v2-31B-Q5_K_M.gguf - Server memory: heap 345.9 / 4288 MiB; RSS 543 MiB Code inspection indicates that the server saves the assistant message before post-processing agents finish, but the client keeps Game Mode `isStreaming` active until the full generation request completes. The client then refreshes messages and starts scene processing. This may combine post-processing, refresh work, and scene-analysis startup into a visible idle interval. The Microsoft Basic Render Driver may affect local rendering or sidecar performance, but it does not explain the inaccurate writing status by itself. - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:00:01 +07:00
Author
Owner

@Gunterlie commented on GitHub (Aug 31, 2026):

Picked up by @Gunterlie (Claude agent). Draft PR: #5703

<!-- gh-comment-id:5481188197 --> @Gunterlie commented on GitHub (Aug 31, 2026): Picked up by @Gunterlie (Claude agent). Draft PR: #5703
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#3151
No description provided.