General - Reducing Lag

Grammer error:

This tutorial will teach you how to fix all this, and help to make your map run even more smoothly.

should be either:

This tutorial will teach you how to fix all this, and help to make your map run more smoothly.

or

This tutorial will teach you how to fix all this, and help to make your map even more smooth.


Just thought I'd point that out :D :cool:

1) More goes with the adjective, as in more smoothness.
2) You cannot use more with smoothly, it's an adverb. Instead use "smoother", your map will run smoother. No more smoother, just smoother.
3) example 2 is good.
 
For 3. PreLoading
A. Units


i dont know how to do preloading and my map has a 20 second cinematics at map init (for giving credits+load some invulnerable triggers)

and during that 20 sec, can i put a dummy to make all dummy units/dummy spells effects run for the first time ?:banghead:
 
Have you played diablo? Do you know what frozen orb is?

If you do, would making a GUI-based frozen orb just horribly lag the map, because it creates a sick amount of units with lots of periodics?
 
Darthfett
what about connection splits? do you know something?

i have it sometimes...
 
If you use GetLocalPlayer(), it can cause server splits if used incorrectly. Also, the "Pan camera as Necessary" causes server splits.

I have also heard Terrain Deformations causes it sometimes, if you're using that. I've never even used it before, so don't take my word for it. :p
 
cool tut i just have one question when u say premake a unit with the same ability as a hero you have or w/e is that canceling like the 1st time i use my heros ablity it will lag but after that its fine. does that take that effect away where the 1st time is lagless?
 
cool tut i just have one question when u say premake a unit with the same ability as a hero you have or w/e is that canceling like the 1st time i use my heros ablity it will lag but after that its fine. does that take that effect away where the 1st time is lagless?

That is correct. If you don't preload the abilities, the game will be forced to load the abilities in the game, which is why it lags the first time. After that, the ability is already loaded, and it does not need to be reloaded each time the hero is created.
 
The other players lag may also be because of how large your map is. If your map is Epic, or Large sized, you may want to add a loading time at the beginning of the map, just so players can handle the heavy strain on their computer.

Exactly how do I add loading time at the beginning of the map?
 
Exactly how do I add loading time at the beginning of the map?

Basically the idea is that you do nothing for a small amount of time, and give players a small amount of time to load the map itself. Instead of doing Time - Elapsed time becomes equal to 0.00, you can do Time - Elapsed time becomes equal to 6.00
 
Awesome!! =D

Grammer error:

This tutorial will teach you how to fix all this, and help to make your map run even more smoothly.

should be either:

This tutorial will teach you how to fix all this, and help to make your map run more smoothly.

or

This tutorial will teach you how to fix all this, and help to make your map even more smooth.


Just thought I'd point that out :D :cool:

Uh...What he said was more correct (and is correct) than either of your two statements...Your second choice does not even refer to what he was talking about...You're talking about the map like it is a nice leather couch.

Anyways, great post. Helped a lot
+rep!
 
I have a problem

this is my trigger
Events
Time - Every 1 seconds of game time
Condions
Actions
Set ForEachInt = 0
For Each (Integer A) from 1 to 12, do (Actions)
Set ForEachInt = (ForEachInt + 1)
Set Remember5[ForEachInt] = Remember4[ForEachInt]
Set Remember4[ForEachInt] = Remember3[ForEachInt]
Set Remember3[ForEachInt] = Remember2[ForEachInt]
Set Remember2[ForEachInt] = Remember1[ForEachInt]
Unit Group - Pick every unit in (Units owned by (Player(ForEachInt)) matching (((Matching unit) is A Hero) Equal to True)) and do Actions)
Loop - Actions
Set Remember1[ForEachInt] = (Position of (Picked unit))

How do i make this leakless!?
 
Necromancer + Off Topic = /\

And no... Leak Checker don't is a trojan.
 
Code:
[B]Events[/B]
     Time - Every 1.00 seconds of game time
[B]Condions[/B]
[B]Actions[/B]
     Set ForEachInt = 0
     For Each (Integer A) from 1 to 12, do (Actions)
     Set ForEachInt = (ForEachInt + 1)
     Set Remember5[ForEachInt] = Remember4[ForEachInt]
     Set Remember4[ForEachInt] = Remember3[ForEachInt]
     Set Remember3[ForEachInt] = Remember2[ForEachInt]
     Set Remember2[ForEachInt] = Remember1[ForEachInt]
     Unit Group - Pick every unit in ([b][color=red]Units owned by (Player(ForEachInt)) matching (((Matching unit) is A Hero) Equal to True)[/color][/b]) and do (Actions)
          Loop - Actions
               Set Remember1[ForEachInt] = (Position of (Picked unit))

Units owned by (Player(ForEachInt)) matching (((Matching unit) is A Hero) Equal to True): Unit groups leak.

Code:
[B]Events[/B]
     Time - Every 1.00 seconds of game time
[B]Condions[/B]
[B]Actions[/B]
     Set ForEachInt = 0
     For Each (Integer A) from 1 to 12, do (Actions)
     Set ForEachInt = (ForEachInt + 1)
     Set Remember5[ForEachInt] = Remember4[ForEachInt]
     Set Remember4[ForEachInt] = Remember3[ForEachInt]
     Set Remember3[ForEachInt] = Remember2[ForEachInt]
     Set Remember2[ForEachInt] = Remember1[ForEachInt]
     [color=blue][b]Set Temp_UnitGroup = (Units owned by (Player(ForEachInt)) matching (((Matching unit) is A Hero) Equal to True))[/b][/color]
     Unit Group - Pick every unit in [color=blue][b]Temp_UnitGroup[/b][/color] and do (Actions)
          Loop - Actions
               Set Remember1[ForEachInt] = (Position of (Picked unit))
     [color=blue][b]Custom script:    call DestroyGroup(udg_Temp_UnitGroup)[/b][/color]

I'm not entirely sure if this is the only leak, though. Remember5[] might leak.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top