Hello guys. I'm studdyng to make a netowkr based game that will use UDP sockets. The server will be authoritative and will handle all the physics.
I'm planning the server to broadcast at 10hz, the physics will run in constant time-step of something like ~33ms or so (3 physics step for each broadcast step) this will run on a single thread.
To receive the clients information I was thinking to have all the sockets at NOblokingMode and when some socket has some information it puts the information on a queue that will be used at the nest physics simulation. This appear to be a good aproach? (I know about the UDP and the security layer I will need to implement above it).
My main question is: what is the size of the kernels internal socket queue? It is enought to store some data that can come in between each socket polling?
Thanks.
Gregory.