Optimizing a gamemode
#4

Quote:
Originally Posted by Stev
View Post
Yes, I see what you mean by "over-optimization", I will take them into consideration. I know there would be a lot more I can do to this gamemode to make it more functional its just knows the tricks (If you know what I mean). I did read that thread before posting this one but, my brain can't handle them this at this time .

Thanks for good feedback, Will take into consideration!
I have just checked the filterscript you released a while ago, I would suggest:
  • Use foreach (y_iterate) instead of the normal iteration (for(new i=0;i<MAX_PLAYERS;i++)) for better performance. Also, with foreach (y_iterate) you don't need to check if the player is online (IsPlayerOnline(playerid)), so one function less to call.
You're using ZCMD and sscanf, so you're not bad actually, it's already half step for a good script, just don't forget that thing about "new string[256]"
Reply


Messages In This Thread
Optimizing a gamemode - by Stev - 06.09.2015, 14:09
Re: Optimizing a gamemode - by Nixtren - 06.09.2015, 18:37
Re: Optimizing a gamemode - by Stev - 06.09.2015, 20:51
Re: Optimizing a gamemode - by Nixtren - 06.09.2015, 21:13
Re: Optimizing a gamemode - by Stev - 06.09.2015, 21:16

Forum Jump:


Users browsing this thread: 2 Guest(s)