Mature Posted January 10, 2020 Share Posted January 10, 2020 Hi guys, I have a server and would like you to give me some important tips for good performance and the shortest possible time on server and client, and one question, I created a Shaders system where CJ leaves White, which can result in frame drops? as all players would use this modification! Link to comment
ReZurrecti0n Posted January 11, 2020 Share Posted January 11, 2020 Well, remember to use local variables, nil global variables the moment it is no longer needed. Close any file you open after you're done with it. Just basic common sense really, anything at all you put into play should be put down after its use is up. Shortest possible time on server and client doesn't make much sense to me. And not familiar with the shader system, but makes sense if it may cause a frame drop depending on how complex it is. So... Only use it you feel it worth the performance it may cost... Link to comment
Scripting Moderators ds1-e Posted January 11, 2020 Scripting Moderators Share Posted January 11, 2020 8 hours ago, Mature said: Hi guys, I have a server and would like you to give me some important tips for good performance and the shortest possible time on server and client, and one question, I created a Shaders system where CJ leaves White, which can result in frame drops? as all players would use this modification! Should help a bit - https://springrts.com/wiki/Lua_Performance Link to comment
Simple0x47 Posted January 11, 2020 Share Posted January 11, 2020 23 hours ago, Mature said: Hi guys, I have a server and would like you to give me some important tips for good performance and the shortest possible time on server and client, and one question, I created a Shaders system where CJ leaves White, which can result in frame drops? as all players would use this modification! a) Loops indexed by numbers, synchronize element's data as little as possible, think twice before creating a global variable. b) If your shader is correctly implemented it shouldn't suppose a problem for a PC which can run GTA San Andreas. 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