I’m currently using the microprofiler to help find the source of this ‘lag spike’ in my game. Every several seconds or so, the screen briefly pauses, then continues, and I’ve narrowed it down to peaks like this:
I’m very new to using this feature, so I don’t have a great understanding of it yet, however I have watched a few tutorials. From what I understand, there should be some bars within this peak here, which then help me to find the source of the lag. My issue though: within those spikes, there appears to be nothing, whereas either side, where there is no lag, there are bars.
Why is this so, and what’s the best way for me to find where this lag is coming from?
1 Like
Zoom on these bars
What do they say. I would guess that isn’t the cause of the lag, because they don’t take up that much room though. Look at this like memory usage, CPU usage and GPU usage to give you a better idea of the cause as well.
Your best bet is just to learn how to repo these, and then disable literally everything until you isolate what it is. There is no easy fix. Good luck
That’s very tricky with so many lines of code, but I’ll give it a go!
I’ve noticed that there is a possible bug with the microprofiler where sometimes upon hitting Ctrl P the bars don’t show up in certain areas. I do not have much information about how it happens, but I just want to throw the idea out there that it could be a bug, and not your fault for not being able to find the lag. (The lag may still be your fault unless it is: https://devforum.roblox.com/t/what-is-settingshub-and-why-does-it-lag-my-game/104619)
I don’t actually have access to your topic, but I understand what you mean, thanks.