You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
catastrophic lag occurs when part search repeatedly fails, severity scaling with localparts size
it was already handled with proxy but now I transferred it to event
@@ -332,7 +331,14 @@ function PART:GetOrFindCachedPart(uid_or_name)
332
331
self.found_cached_parts[uid_or_name] =part
333
332
returnpart
334
333
end
335
-
ifpart:IsValid() then
334
+
ifnotpart:IsValid() then
335
+
self.erroring_cached_parts[uid_or_name] =true
336
+
self.bad_uid_search=self.bad_uid_searchor0
337
+
self.bad_uid_search=self.bad_uid_search+1
338
+
ifself:GetPlayerOwner() ==LocalPlayer() then
339
+
pace.FlashNotification("performance warning! " ..tostring(self) .." keeps searching for parts not finding anything! " ..tostring(uid_or_name) .." may be unused!")
0 commit comments