# Non Real Time Simulation in Game

**URL:** <https://forums.unrealengine.com/t/non-real-time-simulation-in-game/482578>\
**Category:** Rendering\
**Tags:** scene-capture-cube, frames, unreal-engine, Rendering, question\
**Created:** [April 28, 2021, 9:00am UTC](https://forums.unrealengine.com/t/non-real-time-simulation-in-game/482578 "2021-04-28T09:00:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![herobank110](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@herobank110](https://forums.unrealengine.com/u/herobank110)\
**Post date:** [April 28, 2021, 9:00am UTC](https://forums.unrealengine.com/t/non-real-time-simulation-in-game/482578/1 "2021-04-28T09:00:28Z")

</div>

In a packaged game I need to be able to view unreal as it normally would like with realtime features, but then increase the settings to 11 and render a movie frame by frame outputting as an image sequence.

I’m having issues currently with getting the game simulation (inc. materials, media playback) to PAUSE while I take a second to render using an array of scene capture cubes and dump to disk, then RESUME the game for exactly one frame @ 30fps before pausing everything and rendering again. I tried with

SetGamePaused(false), delay(1/30), SetGamePaused(true)

to let the simulation run for one frame, but that must be wrong since the clouds seem to be moving faster than they would normally. Also the media player (loaded with a local mp4) seems to ignore it and play anyway.

My next attempt was to pause the media player and seek to the timecode of the frame I wanted to render but that unreliable and filled with stuttering.

Is it possible to use the movie render queue at runtime to do what I need?

Alternatively I came across the [command line args for rendering](https://docs.unrealengine.com/en-US/ProductionPipelines/CommandLineArguments/#rendering) which includes  
BENCHMARK, DUMPMOVIE and FPS, but I’m not sure how to use these or if they will even do what I want.

---

<div class="post-metadata">

**Author:** ![Utopia\_jp1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Utopia\_jp1](https://forums.unrealengine.com/u/Utopia_jp1)\
**Post date:** [May 10, 2022, 3:30pm UTC](https://forums.unrealengine.com/t/non-real-time-simulation-in-game/482578/2 "2022-05-10T15:30:13Z")

</div>

I have similar question as you and am looking forward to a solution.

---

<div class="post-metadata">

**Author:** ![Lit\_Chan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lit_chan/32/536418_2.png) [@Lit\_Chan](https://forums.unrealengine.com/u/Lit_Chan)\
**Post date:** [May 10, 2022, 4:37pm UTC](https://forums.unrealengine.com/t/non-real-time-simulation-in-game/482578/3 "2022-05-10T16:37:53Z")

</div>

Just change the max time dilation and min time dilation to same value as the expected delta time in the “world setting pannel”.
