# \[Bug\] Render thread freeze in RayTracing\_FinishGatherInstances - lost task wakeup with 50+   players (UE 5.7.4) 

**URL:** <https://forums.unrealengine.com/t/bug-render-thread-freeze-in-raytracing-finishgatherinstances-lost-task-wakeup-with-50-players-ue-5-7-4/2709809>\
**Category:** Issues and Bug Reporting\
**Tags:** Ray-Tracing, unreal-engine, bug-report, Rendering\
**Created:** [March 29, 2026, 1:05pm UTC](https://forums.unrealengine.com/t/bug-render-thread-freeze-in-raytracing-finishgatherinstances-lost-task-wakeup-with-50-players-ue-5-7-4/2709809 "2026-03-29T13:05:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mouloud95](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mouloud95](https://forums.unrealengine.com/u/Mouloud95)\
**Post date:** [March 29, 2026, 1:05pm UTC](https://forums.unrealengine.com/t/bug-render-thread-freeze-in-raytracing-finishgatherinstances-lost-task-wakeup-with-50-players-ue-5-7-4/2709809/1 "2026-03-29T13:05:54Z")

</div>

### Summary

## Summary

Random render thread freeze (4+ seconds) in multiplayer with 50+ skeletal mesh characters  
and Hardware Ray Tracing enabled (Lumen HW RT, MegaLights, Nanite, DX12).

## Details

The render thread hangs at `FinalizeGatherRelevantPrimitivesTask.Wait()` inside  
`RayTracing_FinishGatherInstances` (RayTracing.cpp:1974).

Unreal Insights profiling shows:

- **Foreground workers are NOT saturated** — idle gaps between tasks during the entire  
4.2s freeze
- `TryRetractAndExecute` fails in 300ns — prerequisites appear incomplete
- `Oversubscription` detected 3 times (4.4ms)
- The dependent task never starts despite available workers
- This points to a **lost completion signal** in the task scheduler — not starvation

The game thread also freezes (blocked in `Slate::DrawWindows` → `GatherWindowElements`)  
waiting for the render thread.

### Please select what you are reporting on:

Creative

### What Type of Bug are you experiencing?

Stability

### Steps to Reproduce

1. UE 5.7.4, Windows 11, DX12, Hardware Ray Tracing enabled
2. Lumen HW RT + MegaLights + Nanite + VSM + DLSS
3. 50+ players with skeletal meshes in the same area
4. Play normally — random freeze after 20s to 5+ minutes
5. Dev builds freeze less frequently (timing-dependent)

### Expected Result

`FinalizeGatherRelevantPrimitivesTask` should complete and not block the render thread.

### Observed Result

Disabling RT entirely avoids the codepath but removes all RT visual features.

### Platform(s)

PC

### Upload an image

 ![Screenshot_2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/5/075158b678e9776faebf072d0d675ec614e47f2b.png)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [September 25, 2026, 1:06pm UTC](https://forums.unrealengine.com/t/bug-render-thread-freeze-in-raytracing-finishgatherinstances-lost-task-wakeup-with-50-players-ue-5-7-4/2709809/2 "2026-09-25T13:06:03Z")

</div>

This topic was automatically closed after 180 days. New replies are no longer allowed.
