Skip to content

Get current server's performance stats from tickrate without nerding with time's functions

Notifications You must be signed in to change notification settings

bewflast/gmsv_tickrate

Repository files navigation

gmsv_tickrate

Get current server's performance stats from tickrate without fucking with time's functions

RU

Запрос на добавление сервер-сайд функции engine.ServerFrameTime() был помечен, как "не планируется" (кто бы сомневался), поэтому я решил написать маленький модуль, который предоставляет доступ к фрейм тайму сервера и позволяет обнаружить просадки тикрейта без использования функций, связанных со временем.


Скачивание

Скачать бинарники можно из артефактов (бинарники, собирающиеся через GitHub actions), либо из последнего релиза


Сборка

Проект использует gm_common как основу для бинарных модулей и premake как генератор файлов систем сборок. Этапы сборки подробно расписаны вот здесь.


Использование

require("tickrate") - подгрузить модуль

engine.HostFrameTime() - получить время между тиками

util.GetServerTickrate() - получить текущий тикрейт

[В РАЗРАБОТКЕ!!!] util.SetServerTickrate(num) - изменить тикрейт




ENG

Feature request about FrameTime()'s server-side Lua function static value and that engine.ServerFrameTime() is only client-side was marked as "Not planned" (wow) so i decided to write tiny module that will give access to the server's frame time and it will help detect tickrate's decreasing.


Downloading

You can download binaries from last's run artifacts or from latest release


Building

Project requires gm_common and premake All building steps for Windows and Linux platforms you can find here


Usage

require("tickrate") - load module

engine.HostFrameTime() - get server's frametime

util.GetServerTickrate() - get server's tickrate

[COMING SOON!!!] util.SetServerTickrate(num) - change tickrate to num value