Home/Q&A/Does the remote desktop get laggy while Xcode is building?

Does the remote desktop get laggy while Xcode is building?

Updated · airankrush

Direct answer

It depends. A full build uses nearly all processor cores, and the remote-control software captures and encodes the screen on the same machine; when it cannot get resources, the picture becomes sluggish. This is load on the remote side, not your network getting worse.

Basis

  • Build tools such as Xcode and Gradle compile in parallel across the available cores by default, precisely to use the processor fully. The remote-control software has to keep capturing the screen and compressing it into a video stream, which also needs computing resources. A drop in frame rate while both are running is normal.
  • Memory causes obvious stutter more readily than the processor does. If a simulator, another IDE and a pile of browser tabs are open during a build, the system starts swapping heavily to disk once memory runs out. At that point the whole machine responds slowly, not just the picture, and the build itself is slowed down too.
  • How to tell: open Activity Monitor on the remote Mac and see whether the memory pressure graph turns yellow or red, and whether the processor stays fully loaded for long. A full processor with memory to spare is normal during a build, and you just wait for it to finish. High memory pressure means closing software or moving to a larger-memory configuration.
  • Disconnecting the remote session does not stop programs on the remote side. Once the build has started you are free to disconnect and do something else, then reconnect later to see the result. The build does not stop because you disconnected.

Information as of .

Boundaries: when the answer is different

If the picture is still sluggish after the build finishes, the build was not the cause. Investigate the network and the remote client, or compare with the other connection method and then contact support. Also, the broadband at a deployment site may be shared with other machines, and we cannot completely rule out the effect of line load on the picture. We have no measured data on how the picture behaves during builds on different configurations. When choosing a configuration, err on the side of more memory; see the plans page for pricing and availability.

How to do it

  1. Before building, close simulators, IDEs and browser tabs you do not need.
  2. Run the build in Terminal and write its output to a log file so you can read it afterward.
  3. After the build starts, disconnect the remote session, or put the remote window aside and leave it alone.
  4. Reconnect after a while and read the end of the log to confirm success or find the error.
  5. If memory pressure is often high, consider upgrading to a larger-memory configuration.

Use case

This question belongs to the use case: iOS without a Mac: a remote Mac mini can build, sign and upload, but not debug on a real device

Other questions in the same use case:

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All Q&A