OnPlayerInput Performance

When there are about 30+players on the server, will this hook affect performance?

Mostly yes, but it all depends on what will be done in this hook.

oESHrLEd4Ji1r5d.jpg ArtiIOMI

Mostly yes, but it all depends on what will be done in this hook.

I just use the middle mouse button to open a UI, which has a significant impact on performance?

dream

I just use the middle mouse button to open a UI, which has a significant impact on performance?

Wouldn't be better to instead of hook use command, and then just bind the command to middle mouse button?
2771DC37SHRGPe1.png zeeuss
Wouldn't be better to instead of hook use command, and then just bind the command to middle mouse button?

For lazy and novice players, it's troublesome to have them bind a button
So I want to know if this has a significant impact on performance

dream

For lazy and novice players, it's troublesome to have them bind a button
So I want to know if this has a significant impact on performance

Unfortunately you'll have to test it yourself, just add a delay in the hook so they don't spam the key.

oESHrLEd4Ji1r5d.jpg ArtiIOMI

Unfortunately you'll have to test it yourself, just add a delay in the hook so they don't spam the key.

For players who frequently use it, I have found that it only occupies some network space and the server FPS has not decreased. Therefore, when players are walking, running, and other operations unrelated to the middle mouse button, will it cause the code to frequently detect whether it is the middle mouse button?

dream

For players who frequently use it, I have found that it only occupies some network space and the server FPS has not decreased. Therefore, when players are walking, running, and other operations unrelated to the middle mouse button, will it cause the code to frequently detect whether it is the middle mouse button?

Well the hook gets called whenever any input is registered so ye..

Okay, thank you all