-
-
Notifications
You must be signed in to change notification settings - Fork 434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the ability to completely remove or disable unused functions. #3774
Comments
You cant prevent client from using these functions. Disabling them on server also doesnt make much sense unless you have third party resources that you didnt write. |
Just as you said, addDebugHook isn’t an optimal solution, it hits performance hard most of the time, and i would prefer not to use it. I would love to remove them simply because i don't use them a single time, ever, so they are completely useless for the server. But it's okay if my idea isn't isn't possible or worth trying |
I don't see the practical side of it. |
I can understand it's nothing practical, it's more likely a matter of personal preference, nothing serious |
Just do clientside |
haha, thanks for clarifying it |
Is your feature request related to a problem? Please describe.
No response
Describe the solution you'd like
A new line could be added to the 'mtaserver.conf' file, something like:
Here, we could list functions that our gamemode doesn't use at all, allowing us to completely remove them from both the server and client side.
Describe alternatives you've considered
You can always do:
But I believe that's not a permanent solution, and it might be possible to ""bypass"" it.
Additional context
Removing unnecessary functions might free up a very small amount of memory as well, though I'm not entirely sure about this, please feel free to correct me on this one.
Security Policy
The text was updated successfully, but these errors were encountered: