Map isnt big file, but lags :(!

Status
Not open for further replies.
Level 2
Joined
Jan 11, 2008
Messages
11
Ok here goes, I made a map... not even done yet, its a Warchasers type map, and it has lots of triggers. The file size (so far) is 1,456 kb and I imported around 10 models.

Every time I test the map, its very laggy and I see other maps all the time that have 2x as much space as mine and they aren't laggy at all.

Any ideas on how to fix this please and thanks?
 
Level 7
Joined
Jul 5, 2007
Messages
338
Ok here goes, I made a map... not even done yet, its a Warchasers type map, and it has lots of triggers. The file size (so far) is 1,456 kb and I imported around 10 models.

Every time I test the map, its very laggy and I see other maps all the time that have 2x as much space as mine and they aren't laggy at all.

Any ideas on how to fix this please and thanks?

Well it depends actually, but the problem is probably because too much amount of units and/or doodads, and sometimes triggers.

But I since don't you know what your map looks like I can't give a good estimate so you must show us at least a good screenshot of your map. :thumbs_up:

Also a new member at the Hive? Introduce yourself here ... Introduction .... :thumbs_up:
 
Level 11
Joined
Aug 25, 2006
Messages
971
We need to see the map.
Post the map unprotected.

Main reasons a map could lag!
Leaky triggers (If you use to much memory it'll start to use swap which is slow)
Superfast triggers (CPU's need to sleep just like us)
Too many of the same events. (Causes un-needed condition build up)
Too many fast running spells.
Too many poly's per model. (Unless you have a several hundred dollar graphics card [like me])
 
Last edited:
Level 2
Joined
Jan 11, 2008
Messages
11
Here it is. according to your reasoning bomber, no wonder my map is laggy :(
But I have no idea how to fix the trigger problem.. Anyways, heres the map.
 

Attachments

  • Zombie Map.w3x
    1.4 MB · Views: 47
Level 11
Joined
Aug 25, 2006
Messages
971
For a couple of seconds nothing happened. Then my ultra powerful comp started to lag...
At first I wondered. Then, <look at screenshot> I didn't wonder anymore... (Note the screenshot was taken about 11 seconds after the game finished loading)





Please Please PLEASE! Goto Triggers > GUI > (Sticky) Things that leak.
Fix your leaks!
 

Attachments

  • WC3ScrnShot_012208_211522_01.jpg
    WC3ScrnShot_012208_211522_01.jpg
    64.1 KB · Views: 96
Level 14
Joined
Nov 18, 2007
Messages
1,084
Just a suggestion

Try, if you can, to combine triggers that have the same event.
For example for the trigger where the event is a
  • Unit - A unit Dies
you could combine all of the triggers into
  • Unit Dies
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Owner of (Killing unit)) Equal to Player 1 (Red)) or ((Owner of (Killing unit)) Equal to Player 2 (Blue))
    • Actions
      • Hero - Add 10 experience to (Matching unit), Show level-up graphics
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Unit-type of (Killing unit)) Equal to Jungle Wolf (Level 1)
              • (Unit-type of (Killing unit)) Equal to Dark Jungle Wolf (Level 2)
              • (Unit-type of (Killing unit)) Equal to Moon Jungle Wolf (Level 4)
        • Then - Actions
          • Unit - Set life of (Killing unit) to 100.00%
        • Else - Actions
 
Level 2
Joined
Jan 11, 2008
Messages
11
Try, if you can, to combine triggers that have the same event.
For example for the trigger where the event is a
  • Unit - A unit Dies
you could combine all of the triggers into
  • Unit Dies
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Owner of (Killing unit)) Equal to Player 1 (Red)) or ((Owner of (Killing unit)) Equal to Player 2 (Blue))
    • Actions
      • Hero - Add 10 experience to (Matching unit), Show level-up graphics
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Unit-type of (Killing unit)) Equal to Jungle Wolf (Level 1)
              • (Unit-type of (Killing unit)) Equal to Dark Jungle Wolf (Level 2)
              • (Unit-type of (Killing unit)) Equal to Moon Jungle Wolf (Level 4)
        • Then - Actions
          • Unit - Set life of (Killing unit) to 100.00%
        • Else - Actions

Ty ty ty ty! I took like 70% of the spells that were causing the lag and put all the triggers with the same events together and it works great! :D I'm so happy! Thanks everyone! If I have any other questions I'll let you guys know, but for now, I'm good.
 
Status
Not open for further replies.
Top