• 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.

too many unit spawn

Status
Not open for further replies.
Level 3
Joined
Jul 8, 2009
Messages
40
if too much unit spawn more than 200 it will make lag...how to fix this?spawn more than 200 but never lag how to do it?help me please
 
Level 13
Joined
Mar 24, 2010
Messages
950
yeah more complex models im mass can make some lag (more so for old comps) the real problem is mass moving, doesnt work to well all being on 1 players team but like Anachron said they move with ease if they are on different players teams.

I have a map where i make alot of units (footmen) move all at once from all 12 teams, whats your option on this.
Is it better to pick all those footmen in 1 group and mass move them or to do a loop and pick all those in player and send them in 12 different groups separate. i figured it wouldn't matter either way (havent tested tho) (and removing leaks also of course either way)
 
Level 3
Joined
Jul 8, 2009
Messages
40
iam found a post it help handle more thn 200 unit it is make by jass but now iam cant find the post.....
 
Level 10
Joined
Feb 13, 2010
Messages
116
if too much unit spawn more than 200 it will make lag...how to fix this?spawn more than 200 but never lag how to do it?help me please

  • Lvl 1 spawn
    • Events
      • Time - Every 10.00 seconds of game time
    • Conditions
      • (Number of units in (Units owned by Player 11 (Dark Green))) Less than or equal to 100
    • Actions
      • Unit - Create 1 LvL 1 Rat Melle for Player 11 (Dark Green) at (Center of Spawn region 1 <gen>) facing Default building facing degrees
      • Unit - Create 1 LvL 1 Rat Melle for Player 11 (Dark Green) at (Center of Spawn region 2 <gen>) facing Default building facing degrees
      • Unit - Create 1 LvL 1 Rat Melle for Player 11 (Dark Green) at (Center of Spawn region 3 <gen>) facing Default building facing degrees
      • Unit - Create 1 LvL 1 Rat Melle for Player 11 (Dark Green) at (Center of Spawn region 4 <gen>) facing Default building facing degrees
      • Unit - Create 1 LvL 1 Rat Range for Player 11 (Dark Green) at (Center of Spawn region 1 <gen>) facing Default building facing degrees
      • Unit - Create 1 LvL 1 Rat Range for Player 11 (Dark Green) at (Center of Spawn region 2 <gen>) facing Default building facing degrees
      • Unit - Create 1 LvL 1 Rat Range for Player 11 (Dark Green) at (Center of Spawn region 3 <gen>) facing Default building facing degrees
      • Unit - Create 1 LvL 1 Rat Range for Player 11 (Dark Green) at (Center of Spawn region 4 <gen>) facing Default building facing degrees
      • Unit - Create 1 LvL 1 Rat Boss for Player 11 (Dark Green) at (Center of Spawn region 1 <gen>) facing Default building facing degrees
      • Unit - Create 1 LvL 1 Rat Boss for Player 11 (Dark Green) at (Center of Spawn region 2 <gen>) facing Default building facing degrees
      • Unit - Create 1 LvL 1 Rat Boss for Player 11 (Dark Green) at (Center of Spawn region 3 <gen>) facing Default building facing degrees
      • Unit - Create 1 LvL 1 Rat Boss for Player 11 (Dark Green) at (Center of Spawn region 4 <gen>) facing Default building facing degrees
 
Level 4
Joined
Apr 20, 2023
Messages
43
Depends on the computer you are on.
Slow pcs can't handle that much.

Also it depends on the players (which is crazy).
If you give the units to 12 different players, it will not lagg that hard.
This is the way to deal with problem, but if you create too many unit in same screen you will see 'screen display error'
 
Status
Not open for further replies.
Top