-
Notifications
You must be signed in to change notification settings - Fork 134
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
Refactor: Complete Script Rewrite #65
base: main
Are you sure you want to change the base?
Conversation
A complete Rewrite of the script, into a OOP based system, benefits of the rewrite include: - Much easier to read - Fully documented code - Easy to follow each part - Security improvements - Performance improvements (from my testing, it goes to 0.02ms max, and that is only for a single tick while dropping off the passenger) - Better coding practices - Removes all threads
credit to Mutt for noticing this :)
Nicely structured and documented Ive only scanned through the server lua - a performance improvement would be:
and call this function to get the players object :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just nitpicking.
Great PR mate.
'@PolyZone/EntityZone.lua', | ||
'@PolyZone/CircleZone.lua', | ||
'@PolyZone/ComboZone.lua', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only CircleZone
is used, no?
I see no usage of EntityZone
, BoxZone
, ComboZone
atleast
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe?
it has been a good while since i have used PolyZone, so didnt want to break it lol
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah dont really know personally either, if the CircleZone perhaps depends on one of the other imported files.
If not though, then they should probably be removed to improve performance / overhead, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then they should probably be removed to improve performance / overhead, no?
indeed. will do some testing and see if the others are required :)
Co-authored-by: Zerio <[email protected]>
Co-authored-by: Zerio <[email protected]>
Fixed :) |
while this might sound like a weird change, onResourceStart does not seem to be 100% reliable in current builds
Describe Pull request
A complete Rewrite of the script, into a modular based system, benefits of the rewrite include:
Questions (please complete the following information):