Question is in title, if i had a lot of objects with metatable inheritance, would they lag the game? or simply use soo much space they would cause lags? i’m worried about that cuz i want to make hundreds of OOP buildings in my new game
You should be fine, it becomes a problem if you have connections tied to those objects and aren’t properly disconnecting them
This is definitely more important for server sided objects cause those objects dont just get removed like when a player leaves the game, the whole server has to leave so keep that in mind
Hello!
I’m using OOP in my game My Prison to handle every build placed by players, and I haven’t experienced any performance issues because of it.
Of course, OOP can use slightly more memory compared to a non-OOP approach, but in most cases, the difference is negligible.
1 Like
So if i used it for items or stacks that’s laying on the ground (only logic) this shouldn’t be a giant problem for performance?