03.06.2017, 02:17
Hi, so my GM is almost done and I plan to open my server soon. When? Idk, but soon.
Since I'll be starting I'll get a normal host, not a dedicated one so I'll have to share resources with idk how many other server thus I want to make my server as light as possible.
1st) I don't use OnPlayerUpdate. Instead I use an infinite loop that is called every .5s but I have ALOT of things there, can this cause lag?
2nd) I use alot of things like that:
I guess by now I have over 10 of those. Can the massive use of those cause lag?
3rd) Apart from having something being called alot, what other things can cause lag/slow downs that I should evade?
Since I'll be starting I'll get a normal host, not a dedicated one so I'll have to share resources with idk how many other server thus I want to make my server as light as possible.
1st) I don't use OnPlayerUpdate. Instead I use an infinite loop that is called every .5s but I have ALOT of things there, can this cause lag?
2nd) I use alot of things like that:
Код:
g_God[MAX_PLAYERS];
3rd) Apart from having something being called alot, what other things can cause lag/slow downs that I should evade?