-
-
Notifications
You must be signed in to change notification settings - Fork 199
Description
Version channel
Stable (Default)
Loader version
No response
What part of Adonis is this related to?
Other
What happened?
Currently, there's an issue I'm having with Adonis where a large amount of places that call AddLog pass the player into the log as well. This results in the server holding onto the player reference for longer than it should; major issue in servers with large playercounts and high turnover rate.
I understand some things probably use the player (probably plugins) but nothing in base Adonis seems to, so I attempted to alleviate this issue for my own game by overriding Logs.AddLog
entirely using a plugin and erasing the player field of the table, but ran into another issue; most places that use AddLog save it to a variable on init, preventing my changes from mattering as they have the old version of the function (before my function overwrote it).
So, given the circumstances, I wanted to ask for how to go forward in a case like this.
Should I open a PR to unlocalize all instances of AddLog?
Should this be a config option? (storing the player obj in the first place)
Or something else? Originally I was going to submit a PR to remove ever storing the player obj in the log, but realized that would likely break plugins
Steps to reproduce
- Have someone do anything that causes a log output for their player
- Have them leave
- Check in server LuauHeap -> Unique References
- Observe the 50 references to the player object
Device
Windows