Jump to content

carshop problem (long execution time)


glensow

Recommended Posts

  • Scripting Moderators
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
  • Scripting Moderators
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...