Noticed this script while playtesting, it goes up by about 220 every time a player resets, joins, or leaves. No clue what it is and ive tried disabling several scripts local & server with no results.
You should run this in your console
for i, v in game:GetDescendants() do
if v.ClassName == "Script" or v.ClassName == "LocalScript" or v.ClassName == "ModuleScript" then
print(v)
end
end
And checking the source for memory leaks in PlayerAdded and CharacterAdded events.
The issue is I have no idea what the source of unknown is, there is a lot of scripts in game that are possibly very performance intensive and I am aware of most of them, that being said there is always way too many to be gone through entirely. Is there anyway to better detect what script this is, or what it means by unknown if this is not just one script?
You could try looking at Script Performance.
Unknown doesn’t show the same behavior as it does when playing in studio, only reaching the rate of 1 at most. Looking at performance it does show Chat go up to 1 the same time unknown does. The game does use the older chat system so I will find way to upgrade it.
Something I learned from someone I know, An extremely experienced Roblox scripter, The “Rate” tab means nothing. Nobody know’s what rate exactly is, Other than Roblox engineers I suppose.
Take a look at:
- Memory Usage | Documentation - Roblox Creator Hub
- Script Profiler | Documentation - Roblox Creator Hub
- MicroProfiler | Documentation - Roblox Creator Hub
for methods to properly do memory debugging, view render times and memory usage stats.
just look up stats on your microprofiler its way more reliable
Not that it matters much, but you can just use the Search tool in the Explorer and type in classname:script.
It’ll show exactly where any of those 3 items are in the game.
I believe rate is actually representative of how many times a part of a script is being ran per second, I see rate high on items that use while do loops or detect touch and are constantly being touched, which is the only reason why I’m worried, but if “unknown” is representative of several scripts that are unknown then I guess it makes sense.
Still a bit scary to see it go up so much every time a player changes status even though it doesn’t do it while playing in studio or other games.
Thanks though I will be checking these links out!