Posts

Post not yet marked as solved
0 Replies
503 Views
I'm using multipeer connectivity to synchronize between several devices connected through Wifi the movement of nodes in a 3D SceneKit environnement. The node movement is calculated on the master device and sent to the ***** devices which then set the node to the position received. The movement is sent via the renderer loop of the SceneView of the master, and through a data stream opened with each ***** and managed with the MultipeerConnectivity framework. The video here - https://stackoverflow.com/questions/63853707/multipeer-connectivity-data-stream-issue-over-wifi shows the result, and the issue which is the jittering of the ball on the ***** (right) due to a regular pause every 0.6-0.7 second in the reception of the data through the stream. The counter on the upper left shows that no packet is lost. There is also no issue with the integrity of the data received. This very regular pause on the slaves is not present in the simulator but only when it runs on real devices, and whatever the devices (iPhone or Ipad, old or recent). Is there a way to find out what can cause this regular pause on the slaves devices ? Would it make sense to have the input stream on the slaves executed on a dedicated thread/runloop instead of the runloop of the main thread ?
Posted Last updated
.