Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Threaded Mode
Timers inaccuracy fix?
Kampott
Little Clucker
Posts: 45
Threads: 14
Joined: Sep 2017
Reputation:
0
#1
19.12.2017, 13:55
I need timers in pawno to be very accurate, are there any way to fix their inaccuracy using a plugin/include?
Find
Reply
RIDE2DAY
Huge Clucker
Posts: 212
Threads: 14
Joined: Jul 2015
Reputation:
0
#2
19.12.2017, 13:58
Give a try to this plugin, it fixes many things:
https://sampforum.blast.hk/showthread.php?tid=571505
You have this standalone plugin also, but you must compile it:
https://github.com/udan11/samp-plugin-timerfix
On the other hand, with fixes like those avoid running timers which execute weighty code at the same time. Stay away from this:
PHP код:
SetTimer
(
"FuncOne"
,
1000
,
true
);
SetTimer
(
"FuncTwo"
,
1000
,
true
);
When running weighty code at once the server gets into a "sleep" state, that might cause desync between players since the script is single thread.
Find
Reply
jasperschellekens
High-roller
Posts: 1,168
Threads: 60
Joined: Dec 2016
Reputation:
0
#3
19.12.2017, 16:36
Timers are really inaccurate, try using YSI_Timer for more accurate timers
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 1 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help