glensow Posted July 6, 2019 Share Posted July 6, 2019 Hi, when refresh shops or restart the carshop system its say :http://prntscr.com/obeedk and giving network trouble 2-3 second why? this system using mysql and i have +900 car Link to comment
Scripting Moderators ds1-e Posted July 6, 2019 Scripting Moderators Share Posted July 6, 2019 15 minutes ago, glensow said: Hi, when refresh shops or restart the carshop system its say :http://prntscr.com/obeedk and giving network trouble 2-3 second why? this system using mysql and i have +900 car I guess, it's a massive system plus it also uses database. Code can be badly optimized. But most likely it performs a lot of things at once. If i would be on your place, i would delay executing certain functions within timers. Link to comment
glensow Posted July 9, 2019 Author Share Posted July 9, 2019 This problem still continue... Link to comment
Scripting Moderators ds1-e Posted July 9, 2019 Scripting Moderators Share Posted July 9, 2019 14 minutes ago, glensow said: This problem still continue... Maybe you could show us some code that in your opinion is guilty for that. I'm not a magician, and i don't know how it looks. At the moment, i can advice you to read this. Mainly for loops, unpack equivalent, and localize variables, but i don't think so that will be enough. https://springrts.com/wiki/Lua_Performance Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now