srcdslab / sm-plugin-LagReducer

Natives to reduce server load of heavy plugins
1 stars 1 forks source link

Issue: Plugin is more expensive than default SM native #3

Open Rushaway opened 2 weeks ago

Rushaway commented 2 weeks ago

After making multiples bench, it seem this plugin get more expensive by creating forwards based on gameframe instead of hooking OnGameFrame (default SM native) and do your thing in it.

In conclusion this plugin should be deprecated and archived. External plugins relaying on this should use OnGameFrame instead.

maxime1907 commented 2 weeks ago

the purpose of this plugin is to use ongameframe and process a specific number of clients per frame to control the number of Y clients times X plugins that optimizes things like PlayerVisibility which takes a lot of CPU load

maxime1907 commented 2 weeks ago

yes it takes more that ongameframe but you should compare instead if we loose more by putting back ongameframe everywhere which will process X plugins times 64 clients

You could experiment on big plugins like BossHUD, PlayerVisibility etc