Geometry randomly flickering in and out during gameplay

Hello!

I am one of the lead developers for Refuse 2 Die. Lately, our users have been reporting that on some maps during gameplay the geometry will just flicker in and out of view. Pieces of the map, their player characters, everything.

Not sure when this started happening, it happens mainly on one map but users have reported it for other maps as well.
Our game does not use StreamingEnabled either if that is any information that will help.

Here is a clip from one user and you can clearly see the geometry keeps flickering in and out for seemingly no reason.
Most users are reporting it happens even on max graphics settings.

Video & Images

(The hole on the left in the wall is not supposed to be there)

this is strange, i’ve only seen this happen rarely a few times in other games, but why is it so prominent here?? :thinking:

Can you show the current Streaming settings set ? Or do you use a custom script to handle a relative effect?

image
Yup! Streaming is disabled.

Hi there,

Would you mind asking players who have this happening to them to create a microprofiler dump?

Also:

  • When it comes to your maps. Do the maps’ origins or positions change drastically?
    (near-or-beyond 100,000 studs)
  • Do any of your scripts directly manipulate the Camera.Focus property?

Extreme coordinates can cause floating-point errors that result in rendering instability and flickering.

i’ve got no idea how i’m just now seeing this reply but sure thing I’ll get some more information for you! thanks a ton!

This could be the source of this issue: Unpatched rendering bugs related to NaN or Infinite values
They told me it wasn’t worth fixing. When occlusion culling was added it was also made a lot more flickery when you move your camera, like shown in the clip.

Hi I managed to repro this on my machine.
Here’s a few clips (the dex explorer is a command admins+ are given, not using any exploits)
I adjusted our camera system (it’s ancient & based on Reason 2 Die’s Camera script) to set the Camera.Focus as CFrame.new(camera.CFrame.p) and still no luck.

Notes: this only happens on the client! I couldn’t get this to happen in studio at all. Ignore the nodes in the Workspace, that is our NodeGraph for our pathfinding system.

Client microprofiler dump:
microprofile-20260416-220659.zip (2.7 MB)

My videos are too big, please excuse them being on streamable.

studio clip
client clip

Hi again,

It looks like everything is working fine in both the client and studio clips.

Note that the client has their Quality Level set to 1.
This has a frame block target/minimum of 500, which you can see in the Shift + F2 menu.

The microprofiler capture showed no abnormalities.


You should not have to set Camera.Focus. It derives from the CameraSubject as long as the CameraType is not set to Scriptable.
(Which, in your case, is set to Custom, and the subject is the Humanoid. I assume you reverted after said adjustment)


This is also worth looking into through the Find All / Replace All function, which can be enabled in the View tab of studio.
Specifically, the drawcall to this calculation:

local a = Instance.new('Part', workspace) 
a.Transparency = 0.5 
a.Anchored = true 
local b = Instance.new('SpecialMesh', a) 
b.Offset = Vector3.zero / 0 -- This produces NaN

--[[ The goal is to find anything that might 
     produce NaN within the map model ]]

It is more likely that a NaN value ending up in draw calls from your scripts or special effects is causing this issue rather than the default engine behavior.
This mimics the flickering and instability seen in your original clip.


A little disappointing that Roblox has not implemented a patch for the clear issue in @Vixienshy 's bug report, despite it affecting front-page games.

If you need further help diagnosing or locating the root cause, feel free to mention me here, or add me on Discord (@signalsupport).