I'm working on an app with which speed is absolutely crucial. We use a UDP connection over a dedicated wifi (no public internet, same room wifi).
In general a wifi connection should be able to deliver a 512byte package within less than 1ms. For some reason recvfrom in our case is taking 2.5-4.5ms until we get the package.
I've done all the digging and research to optimize the connection settings as far as possible. (thresholds for receiving etc.)
Does anyone experience similar issues or has an idea how to address this? I realize that as a smartphone there is a lot going on at the network level, but in this case we even tried Airplane-Mode and still had the same issue.
I'd switch to RAW sockets, but Apple is not allowing that - so we need to work around that.
I'm thankful for any ideas!
Best, Ralph