Hi! What timer to use?

Mabaet.Baet

Member
Reaction score
2
Hi, what timer is best to use on spells? What would you like to suggest? What is the most used timer?

Thanks :)
 

Ayanami

칼리
Reaction score
288
Depends on what type of timer you need. For high frequency timers, I suggest Timer32. For low frequency, perhaps TimerUtils or something.
 

Mabaet.Baet

Member
Reaction score
2
Depends on what type of timer you need. For high frequency timers, I suggest Timer32. For low frequency, perhaps TimerUtils or something.

Hi Ayanami, what do you mean by high/low frequency?

I should use T32 for fast repeating stuff trigger?

And I should use TimerUtils for something like timer that repeats every 1 sec or something?

Edit: Hey, where can I introduce myself?
 

Dirac

22710180
Reaction score
147
Yes thats right, you should also remember that those systems are meant to be work using structs.
 

Nestharus

o-o
Reaction score
84
Actually, for 1 second repeating timers, you should use Timer Tools in Systems and Triggers on thehelper.

Constant Timer Loop 32 is a bit of an upgrade over T32 as well.


Just read Timer Tools thread and it'll tell you what situations you should use its 3 timers for ; ).



Vex's Timer Utils should be used for totally random infrequent non repeating stuff = ).

edit
http://www.thehelper.net/forums/showthread.php/166568-Timer-Utils

mod hasn't changed name of thread yet ;p
 

Mabaet.Baet

Member
Reaction score
2
Actually, for 1 second repeating timers, you should use Timer Tools in Systems and Triggers on thehelper.

Constant Timer Loop 32 is a bit of an upgrade over T32 as well.


Just read Timer Tools thread and it'll tell you what situations you should use its 3 timers for ; ).



Vex's Timer Utils should be used for totally random infrequent non repeating stuff = ).

edit
http://www.thehelper.net/forums/showthread.php/166568-Timer-Utils

mod hasn't changed name of thread yet ;p
I use T32 and KT2 for fast thing and TimerUtils for low freq.

And now.... omg I don't even und.... urrggg! Ok that's kinda too complex for me... can you help me? :DD

I'll try to learn it tomorrow... I don't know this module implement thing stuff right here :p I stopped using WE for one and a half year hell yeah!
 

Nestharus

o-o
Reaction score
84
You should never ever ever ever ever use KT2. It's garbage. It was proven in a thread started in JASS Help section.



The Timer Tools dynamic times will beat it every time. Hell, Timer Utils by Vex will beat it almost every time too, lol.



Here's a lib that's a bit better than T32 ; )
http://www.thehelper.net/forums/showthread.php/166641-Constant-Timer-Loop-32



I know, now you have 6 different types of timers to work with. 3 from Timer Tools, 2 from Constant Timer Loop 32, and then TimerUtils, lol.
 

tommerbob

Minecraft. :D
Reaction score
110
Unless you're going for optimal efficiency, which is what Nes is good at :)P), I suggest just using one system for high-frequency, and another for low-frequency. Uncomplicated is usually better.
 

Dirac

22710180
Reaction score
147
TimerUtils is useful, but TimerUtils is for speed freaks
T32 is for speed freaks freaks and TimerLoop32 is for speed freaks freaks freaks
 

Romek

Super Moderator
Reaction score
964
Use T32 and TimerUtils for optimum performance and ease of use. Avoid ConstantTimerLoop32 or w/e it's called at all costs.

Have you learned vJass? It may be worth taking a look at the sticky at the top of this forum about what to do/use/read to make coding as easy and efficient as possible. If you're already proficient with JASS, simply use the JassHelper manual to browse through what's available in vJass.
 

Mabaet.Baet

Member
Reaction score
2
Use T32 and TimerUtils for optimum performance and ease of use. Avoid ConstantTimerLoop32 or w/e it's called at all costs.

Have you learned vJass? It may be worth taking a look at the sticky at the top of this forum about what to do/use/read to make coding as easy and efficient as possible. If you're already proficient with JASS, simply use the JassHelper manual to browse through what's available in vJass.

Yes... I know how to vJASS. I use T32 and TU because they are easy to use and is awesome.

I find CTL32 kinda complicated, but giving it a try may help me find it more better or not.
 

Nestharus

o-o
Reaction score
84
Eh, CTL32 and Timer Tools are more complex because they remove the overhead of the method call and have more types of timers =). If you want a combination of optimum performance and ease of use, T32 and TimerUtils are a good way to go. If you are going for pure optimal performance, then you want Timer Tools, CTL32, and TimerUtils =).


CTL32 does a constant merge like T32 with some extra things for pausing the timer when there are no instances and removing triggerconditions when there are no instances on a struct. The CT32 option on it allows you to pass in your own instances (useful for units with unit indexing). You have to loop through your own thing and CT32 never pauses.


Timer Tools has a variety of tools. The main tool is for dynamic times. Each timeout represents a timer queue. Timeouts are modified slightly so that they share the same timer queues and first tick is modified slightly so that it merges with timers on a given queue (each node on the timer queue represents a cluster of timers). Yea, it's a whole bunch of craziness, but it makes it so that there are less timers in the map expiring at once, meaning increased map performance.

Timer Tools also has a tool that is just a timer queue (1 timer queue for the whole struct), meaning that you don't need the hashtable lookup to find which timer queue expired.

The final tool specializes in 1 shot timer. It is a timer queue with 0 merges (there is a bit of overhead for merging). So if you don't expect timers to ever merge, then the last one is pretty good.

If none of the 5 tools above suit your needs, then you move to TimerUtils by vex =).



Some people think that there is no way in hell Timer Tools could ever match natives with hashtable lookups, but it's performance was proven on a thread in the JASS Help section while I was developing it : P.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top