Original Post
Hello!
As far as I know server of fps game should handle all game mechanics and updates and send snapshots of changes every specified portion of time. I seem to understand that concept well.
Problem comes with input in my case.
Basic movement is no big deal, if player hits UP key i send packet that user is currently moving top and when he releases I send he stopped moving. In the meantime I also run the same code for moving on user setup just to minimal lag and server keeps me on track all the time
However problems happen with camera and looking around with mouse. It's very important for shooting obviously so I need to have that rotation float of my player always up-to-date on server. However sending float to server everytime something happened might be pretty consuming. What should I do?
As far as I know server of fps game should handle all game mechanics and updates and send snapshots of changes every specified portion of time. I seem to understand that concept well.
Problem comes with input in my case.
Basic movement is no big deal, if player hits UP key i send packet that user is currently moving top and when he releases I send he stopped moving. In the meantime I also run the same code for moving on user setup just to minimal lag and server keeps me on track all the time
However problems happen with camera and looking around with mouse. It's very important for shooting obviously so I need to have that rotation float of my player always up-to-date on server. However sending float to server everytime something happened might be pretty consuming. What should I do?