- Home /
Question by
esmailjamshidiasl · Aug 07, 2017 at 06:13 AM ·
networkingthreadingtcpclient
How to avoid freezing UI in Tcp Socket Connection?
Hello, I am making 2player online game.I have VPS and server code running on it.when i am test game in localhost it works good but when i use VPS , UI freezes for 1-2 seconds every 10 second.i used multi threading (in corrct way) but loading data from vps still freeze UI.(Note: my VPS speed is high and it has good performence in other apps).so: How to avoid freezing UI in Tcp Socket Connection?
Comment
hi, i used multi threading (in corrct way), not sure about how the correct way is done because freezing it's mean something wrong there !!
Your answer
![](https://koobas.hobune.stream/wayback/20220612132128im_/https://answers.unity.com/themes/thub/images/avi.jpg)