Code Monkey home page Code Monkey logo

gmsv_tickrate's Introduction

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

gmsv_tickrate's People

Contributors

bewflast avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.