Microprofiling Aid

Hello! I am currently getting some framedrops during these frames on the Microprofiler

They all share this enormous WORK yellow-orange bar, which means at least the problem is identified. I am unsure what script could be causing such gigantic bar though. The game currently has a bit too many scripts for me to reliably go around and add a microprofiler tag on each and every one of them.

Is there a way to figure out what this bar represents?

If this is not even the problem and I am dumb, please help me find the issue. I am willing to give more screenshots of the microprofiler for this to be solved.

image

Hello! Based on the information you provided, it seems that the issue is related to the “WORK” category, which indicates the amount of CPU time spent on a particular frame. The large yellow-orange bar suggests that a significant amount of time is being spent on some script(s) in your game.

To identify which script(s) might be causing this issue, you can try expanding the “WORK” section in the microprofiler by clicking on the arrow to the left of it. This will reveal a breakdown of the time spent in different scripts during that frame.

From there, you can look for any scripts that have a particularly long bar or a high percentage of the total time. These scripts may be good candidates for further investigation.

If you have many scripts in your game and it’s difficult to identify the culprit(s) manually, you could try profiling your game with a more fine-grained profiler that can track the performance of individual functions or lines of code. This can give you more detailed information on where exactly the performance bottleneck is occurring.

Lastly, it’s worth noting that the microprofiler can be somewhat unreliable at times, especially when dealing with very short frames or high-frequency events. If you’re still having trouble identifying the issue, you might want to consider using other profiling tools or techniques to get a more accurate picture of your game’s performance.

Hello. Thank you for the quick response. I don’t quite seem to find the arrow mentioned. Could you circle it on a screenshot if possible?

don’t mind his using chatgpt anyway the best option is to find what script is causing so much usage i would say that you use debug.microprofile tools on scripts that you suspect first try to find if its a local script or not by that you can check in roblox studio view tab there is a script usage who shows how much local scripts use check that out if that wasn’t anything special then im guessing you should check out the server scripts

You can check which scripts have the highest rates in dev console.