• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Lag problem

Status
Not open for further replies.
Level 4
Joined
Jul 15, 2012
Messages
89
i dont know why my map lags on weaker computers its totaly ok with fast computers but many players have been complaining about lags and i found out that they all have slow systems it happens in my laptop as well. i would realy appretiate if someone tell me what causes lags or a way to fix it.
 
Level 16
Joined
Dec 15, 2011
Messages
1,423
Lags are often caused by
I think there are a few more causes for lag spikes but I can't remember them at the moment.
 
Level 15
Joined
Oct 29, 2012
Messages
1,474
1- When does it lag?
2- If 1, Show us some Init triggers
3- Some Advices :
#1# : I have a weak computer . Maybe the weakest on the hive . So , Just a few leaks or a few special effects may cause it .You can try Ctrl + Alt + Delete and cancel every useless processor .
#2# : Check your triggers' leaks . ITE and GROUPS with Loop integers will cause a huge lags . Just make separated triggers. Never use ITE and Loop integer groups with loop points . Even by using custom scripts , You won't recude those lags on a weak computer .
#3# : Wtf would it be but Viruses XD? Anyways , Try to reduce special effects as you can . :/
 
Level 15
Joined
Oct 29, 2012
Messages
1,474
@Wrathion
I mean Like this:

  • For each (Integer LoopInteger) from 1 to 120, do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (UnitGroup[LoopInteger] is empty) Equal to False
        • Then - Actions
          • Unit Group - Pick every unit in UnitGroup[LoopInteger] and do (Actions)
            • Loop - Action
              • Set TempPoint[LoopInteger] = (Position of (Picked unit))
              • Custom script: call RemoveLocation(udg_TempPoint[udg_LoopInteger])
          • Custom script: call DestroyGroup(udg_UnitGroup[udg_LoopInteger])
          • Else - Actions
Some triggers that contain these functions in a row cause a big lag for me , EVEN WITH CLEANING LEAKS!!!!
 
Status
Not open for further replies.
Top