vgstation13
vgstation13 copied to clipboard
Stoplag Update
inspired by https://github.com/yogstation13/yogstation-2017-/pull/3010
What this does
- Replaces a
round
withceiling
- Sets a delay of at least one tick in stoplag
- parameter determines delay, can replace sleeps where they're used for high workload
- moved stoplag to tick, along with other tick-related macros
- changed some sleeps into stoplag that shouldn't make any impact
- will test and compare different things
Why it's good
- Less lag
:cl:
- tweak: Made an attempt to reduce some lag
"Hopefully less lag"? Got some before/after numbers? The downdoot is here because this doesn't seem throughly tested by you. Just more code copying...
"Hopefully less lag"? Got some before/after numbers? The downdoot is here because this doesn't seem throughly tested by you. Just more code copying...
I don't have my own server so I can't test it and it can be reverted if it causes problems. Yogstation has been using it for a few years without any issues. tg always has something new
Can't you test it on localhost and make some lag machines for stress testing?
@ThatLing Is it cool if I port this to vg? Thanks
Less lag according to Yog
changed some sleeps into stoplag that shouldn't make any impact
Hopefully less lag
tweak: Made an attempt to reduce some lag
I feel eternal agony
@adacovsk I just ported it from /tg/
@MrStonedOne is it cool if I port this to vg? Thanks
local coder has absolutely no idea what he is doing
local coder has absolutely no idea what he is doing
That's every coder.
local coder has absolutely no idea what he is doing
https://github.com/vgstation-coders/vgstation13/pull/15165