official-notfishvr / Fish-Lethal-Company-Menu

This Is Lethal Company Mod Menu
38 stars 5 forks source link

the game lags when i use any hacks #32

Open ishaan12334 opened 8 months ago

ishaan12334 commented 8 months ago

it lags how can i fix it pls help

shaggyrogers commented 8 months ago

UnityEngine.Object.FindObjectsOfType() is kind of expensive, it shouldn't be called every frame, as is currently the case when the ESP is enabled, or the player list tab is open. Better to have a buffer for each type of object the ESP shows, updated periodically. See here.

Can also happen if exceptions are triggered frequently, this would be obvious by looking at the BepInEx log.