Figuring out lag spikes with microprofiler

Hello, I’m getting this bit of lag spike when I’m equipping a tool, it’s not caused by the weapon’s part count or anything related to rendering so I’m trying to check the microprofiler. There are quite a lot of things in the micro profiler that I didn’t understood so I need help with it.

ADD: It also only happens on the first equip.

Screenshot

It appears that this frame 313 ms to complete so the issue supposedly should be here.
Worker::runJob and Write Marshalled both took 276 ms, I want to know what this correlates to.

Thanks in advance for any support!
~MXKhronos

1 Like

Before looking at the screenshot, I’ve been through the same issue with the equipping of a tool bringing about lag and our cause for it was a memory leak, so might want to keep that in mind!

Does this happen only in studio or in both studio and live games? A few days ago I was getting some weird lag in studio when a RemoteFunction call errored, but no lag in a live game.

Can you also upload the MicroProfiler snapshot?

1 Like

It doesn’t seem to occur in Studio, plus this time when I tried to get a dump file of the MicroProfiler in live, the lag spike didn’t occur.

Mayhaps it was just a random bug? I can’t seem to figure out what Write Marshalled is supposed to mean (I’ve never seen that tag).

If it shows up again try and get a MicroProfiler dump.

2 Likes

Maybe try to replicate the bug and get a MicroProfiler dump?