Jump to content

Performance question


SpecT

Recommended Posts

Posted

Hello guys!

I'm using MySQL database and the collected data is large. It's stored in a table in the server side and when it's needed it is being sent to the client(s).

So I'm worried about the lag it causes while filling the table in the client side.

So here is my question: How can I get rid or at least lower that lag while filling the table?

Thanks in advance!

  • Moderators
Posted

For loading from the MySQL, split up the data under more keys.

For the processing serverside: setTimer + repeat until + getTickCount()

For the processing clientside: "onClientRender" + repeat until + getTickCount()

For the network:

https://wiki.multitheftauto.com/wiki/Tr ... lientEvent

And use your own creativity.

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

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...