{"id":16161491,"url":"https://github.com/gamemann/fps-threshold","last_synced_at":"2025-03-18T22:30:41.870Z","repository":{"id":92735686,"uuid":"344648905","full_name":"gamemann/FPS-Threshold","owner":"gamemann","description":"Creates a forward for when the average server FPS goes under a threshold.","archived":false,"fork":false,"pushed_at":"2021-09-07T20:07:40.000Z","size":16,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T12:30:30.858Z","etag":null,"topics":["css","fps","performance","sourcemod","sourcemod-plugin","sourcemod-plugins","sourcepawn","threshold"],"latest_commit_sha":null,"homepage":"https://moddingcommunity.com/","language":"SourcePawn","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gamemann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-05T00:35:13.000Z","updated_at":"2024-09-30T07:27:13.000Z","dependencies_parsed_at":"2023-08-22T11:31:35.850Z","dependency_job_id":null,"html_url":"https://github.com/gamemann/FPS-Threshold","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamemann%2FFPS-Threshold","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamemann%2FFPS-Threshold/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamemann%2FFPS-Threshold/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamemann%2FFPS-Threshold/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gamemann","download_url":"https://codeload.github.com/gamemann/FPS-Threshold/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243950894,"owners_count":20373663,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","fps","performance","sourcemod","sourcemod-plugin","sourcemod-plugins","sourcepawn","threshold"],"created_at":"2024-10-10T02:25:26.083Z","updated_at":"2025-03-18T22:30:41.861Z","avatar_url":"https://github.com/gamemann.png","language":"SourcePawn","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FPS Threshold\n## Description\nA simple SourceMod plugin that calculates the server FPS every second and when it goes under a certain threshold based off of the average FPS in *x* seconds, offers a forward on detection,\n\nI've made this in hopes to mitigate damage on [Elite Hunterz](https://forum.elite-hunterz.com/)'s Zombie Hunting server from poor performance issues when multiple players are stuck inside of each other.\n\n## ConVars\n* **sm_fpsth_avgtime** - Calculate the average FPS for *x* seconds (*x* representing the CVar value).\n* **sm_fpsth_threshold** - If the average FPS goes below this average, call `FPSTH_OnDetect()` forward.\n\n## Forwards\nThis plugin comes with one forward to allow other plugins to interact. The forward may be found below.\n\n```C\n/**\n * Called when the server is caught going under the average FPS threshold.\n *\n * @param avgfps The average FPS detected.\n * @param curfps The current FPS detected.\n * \n * @return void\n */\nforward void FPSTH_OnDetect(float avgfps, int curfps);\n```\n\n## Useful Plugins\n* [Force Noblock](https://github.com/gamemann/FPS-Threshold-Noblock) - Forces Noblock on all players when average FPS goes under threshold.\n\n## Credits\n* [Christian Deacon](https://github.com/gamemann)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamemann%2Ffps-threshold","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgamemann%2Ffps-threshold","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamemann%2Ffps-threshold/lists"}