• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Does this cause much trouble online?

Status
Not open for further replies.
Level 19
Joined
Oct 29, 2007
Messages
1,184
I'm making a map I got some triggers that create about five units for every 0.04 seconds of game time for every player that is playing, there can be up to four players. The maximum amount of units that can be in the map for each player playing is somewhere between 10 and 250 (which means there can be up to about 1000 units in the map). This is of course tested, and on my computer it doesn't seem to be much trouble, but then, only I am playing. I got stable fps and cpu performence, so, weee. (If you are wondering why the hell I want to have all these units in my map, it's for real time terrain generating. I feel abit lazy.)

My question is: When this map is played online, which computer does calculate the triggers, is this task shared? And what about internet connection? How much will these things affect the performance of my map? I want to avoid making some big mistakes in this early state of my map progress. : )
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
5 units every 0.04 seconds?
For 4 players, that means 20 units/0.04 sec and 500 units/sec
That is too much... (I hope you've at least removed the leaks xD)
The maximum amount of units without lag is about 500, you are going to create 1000 of them.

Are these units only ment for the terrain and are there going to be even more units? (like heroes, merceneries, or something)?
 
Level 19
Joined
Oct 29, 2007
Messages
1,184
I am not to sure but here is what I know.

I made a map and played it on bnet, it creates random critters on the map(about 20 units every 0.05 seconds) there was no lag because of that(I think) or at least no one complained about it.

Yay! glad to hear that! :D

5 units every 0.04 seconds?
For 4 players, that means 20 units/0.04 sec and 500 units/sec
That is too much... (I hope you've at least removed the leaks xD)
The maximum amount of units without lag is about 500, you are going to create 1000 of them.

Are these units only ment for the terrain and are there going to be even more units? (like heroes, merceneries, or something)?

All players have one hero, each round there are spawned beteen 3 and 20 zombies, and the items are.. er.. units! xD But there are only 20 of them in the map at the time. And of course.. No leaks.
 
Level 11
Joined
Nov 15, 2007
Messages
800
Just add a condition to the unit spawn that checks how many living units are on the field so it never gets out of control.
 
Status
Not open for further replies.
Top