I have been searching for a memory leak in my game since I noticed people that keep on playing complain about their memory usage. After further investigation, I found that the main cause of this was the errors that are being shown in the clients developer console. As there are more errors the client memory usage goes up.
Is this due to the logging in the dev console, a result of the errors themselves, or possibly both?
Is there a way to clear the console as a cautionary measure in case another one of these cases Iām not aware of occurs?
Itās just a simple could not find part in tool error that is in a 3 line script with a MouseButton1Down function that fires an event that can cause the error.
If the error is happening every single time the player clicks, then perhaps that could cause lag or something. I would say itās better to fix it, as it doesnāt seem like a hard fix.
You should never āhide errorsā, as they will just come back in much greater force and cause you even bigger pain. (This also applies to āreal lifeā.)
Always be on the look out for warnings and errors that may occur in your game. Study and understand why they happen, and fix them as soon as possible, otherwise you will just end up with a broken mess that can be extremely difficult to repair.