When there are about 30+players on the server, will this hook affect performance?
OnPlayerInput Performance
Mostly yes, but it all depends on what will be done in this hook.
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?
Wouldn't be better to instead of hook use command, and then just bind the command to middle mouse button?dreamI just use the middle mouse button to open a UI, which has a significant impact on performance?
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
dreamFor 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.
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?
dreamFor 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