# \[UE 5.8.1, UE 5.8.2\] Switch to forward renderer causing visual artifact with spot light and point light

**URL:** <https://forums.unrealengine.com/t/ue-5-8-1-ue-5-8-2-switch-to-forward-renderer-causing-visual-artifact-with-spot-light-and-point-light/2742402>\
**Category:** Issues and Bug Reporting (Unreal Engine)\
**Tags:** Forward-Rendering, unreal-engine, Rendering, Lighting\
**Created:** [August 9, 2026, 10:30pm UTC](https://forums.unrealengine.com/t/ue-5-8-1-ue-5-8-2-switch-to-forward-renderer-causing-visual-artifact-with-spot-light-and-point-light/2742402 "2026-08-09T22:30:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dreamfsea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dreamfsea](https://forums.unrealengine.com/u/Dreamfsea)\
**Post date:** [August 9, 2026, 10:30pm UTC](https://forums.unrealengine.com/t/ue-5-8-1-ue-5-8-2-switch-to-forward-renderer-causing-visual-artifact-with-spot-light-and-point-light/2742402/1 "2026-08-09T22:30:47Z")

</div>

### Summary

Tested under 5.8.1 and 5.8.2, AMD Ryzen APU. Reproducible across DX11/DX12/SM5/SM6. Under forward renderer, when moving the camera back and forth quickly focusing a spot light or a point light which is not covered by a directional light, flickering black line will occasionally appear across the lit up area.

### What Type of Bug are you experiencing?

Rendering (Graphics / Niagara)

### Steps to Reproduce

Create a new project, switch to forward rendering. Delete lights like sky light and directional light and place a point light. Then move the camera back and forth focusing the lit up area.

### Expected Result

Without black line artifact.

### Observed Result

You will see the flickering black lines. It is easier to see if turn the light brightness is high.

### Affects Versions

5.8

### Platform(s)

Windows

### Additional Notes

Asking about the issue on Discord, I got these observations from Uno “Wild Ox” so I will just paste them here. Hope it can help. Thanks Uno “Wild Ox” for the help.

“Strongest candidate: the shader preprocessor buffer-sizing change, commit 343e81e1b7cb (”[shaders] fix 1-byte null terminator overflow in preprocessor copy loops…"), Engine/Source/Developer/ShaderPreprocessor/Private/stb\_preprocess/preprocessor.c:

Two copy-loop capacity calculations got +1 added for a NUL terminator (reasonable, targeted fix).

But a third site, in maybe\_expand\_macro (used when expanding a macro’s replacement text into a temp buffer), had its capacity changed from src\_length + 512 down to exactly src\_length — all safety padding removed, not even the SSE\_READ\_PADDING (16 bytes on SSE builds) that other call sites keep. The commit message calls the 512 bytes a “hack…added to work around the 100% mac crash,” but doesn’t explain why zero padding is provably correct for macro re-expansion, where the copy routines can write past src\_length legitimately (that’s the whole reason the other two sites got SSE\_READ\_PADDING + 1, not +1 alone)."

“shader preprocessor macro-expansion buffer under-allocation in maybe\_expand\_macro (Engine/Source/Developer/ShaderPreprocessor/Private/stb\_preprocess/preprocessor.c, commit 343e81e1b7cb), affecting forward-shading’s macro-heavy local-light permutations, reproducible across DX11/DX12/SM5/SM6”

---

<div class="post-metadata">

**Author:** ![Dreamfsea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dreamfsea](https://forums.unrealengine.com/u/Dreamfsea)\
**Post date:** [September 16, 2026, 5:29pm UTC](https://forums.unrealengine.com/t/ue-5-8-1-ue-5-8-2-switch-to-forward-renderer-causing-visual-artifact-with-spot-light-and-point-light/2742402/2 "2026-09-16T17:29:41Z")

</div>

Issue still persist after 5.8.2 hotfix.
