- Joined
- Mar 3, 2006
- Messages
- 1,564
What is the difference between them, if any ?
When and how do I use them ?
(detailed answer please ... Thanks in advance)
When and how do I use them ?
(detailed answer please ... Thanks in advance)
I felt the need to make a double post because of some very mind-blowing results I got while benchmarking this against TimerUtils.
I used this spell:
http://www.hiveworkshop.com/forums/spells-569/epicenter-v2-1-0-0-a-204120/
During the tests, I removed the special effect to maximize FPS.
Code:10 casts: TimerUtils: 2 FPS Drop TimerTools: 1 FPS Drop 20 casts: TimerUtils: 9-11 FPS Drop TimerTools: 2-4 FPS Drop 60 casts: TimerUtils: 24-28 FPS Drop TimerTools: 6-8 FPS Drop 150 casts: TimerUtils: 50-52 FPS Drop TimerTools: 12-15 FPS Drop Ultimate stress test: With 1000 casts and special effects enabled, TimerUtils died. TimerTools on the other hand was able to run at 5 FPS. Yes, with 2500 special effects per second, TimerTools was incredibly reliable.
Good day to you haters.
And I didn't optimize the script with an optimizer ;o
In your expert glance, please advise.So, which one is simplier and better for me to implement?
I hope this answers your question.
They're used for pretty much the same thing.
Timer tools timers use a special merging algorithm. When two timers merge, they both expire on the same timer. The first tick accuracy is based on the size of the timer's timeout.
The larger the timeout, the more inaccurate the first tick can be. The tick only becomes inaccurate if it merges with another timer.
Generally i would say, that as long as you doesn't have any hardcore systems in your map, you would propably be better off using TimerUtils, since it is so easy to use and implement.
call TimerStart(NewTimerEx(anyIntegerYouWantToAttachToTheTimer), TIMER_TIMOUT, IS_IT_PERIOD?, function theFunctionThatWillExecuteWhenItExpires)
How do I implement and use it, then ?