Вопрос [GS] Delay jitter lag spikes

Начинающий
Начинающий
Статус
Оффлайн
Регистрация
26 Сен 2023
Сообщения
6
Реакции
1
on local server it works fine without lagging but on community or other servers i get random lag spikes every second
 
if globals.tickcount() % ui.get(builder[state].yaw_value_speed) == 1 then
vars.switch = not vars.switch
end


if ui.get(builder[state].yaw) == "Delayed" then
ui.set(ref.yaw,"180")
ui.set(ref.yaw_value, vars.switch and ui.get(builder[state].yaw_value_left) or ui.get(builder[state].yaw_value_right))
 
if globals.tickcount() % ui.get(builder[state].yaw_value_speed) == 1 then
wrong.
Better use

counter = 0

function(...

if (globals.choked_commands = 0) then
counter = counter + 1;
if counter % ui.get(builder[state].yaw_value_speed) == 0 then
vars.switch = not vars.switch
end
end

Also you can make custom desync jitter like that with any speed.
 
Назад
Сверху Снизу