Hey I'm not entirely sure how to phrase this question. If one were to be disatisfied with the lag generated from his/her lua script, how would one go about reducing that? What magnitude of lag can one expect from networked vars of varying types? How about DT vars of the same variety? Would using regular global variables and streaming them to client with datastream or usermessages always be the best option for optimizing a script?
Please help!
Use tables and loops, use networked vars as less as possible as they basicly are usermessages that send themselves every 30 seconds, causing lag. Yes, usermessages to server and console commands to the client are the best. Datastream is ok for huge tables but anything else other than that isn't. Also, make sure you're putting the code in the correct hook, do checks on functions/commands to reduce lag, etc. Global variables ie SetGlobalInt are also networked, so.. And DT vars aren't like what you think they are. And finally, you just really need to know what to send and WHEN to send it.
Could you explain what you mean on how to check on functions/commands, and how Dt vars work. Thank you in advance.
Sorry, you need to Log In to post a reply to this thread.