YSI timers - YSI hooks - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: YSI timers - YSI hooks (
/showthread.php?tid=651403)
YSI timers - YSI hooks -
m4karow - 19.03.2018
Hey. I need some advice for improving my gamemode.
Question 1:
I'm currently using the default settimer function. Should i change to YSI's timer include?
If i know right YSI's much accurate... so, is it worth it to change? I'm working with a few, but very fast timers (for animation callbacks)
Question 2:
Similar like the first one, but is it worth to change from ALS hooking to YSI hook method? What is the difference between this two method?
Thanks in advance
Re: YSI timers - YSI hooks -
Gammix - 20.03.2018
1) Yes, if you are already using YSI than change it to y_timers. They are accurate than samp timer. There are also plugins available for timerfix, like fixes2, timerfix etc.
2) There is no difference in terms of their job.
Re: YSI timers - YSI hooks -
iKarim - 20.03.2018
I'll add to Gammix's answer for your second question, I would say ALS looks ugly so y_hooks is prefered, the difference is (as far as I know), ALS is done during compilation while y_hooks works during run time (I may be wrong regarding y_hooks though)
Re: YSI timers - YSI hooks -
m4karow - 20.03.2018
thanks for the answers guys