简体   繁体   English

模拟器中的Xcode屏幕更新错误

[英]Xcode screen update error in simulator

Since I updated my Xcode to 9 (now I have 9.2) the simulator is acting weird. 自从我将Xcode更新为9(现在我有9.2)以来,模拟器表现得很奇怪。 It's very slow and the main problem is that every time it has to update the screen (when something trigger, when some view moves, etc) it doesn't update to the last frame. 这非常慢,主要问题在于,每次必须更新屏幕时(触发某些事件,移动某些视图时等),它都不会更新到最后一帧。 For example: if I have a tableview and it updates the new results, they won't be showed until I make a new movement (like dragging the tableview), then the new results will be showed. 例如:如果我有一个表格视图,并且它更新了新结果,则在我进行新的移动(例如拖动表格视图)之前,将不会显示它们,然后将显示新结果。

It happens with every device, and the same app runs perfectly in a real device. 它发生在每台设备上,并且同一应用程序可以在真实设备上完美运行。

I have Sierra 10.12.6 if it helps. 如果有帮助,我会使用Sierra 10.12.6。

If you have an Intel HD 3000 GPU (or similar) this can happen. 如果您有Intel HD 3000 GPU(或类似产品),则可能会发生这种情况。 It is a GPU driver bug and unfortunately I don't have a workaround for you at this time. 这是一个GPU驱动程序错误,很遗憾,目前我没有针对您的解决方法。

Using Simulator on a Metal-capable Mac (or switching to the discrete GPU if your machine has one) should work around it. 在支持Metal的Mac上使用Simulator(如果您的计算机有一个,则切换到独立的GPU)应该可以解决。

我也使用2011年末配备Intel HD 3000显卡的13英寸MacBook Pro遇到了这个问题。我查看了https://forums.developer.apple.com/thread/88446中描述的相关问题的解决方案并以为我可以对FramebufferEmulationHint的其他值进行试验。值2似乎对我有用:

defaults write com.apple.CoreSimulator.IndigoFramebufferServices FramebufferEmulationHint 2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM