1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

what do you guys use

Discussion in 'Triggers & Scripts' started by xxx_, Sep 24, 2013.

  1. PurgeandFire

    PurgeandFire

    Code Moderator

    Joined:
    Nov 11, 2006
    Messages:
    7,426
    Resources:
    18
    Icons:
    1
    Spells:
    4
    Tutorials:
    9
    JASS:
    4
    Resources:
    18
    Most of the fps lag I experience is not from CPU issues, but rather GPU issues. Do your best to avoid too many effects/particles on screen.
     
  2. T. D. W.

    T. D. W.

    Joined:
    Jul 31, 2012
    Messages:
    1,505
    Resources:
    5
    Spells:
    5
    Resources:
    5
    I tested it before :grin: the 0.00 s loop with the code you can see in the randomizer doesn't lag until it reashes 5000 excecution without stopping resulting a 0.0002 s loop without lag with well coded and not creation hungry triggers
     
  3. chobibo

    chobibo

    Joined:
    Sep 24, 2005
    Messages:
    2,700
    Resources:
    0
    Resources:
    0
    This, and units too. Pathfinding seems to be an issue too for TD's that periodically order the units to move to a specific location. It would be great if you could just slide (knockback) the units instead of using wc3 engine to calculate paths, but alas, you won't be able to use maze like towers lol.
     
  4. CreatorD3292

    CreatorD3292

    Joined:
    Aug 23, 2013
    Messages:
    247
    Resources:
    13
    Models:
    10
    Icons:
    3
    Resources:
    13
    how can i set every 0.3s -> 0.03125
     
  5. Rheiko

    Rheiko

    Joined:
    Aug 27, 2013
    Messages:
    2,936
    Resources:
    7
    Icons:
    2
    Spells:
    3
    Tutorials:
    2
    Resources:
    7
    i guess you only be able to do it with Jass
    i don't know
     
  6. T. D. W.

    T. D. W.

    Joined:
    Jul 31, 2012
    Messages:
    1,505
    Resources:
    5
    Spells:
    5
    Resources:
    5
    Rheiko is right
     
  7. BPower

    BPower

    Joined:
    Mar 18, 2012
    Messages:
    1,709
    Resources:
    21
    Spells:
    15
    Tutorials:
    1
    JASS:
    5
    Resources:
    21
    You don't have to set the countdown to 0.03125 and in GUI its impossible anyway.
     
  8. Rheiko

    Rheiko

    Joined:
    Aug 27, 2013
    Messages:
    2,936
    Resources:
    7
    Icons:
    2
    Spells:
    3
    Tutorials:
    2
    Resources:
    7
    yes, because it's only available in Jass
    use 0.03 instead
     
  9. Daffa the Mage

    Daffa the Mage

    Map Moderator

    Joined:
    Jan 30, 2013
    Messages:
    7,731
    Resources:
    28
    Packs:
    1
    Maps:
    8
    Spells:
    17
    Tutorials:
    2
    Resources:
    28
    You can register the even with custom script [I believe] and use that number.
     
  10. Rheiko

    Rheiko

    Joined:
    Aug 27, 2013
    Messages:
    2,936
    Resources:
    7
    Icons:
    2
    Spells:
    3
    Tutorials:
    2
    Resources:
    7
    ah yes, register it with another trigger
    people usually use configuration trigger to register an event like that
     
  11. BPower

    BPower

    Joined:
    Mar 18, 2012
    Messages:
    1,709
    Resources:
    21
    Spells:
    15
    Tutorials:
    1
    JASS:
    5
    Resources:
    21
    why would you want to do that? 0.03125 is more accurate, but i don't think it matters, since you code in GUI.
     
  12. jakeZinc

    jakeZinc

    Joined:
    Aug 13, 2013
    Messages:
    1,373
    Resources:
    20
    Spells:
    20
    Resources:
    20
    0.03 or 0.04 is my recommended time period. It will lag if you spawn special effects every 0.03 seconds with highly in particles effect. Reducing the effect or making an effect in knockback must be this:
    • Normal Effects Creating in Knockback
      • Events
        • Time - Every 0.03 seconds of game time
      • Conditions
      • Actions
        • -------- Creating effects in 0.03 will cause a lags so how will you reduce the effects in 0.03 ? --------
        • -------- It is simple. --------
        • -------- Create ITE Condition ( Real Comparison ) ----> Math Random Number or Math Random Percentage. --------
        • -------- But I'll use Math Random Reals because it is adjustible limit. --------
        • -------- I'll use 0.25 as a chance in creating special effects. You can use 0.50 as a chance. --------
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Random real number between 0.00 and 1.00) Less than or equal to 0.25
          • Then - Actions
            • Set Point = (Position of (Triggering unit))
            • Special Effect - Create a special effect at Point using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
            • Special Effect - Destroy (Last created special effect)
          • Else - Actions
        • -------- Finish --------
        • -------- This method is recommendable in highly particle effects like thunder clap. --------
        • -------- This is just a suggestion and example :P. --------
     
  13. Wrda

    Wrda

    Joined:
    Nov 18, 2012
    Messages:
    1,168
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    You can just do 3125/100000 (using arithmetic) :D

    @Jad
    For me, 0.0 made instant lag, 0.0002 made lag after 2 seconds. The minium number that didn't provide any lag was 0.001 so I don't see how it is possible coding with 0.0002 :D
     
  14. T. D. W.

    T. D. W.

    Joined:
    Jul 31, 2012
    Messages:
    1,505
    Resources:
    5
    Spells:
    5
    Resources:
    5
    3125/100000 will result the same if GUI :/
    Did you try the 0.00 in my randomizer? If not, so there is nothing to discuss, it depends on the trigger if 0.00>0.03 loops are laggy or not
    I think registering a trigger with a Custom script via another trig is the best idea for GUI triggers
     
  15. deathismyfriend

    deathismyfriend

    Joined:
    Oct 24, 2012
    Messages:
    6,529
    Resources:
    14
    Spells:
    12
    Tutorials:
    2
    Resources:
    14
    It will not result in 0.03 if using the division. But the best way is set an integer to 0.03125 using custom script then register everything using that integer.
     
  16. mikagami

    mikagami

    Joined:
    Aug 9, 2012
    Messages:
    112
    Resources:
    0
    Resources:
    0
    actually it wont lag if u dont create too many dummy, gived too many skills, SFX and other long proses...
    :D

    but as far as i know, 0.025-0.4 is very common choice