# \[5.7\] Determinism issues with world partition loading package during cook 

**URL:** <https://forums.unrealengine.com/t/5-7-determinism-issues-with-world-partition-loading-package-during-cook/2722010>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [April 13, 2026, 10:39am UTC](https://forums.unrealengine.com/t/5-7-determinism-issues-with-world-partition-loading-package-during-cook/2722010 "2026-04-13T10:39:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 13, 2026, 10:39am UTC](https://forums.unrealengine.com/t/5-7-determinism-issues-with-world-partition-loading-package-during-cook/2722010/1 "2026-04-13T10:39:32Z")

</div>

Hello 🙂

I’m investigating an issue with some of our skeleton assets changing from cook to cook, by doing a binary diff i noticed the DefaultSubgroup was once present, and not the second time, i added a callstack trace where this property could change during the cook, and catch it to be there

[Image Removed]

after investigating a bit, realized the property was getting changed there

[Image Removed]

that’s what lead me to think about this fix for the issue

[Image Removed]

I’m clearly lacking knowledge about the engine in depth, but that seems like a good thing to do since the world partition could load packages, now if you’re thinking about potential issues, or you have a better advise, i’m open for it 🙂

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![Matt.Peters](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Matt.Peters](https://forums.unrealengine.com/u/Matt.Peters)\
**Post date:** [April 13, 2026, 4:35pm UTC](https://forums.unrealengine.com/t/5-7-determinism-issues-with-world-partition-loading-package-during-cook/2722010/2 "2026-04-13T16:35:58Z")

</div>

Yes, that change is a good fix and will not cause problems.

I will add the modification of that flag around all of the CookPackageSplitterInstance calls.

We plan to remove GIsCookerLoadingPackage and replace it with IsRunningCookCommandlet, but I will make that change separately.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 13, 2026, 4:48pm UTC](https://forums.unrealengine.com/t/5-7-determinism-issues-with-world-partition-loading-package-during-cook/2722010/3 "2026-04-13T16:48:39Z")

</div>

Thanks for the confirmation 🙂 i will update the other code paths as well, i indeed didn’t check if there is more 🙂

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![Matt.Peters](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Matt.Peters](https://forums.unrealengine.com/u/Matt.Peters)\
**Post date:** [April 14, 2026, 8:02pm UTC](https://forums.unrealengine.com/t/5-7-determinism-issues-with-world-partition-loading-package-during-cook/2722010/4 "2026-04-14T20:02:07Z")

</div>

Submitted into UE5.8 in CL 52655836, aka github commit [42cee0adb71add0cfd27f86eb33727e00ce70adf](https://github.com/EpicGames/UnrealEngine/commit/42cee0adb71add0cfd27f86eb33727e00ce70adf)

\> Cooker: CookPackageSplitter: Set the GCookerIsLoadingPackage variable to true when calling CookPackageSplitter functions…

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 15, 2026, 7:18am UTC](https://forums.unrealengine.com/t/5-7-determinism-issues-with-world-partition-loading-package-during-cook/2722010/5 "2026-04-15T07:18:17Z")

</div>

Thanks 🙂

[Attachment Removed]
