Welded Parts Causing High Amounts of Physics Lag?

I’ve used both only Welds and WeldConstraints, didn’t see much of a change in performance when going between the 2.

https://gyazo.com/b7f1eb147a00cc789647af73502e3481

I’m assuming the bottom part explains the lag?

The large bit at the bottom of that screenshot is taking up a huge chunk of time. You should zoom into it so the names are readable. Additionally the time you provided above (~80ms) shows you’d be getting 12 FPS from render time alone. (1/(80/1000)) The chunk you showed looks like it might be taking up even more time.

It’s the raycasting on a run service, completely lags it out apparently.

Any solutions to this?

I’ve upped it to 600 pets, and had no lag, so it was definieterly the issue.

In the top bar of the microprofiler, there’s a Dump menu. This will save a dump file of the selected number of frames to C:\Users\Username. If you’re willing to upload it, we’ll be able to inspect it directly.

1 Like

microprofile-20200224-220134.html (2.1 MB)

It’s definitely ray casting causing the issues.

6000 raycasts a second will probably explain it.

1 Like