• 🏆 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!

[Mapping] Easy ways to reduce even more map lag

Level 3
Joined
Feb 13, 2011
Messages
11
  1. Delete triggers when needed using triggers. Obvious, reduce map lag. Just use a function to delete it.
  2. Remove comments*. Sounds stupid, but take an ant for example. An ant itself is harmless, just like that few KB of space. Combine it, like combining ants, makes it even more dangerous. Soon, you have a legion of ants, or MBs, waiting to assault you/your map and make you itch/you map lag.
    E.g.
    JASS:
    function whatever takes blah returns blah
      blah blah blah
    endfunction
    //Some space-wasting comment that is purely for referencing
    function two takes blah returns blah
      blah blah blah
    endfunction
    This waste space. In the protected map, it should be like the following.
    JASS:
    function whatever takes blah returns blah
      blah blah blah
    endfunction
    function two takes blah returns blah
      blah blah blah
    endfunction
    That's more like it.
  3. Copy the whole JASS into notepad (untested)*. One way to protect the map, and remember to remove those comments! Also remember to save it as a W3X file. E.g. Just another map.w3x .
  4. Protect the map.* Yes, you've heard me right. Protect it, so that it remove those ******* pieces of space waster comments that only make it compatible with the WE.
  5. Don't use GUI. Yes, it removes loads of stupid stuff. Loads of people agree on this. It's also easier to type than select and GUI leaks.

Q&A

Q: Why do removing comments save space?
A: Folders are like comments. They waste space, no matter how negligible.
Q: But they are small!
A: An ant is small too. So is a skeleton warrior.
Q: But why bother to remove them?
A: Same reason you remove leaks. To unclog the map.
Q: But a tiny object...
A: In great amounts can be exceptionally dangerous.
Q: Why copy the JASS file to notepad?
A: Anyway maps are made out of pure JASS/VJASS. Now you can control all the elements and remove those comments. They use Jass to define the boundaries, units, you name it. Just type a in the custom JASS and save it to get the whole map in text.

*Obviously only for the protected version.
 
Top