Credit to infiSTAR who originally found this, building on this i've converted all mission file scripts on my server now to use uisleep instead of sleep, i'm noticing performance improvements. I'm now gradually converting any sleep in server files to uisleep.
What it does is add sleep from real time instead of diag tick time. If you have a very busy server with a lot of players, diag tick time can be slowed down and therefore delay things further, by using uisleep instead, this should cut down on delays.
For example, when purchasing a vehicle there's a sleep, if your server has a lot of players on, a lot of scripts and a lot of bases, a slowdown will delay the appearance of purchased vehicles as there's a normal sleep command in there. I'm testing replacing some server files sleep with uisleep and will report on my findings.
Question
MGT
Credit to infiSTAR who originally found this, building on this i've converted all mission file scripts on my server now to use uisleep instead of sleep, i'm noticing performance improvements. I'm now gradually converting any sleep in server files to uisleep.
https://community.bistudio.com/wiki/uiSleep
What it does is add sleep from real time instead of diag tick time. If you have a very busy server with a lot of players, diag tick time can be slowed down and therefore delay things further, by using uisleep instead, this should cut down on delays.
For example, when purchasing a vehicle there's a sleep, if your server has a lot of players on, a lot of scripts and a lot of bases, a slowdown will delay the appearance of purchased vehicles as there's a normal sleep command in there. I'm testing replacing some server files sleep with uisleep and will report on my findings.
Link to comment
Share on other sites
11 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now