SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 08/05/2013, 07:11 PM   #11
silvohex
Guest
 
Posts: n/a
Default Re: Timerfix plugin - A fix for every ttime related issue

Quote:
Originally Posted by Dan.. View Post
faster, uses less resources
Proof, benchmark...?
  Reply With Quote
Old 08/05/2013, 08:16 PM   #12
Yiin
Banned
 
Join Date: Aug 2012
Location: Lithuania
Posts: 145
Reputation: 20
Default Re: Timerfix plugin - A fix for every ttime related issue

i love your plugins
Yiin is offline   Reply With Quote
Old 08/05/2013, 10:28 PM   #13
leonardo1434
High-roller
 
leonardo1434's Avatar
 
Join Date: Mar 2012
Posts: 1,667
Reputation: 179
Default Re: Timerfix plugin - A fix for every ttime related issue

This plugin is similar to ******'s plugin(almost equal).Another thing that i noticed after reading a bit your code is that it doesn't cover if the amount of created timers reaches the max, which will lead to buffer overflow.


Anyway, i would be glad to see a benchmark.
__________________
c++
leonardo1434 is offline   Reply With Quote
Old 09/05/2013, 11:08 AM   #14
Dan..
Gangsta
 
Join Date: Jun 2012
Location: Galati, Romania
Posts: 521
Reputation: 122
Default Re: Timerfix plugin - A fix for every ttime related issue

Quote:
Originally Posted by silvohex View Post
Proof, benchmark...?
It was proven thousands of times that C++ is faster than Pawn. You are free to do your benchmarks.

Quote:
Originally Posted by leonardo1434 View Post
This plugin is similar to ******'s plugin(almost equal).Another thing that i noticed after reading a bit your code is that it doesn't cover if the amount of created timers reaches the max, which will lead to buffer overflow.


Anyway, i would be glad to see a benchmark.
As long as there is memory, new timers can be created. When there is no memory left, your server will crash no matter what (if you have or not this plugin).
__________________
I'm no longer visiting these forums. BlueG, you can suck my dick.
Dan.. is offline   Reply With Quote
Old 09/05/2013, 11:13 AM   #15
RajatPawar
High-roller
 
RajatPawar's Avatar
 
Join Date: Aug 2011
Location: ヽ༼ຈل͜ຈ༽ノ
Posts: 2,177
Reputation: 320
Default Re: Timerfix plugin - A fix for every ttime related issue

I went through the documentation. I was confused between two params, which are interval and delay. Could you explain what difference is there, between them?
Also, a nice job, though I don't have much use for this.
RajatPawar is offline   Reply With Quote
Old 09/05/2013, 11:33 AM   #16
zombieking
Huge Clucker
 
Join Date: Jun 2011
Posts: 435
Reputation: 33
Default Re: Timerfix plugin - A fix for every ttime related issue

Interval (time), the duration between two events.
Delay - The act of delaying; postponement; more commonly referred to as lag (at least here)
zombieking is offline   Reply With Quote
Old 09/05/2013, 11:35 AM   #17
Pooh7
Huge Clucker
 
Pooh7's Avatar
 
Join Date: Aug 2010
Location: Serbia
Posts: 367
Reputation: 23
Default Re: Timerfix plugin - A fix for every ttime related issue

Quote:
Originally Posted by Rajat_Pawar View Post
I went through the documentation. I was confused between two params, which are interval and delay. Could you explain what difference is there, between them?
Also, a nice job, though I don't have much use for this.
Probably the same as ******'s plugin: interval is repeating time (i.e. every 1000ms), and delay is time before the specified function starts its execution (i.e. if interval is 1000ms and delay is 5000ms, the server will wait 5 seconds and then start executing the specified function every 1 second).
__________________
Pooh7 is offline   Reply With Quote
Old 09/05/2013, 11:43 AM   #18
Dan..
Gangsta
 
Join Date: Jun 2012
Location: Galati, Romania
Posts: 521
Reputation: 122
Default Re: Timerfix plugin - A fix for every ttime related issue

Quote:
Originally Posted by Rajat_Pawar View Post
I went through the documentation. I was confused between two params, which are interval and delay. Could you explain what difference is there, between them?
Also, a nice job, though I don't have much use for this.
Here is a little drawing that might help you:

* the black box is timer's function
__________________
I'm no longer visiting these forums. BlueG, you can suck my dick.
Dan.. is offline   Reply With Quote
Old 09/05/2013, 12:25 PM   #19
RajatPawar
High-roller
 
RajatPawar's Avatar
 
Join Date: Aug 2011
Location: ヽ༼ຈل͜ຈ༽ノ
Posts: 2,177
Reputation: 320
Default Re: Timerfix plugin - A fix for every ttime related issue

Quote:
Originally Posted by zombieking View Post
Interval (time), the duration between two events.
Delay - The act of delaying; postponement; more commonly referred to as lag (at least here)
Aww, thanks for the dictionary definition!
Quote:
Originally Posted by Pooh7 View Post
Probably the same as ******'s plugin: interval is repeating time (i.e. every 1000ms), and delay is time before the specified function starts its execution (i.e. if interval is 1000ms and delay is 5000ms, the server will wait 5 seconds and then start executing the specified function every 1 second).
Thanks, I get it.
Quote:
Originally Posted by Dan.. View Post
Here is a little drawing that might help you:

* the black box is timer's function
Thanks, it's good. I don't know if it matters to you, but some reputation, you have earned! Cheers. Also, could you mind PMing me and sharing a few pointers with me about plugins? Writing them? Seeing that you are a plugin guy! (No, I don't want a link to the plugin tutorial.)
RajatPawar is offline   Reply With Quote
Old 09/05/2013, 12:30 PM   #20
Luis-
High-roller
 
Luis-'s Avatar
 
Join Date: Jan 2010
Location: England
Posts: 3,928
Reputation: 401
Default Re: Timerfix plugin - A fix for every ttime related issue

What would I do if I was too repeat the timer? I see nothing related to repeating.
__________________


| Home | Server | Forum | Trailer |
Luis- is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Idea to avoid all this rep related issue matty1415 General 38 25/04/2013 04:03 AM
Streamer Plugin Issue [rG]Cold Scripting Help 2 20/12/2012 05:23 PM
[PROBLEM] Probably related to audio plugin blackwave Help Archive 3 30/12/2010 07:05 PM
Win7 Related Issue Johny_James Everything and Nothing 13 11/12/2010 02:41 PM
Server error...Plugin compilation related. XPlatform Plugin Development 1 15/11/2009 12:28 PM


All times are GMT. The time now is 03:58 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.