-
Notifications
You must be signed in to change notification settings - Fork 109
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
Optimizations + Stop murdering of server #86
Conversation
Stop the GetPlayerData() spam
Do not use Player because it is a preset global
Stop murdering server on restart
Update main table
Stop GetPlayerData() spam
Thats actually nice, good job. Dont know why I didnt think of that. Dont really do QB like that I guess. |
Nice PR, thank you. Is this live on your server and actively working as expected? |
Resmon on latest release 0.00ms idle Resmon on PR No errors |
As of 4 hours ago, yes |
When giving perf numbers I think its very important to give your dataset size. Our actual dataset size was: 279 properties. Also performance in the menus and stuff is entirely dependent upon config. More stuff will mean more lag. Finally, a house performance loading is also dependent on the number of furniture loaded. So its really hard to quantify your numbers tbh. All I can tell you is that it lagged before and it doesn't now |
Tested and working |
Update for requested changes
Requested changes
Overview
Stops spamming of GetPlayerData() constantly
Details
Stops spamming of GetPlayerData() constantly in favor of simply getting the data on load in and updating the job via event. Also when restarting of the script live instead of making every client request the data from the server we just send it out to every client reducing the hitch on restart with lots of properties. We have around 200 properties and this would cause a 1.5-2 second hitch on load in for players. This removes that hitch or reduces it to about 250-300ms which is way more manageable.
UI Changes / Functionality
None
Testing Steps
We ran beta tests with 5-6 people the other night. Some formatting changes were made so hopefully there are no syntax errors. Approximately 200 properties are loaded via data.