UnitySocketIO icon indicating copy to clipboard operation
UnitySocketIO copied to clipboard

Too high processor usage

Open valyard opened this issue 12 years ago • 2 comments

I narrowed down the problem to the thread using dequeuOutboundMessages. It eats more than 100% of a cpu core. Just this thread alone connected to a Node.js server which sends a message once in a while. Once a minute or less.

valyard avatar Aug 14 '13 22:08 valyard

Confirm that unity client CPU usage is very high! Could you fix it? Thanks! http://forum.unity3d.com/threads/204692-Can-someone-please-update-UnitySocketIO

static-x avatar Oct 29 '13 14:10 static-x

i had this problem, but solved.

protected void dequeuOutboundMessages() { while (this.outboundQueue != null)

change the monobehavior update method instad of while loop.

skean13 avatar Jun 19 '16 16:06 skean13