Hello. I am currently developing an app where I require quite extensive exchange of data between a python application and the Unity game engine. I made a test implementation with Flask-SocketIO and this socket.io unity client. The setup of both was pretty easy and the connection worked well. However, now the problem. I wanted to see how quickly and effectively the data exchange works and wrote an application that emits a message every 0.1 seconds from the unity client. Then I noticed that a message is only emitted once every 2 seconds. I have tried around and even when I use a key-stroke event to emit the message to the server, it only works every 2 seconds. Moreover the unity application gets really slow then.
I am working on version 4.3.2 of Flask-SocketIO. This was neccessary to connect with the Unity client.
Question
Hello. I am currently developing an app where I require quite extensive exchange of data between a python application and the Unity game engine. I made a test implementation with Flask-SocketIO and this socket.io unity client. The setup of both was pretty easy and the connection worked well. However, now the problem. I wanted to see how quickly and effectively the data exchange works and wrote an application that emits a message every 0.1 seconds from the unity client. Then I noticed that a message is only emitted once every 2 seconds. I have tried around and even when I use a key-stroke event to emit the message to the server, it only works every 2 seconds. Moreover the unity application gets really slow then.
I am working on version 4.3.2 of Flask-SocketIO. This was neccessary to connect with the Unity client.
Server code:
Client code: