Very large frame time for "Scene" and "Simulation" in MicroProfiler, causing FPS drop

Hi there,

Recently I have been working on a game, and noticed that periodically (around every 20 seconds) my framerate drops from 240FPS to around 100FPS, only to go back up to 240 shortly after. After taking a look in the microprofiler, i found this:
microprofile-20250629-131751.html (2.8 MB)

Which shows a large lag spike for a few frames that consist of “Simulation” and “Scene”. From what I can see, Physics is taking up the majority of this, but there are almost no un-anchored parts in my game, and that wouldn’t explain why it happens every ~20 seconds.

I have absolutely no clue as to what could be causing this, so any help would be appreciated.

My Specs:
RTX 3060ti 8GB
AMD Ryzen 5 5600
32 GB DDR4 RAM
Windows 10

A private message is associated with this bug report

Hi Scorch,
Looking at your microprofile the larger time consuming simulation steps have 600+ simulated (non-anchored) bodies in them and thousands of contact/constraints. I ran your example place and verified I get the same results locally. Somewhere in that place you have a lot of un-anchored parts. There is a studio setting that shows anchored parts, which might help you figure out where these parts are coming from.

1 Like

Oh that’s very strange, I’ll take a look using that tool, thank you for the response!