# Substepping unusable: causes freeze since 4.17

**URL:** <https://forums.unrealengine.com/t/substepping-unusable-causes-freeze-since-4-17/407253>\
**Category:** World Creation\
**Tags:** not-responding, stop-rendering, Shipping, unreal-engine, Physics, question\
**Created:** [October 17, 2017, 7:56pm UTC](https://forums.unrealengine.com/t/substepping-unusable-causes-freeze-since-4-17/407253 "2017-10-17T19:56:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixelique](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pixelique](https://forums.unrealengine.com/u/pixelique)\
**Post date:** [October 17, 2017, 7:56pm UTC](https://forums.unrealengine.com/t/substepping-unusable-causes-freeze-since-4-17/407253/1 "2017-10-17T19:56:47Z")

</div>

Game freezes / stops rendering randomly if physics substepping is enabled. This happens in 4.17.2 and 4.18. We didn’t experience this in 16.3.

Steps to reproduce:

- open attached example project
- build packaged shipping game WindowsNoEditor / by the book
- start packaged game
- leave idle running
- get a coffee
- wait for freeze (most often while idle within the first 30 minutes)

If substepping is disabled it won’t stop responding.  
Doesn’t seem to happen (or not so often) when “in action”.  
Setting a fixed/lower framerate also seems to lessen the chance of a freeze.

Update:  
As a workaround we have now set the TG\_DuringPhysics to block till complete  
LevelTick.cpp: RunTickGroup(TG\_DuringPhysics, true);  
which lessens the chance of a freeze considerably (to hours rather than minutes), but it still happens. Looks like it is waiting on a task trying to execute TStaticMeshVertexData::GetResourceArray().

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2dad8d53](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2dad8d53](https://forums.unrealengine.com/u/anonymous_user_2dad8d53)\
**Post date:** [October 24, 2017, 10:43am UTC](https://forums.unrealengine.com/t/substepping-unusable-causes-freeze-since-4-17/407253/2 "2017-10-24T10:43:26Z")

</div>

I also have random random freeze in shipping. Could it be related to these bugs?

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-42280)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

---

<div class="post-metadata">

**Author:** ![pixelique](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pixelique](https://forums.unrealengine.com/u/pixelique)\
**Post date:** [October 24, 2017, 4:24pm UTC](https://forums.unrealengine.com/t/substepping-unusable-causes-freeze-since-4-17/407253/3 "2017-10-24T16:24:25Z")

</div>

We tracked it down to the tick group TG\_EndPhysics waiting for the ParticleSystemComponent to finish TG\_DuringPhysics and this probably only happens with physics substepping enabled. At least that is what we suspect at the moment - should really be looked into by someone experienced with the thread management / task graph. As a workaround you can set the ParticleSystemComponent to use TG\_PostPhysics - not sure how much performance this costs and if this can cause other problems, but it doesn’t stop responding anymore.

We didn’t experience any crashes, only freezes / non responding game after a random amount of time.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2dad8d53](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2dad8d53](https://forums.unrealengine.com/u/anonymous_user_2dad8d53)\
**Post date:** [October 24, 2017, 4:40pm UTC](https://forums.unrealengine.com/t/substepping-unusable-causes-freeze-since-4-17/407253/4 "2017-10-24T16:40:59Z")

</div>

Thank you, I can confirm that by disabling the Substepping fix the issue…

Update: Disabling substepping have decreased the frequency of freeze, but continues to happen occasionally ☹ also during loading…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4238b8c1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4238b8c1](https://forums.unrealengine.com/u/anonymous_user_4238b8c1)\
**Post date:** [November 2, 2017, 6:17pm UTC](https://forums.unrealengine.com/t/substepping-unusable-causes-freeze-since-4-17/407253/5 "2017-11-02T18:17:51Z")

</div>

Any update on this issue?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2dad8d53](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2dad8d53](https://forums.unrealengine.com/u/anonymous_user_2dad8d53)\
**Post date:** [November 15, 2017, 3:33pm UTC](https://forums.unrealengine.com/t/substepping-unusable-causes-freeze-since-4-17/407253/6 "2017-11-15T15:33:17Z")

</div>

Look here [Packaged Game freezing !FEventWin::Wait(unsigned int WaitTime, const bool bIgnoreThreadIdleStats) Line 1158 C++ - Programming & Scripting - Epic Developer Community Forums](https://answers.unrealengine.com/questions/720735/packaged-game-freezing-feventwinwaitunsigned-int-w.html)
