Multithreading or Asynchronous for Python GTK/Socket Server/Data Writing -
i'm new python, socket, multithreading , asynchronous programming. i'm wondering best approach implement server receives , sends data between client such unity3d game , plot out these data in gui using python gtk while writing these data text file in real time. make things bit more complicated, data comes eyetracker receives gaze data @ speed of 300 ms. given these requirements, better use threads or async? moreover, should creating udp or tcp server exchange data?
if more information needed, please let me know. thanks.
use tcp. udp used things video/audio streaming. that's not case here.
as async
vs thread
in unity, suggest go thread. easier , guaranteed network code not slowing unity down in way.
unity3d game , plot out these data in gui using python gtk
if receiving data eye tracker, should able plot data unity. if requirement use python still possible make server/cleint connection between unity , python app.
Comments
Post a Comment