https://github.com/sapd/gm_performance
Performance measurement for Garrysmod Server
https://github.com/sapd/gm_performance
Last synced: 9 months ago
JSON representation
Performance measurement for Garrysmod Server
- Host: GitHub
- URL: https://github.com/sapd/gm_performance
- Owner: Sapd
- Created: 2015-09-06T17:07:28.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-17T09:41:24.000Z (over 10 years ago)
- Last Synced: 2025-03-02T11:25:15.434Z (over 1 year ago)
- Language: C++
- Size: 262 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gm_performance
## Usage
```
require("performance")
performance.getFPS() -- returns fps as a double
performance.getDiff() -- returns time between one frame in microseconds
performance.getDiffMS() -- in milliseconds
```
## Benchmarking:
```
-- Starts measuring performance every 200ms and writes it into a csv file in garrysmod root folder
performance.startBenchmark()
-- Stops it
performance.stopBenchmark()
```
You can open the csv later with Microsoft Excel or Libreoffice Calc and generate Diagrams out of it.
