Ok i have fixed my leaks in my game and preloaded all the units, dummies and buildings. What else would cause my map to lag. Do i have to preload items as well??
Yeah it lags. I have a version of my game that i create like a ear ago before i knew about memeory leaks and that 1 does lag at all ppl say but they said this 1 does and some ppl say they can't even play it. I also used leak checker to double check in case i missed some.
Well first of all, you have to identify what kind of lag it is.
Is it constant lag throughout the game, slowly getting worse (usually caused by memory leaks, or simply having tons of objects at once in-game)?
Is it random and sudden delays (usually caused by something that hasn't been preloaded)?
Do you have tons of units/graphical models in your map? Do you have many periodic triggers with very short expiration timers, such as sliding spells or perform a lot of actions?
I'm assuming you have a computer capable of handling all of this.
if they are 0.01 periodics and they do large amounts of stuff then thats your problem. If people are complaining about the fact that when they order a unit to attack, and it has a 1 second delay, then its not your map at all. it's the fact that people still use crappy connection
when i tested as not being the host the game lagged every couple of secs. like lag for a sec then stop and happened again and then it was fine for 30 secs or so and happened again.
the periodic event can be used 0.01 without lag also. But, the condition is, you need another trigger to control this periodic trigger, with Flag Boolean. (Boolean Global Variable)
Furthermore, the functional calls that you spam or use in your game sometime can be reduced, when you doing the manually map optimization. The more functional calls performing at the same time, the more potential your map will be getting lagging.
i fixed all the leaks and I have 8 periodic event times. They are 10,15,15,15,15,8,0.50 secs times in my game. There are 12 users which have a building and units every 8.00 of game time spawn endlessely till their base get destroyed. The people say it lags during game play like every somewhat seconds and continues, but the host never lags and i know i got the best hosting so do my friends. It's not leaks for sure and everything is preloaded that i know of except items. Also i'm assuming periodic events mean every second of game time not time eplase trigger events. Any solutions guys
Please do not [del]double[/del] triple post.
Periodic events are different the elapsed time.
Hosts don't (usually) feel the lag anyways, so hosting doesn't matter.
It could be leaks still though.
Does the lag start right away, or halfway into the game, etc?
I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
I'm on a page about incorrect corrections, and spent the better part of like two hours trying to get someone to understand that -5^2 = -25, not 25, and then that post had comments get reposted because that group is self sustaining, and that person was in turn trying to explain what I just explained to them. And I'm taking that as a victory