• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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 10
Joined
May 27, 2009
Messages
494
i think it could be removed if you are using a low detailed model and texture. The lower, the smaller memory it takes. If you use a very simple 2D model (or even a picture) it will just get up bytes (smaller probably or low poly count).

If you want more, use a super computer @@
 
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
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,207
Its caused by the displacement algerthim. It trys to find free space for the units to be placed which is costly and even unstable at times.

Spawn them over a time period and throughout a region (not just at the same position).

Also make sure there are no leaks as those will make every call less efficent.
 
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