100% CPU Server (Unity Transport)

Hello,

I’m using Unity Transport for a client-server application but I’m worried because the server is taking 100% of one of the CPUs, no matter if there are connected clients or not.

My code is based on the sample code from the official documentation: Workflow: Creating a minimal client and server | Unity Transport | 0.3.1-preview.4 (I’m not using jobs btw).

Is it possible to solve it or it?

Application.targetFramerate = 30;

3 Likes

What does your profiler say?

Wow, simple, elegant an it makes all sense.

Thank you, it’s solved now.