Page 1 of 1

Network question dump

Posted: Mon Jul 15, 2019 9:36 pm
by Personwithhat2
Bunch of stuff I'm still investigating, but here's some more questions regarding network.....

Why do RMI's have such a iffy delay?
I run a client/server on the same computer and I'm getting latency of 100-120ms for no apparent reason.
No frame overshoots, no excessive thread sleeps/etc, just large latency between RMI 'sent' and RMI received.
And this is after level loading (which kills frame hard and delays network synchronization by a lot :) )

How should I synchronize input?
Currently simulating input on Server using RMI's.
Client triggers input, copy of key press sent to Server.
Every frame also updates the combined mouse delta for yaw/pitch and sends to server via RMI, to preserve order with rest of input.

Toggling bit flags is nonsensical since order matters.
If I press A and release in 1 frame, I'd expect the same to be run on the server, not cancel itself out/etc.

Re: Network question dump

Posted: Fri Dec 18, 2020 10:50 am
by RoyRodriquez
RMI is basically blazing fast. If your machine is decent, If you're running on a machine with tons of processes taking memory hen of course it will be slow!

Re: Network question dump

Posted: Tue Mar 09, 2021 9:03 pm
by Personwithhat2
My machine is def. quite fast .-.