Xcode, simulator and eGPU?
I just tested running the simulator and it does seem to use the eGPU.
Edit: To be clear, without knowing what you're project is I can't say how much it will affect your work. I'm just saying it does use it.
Thanks for testing this out!
I was curious about the general use of the Sim. I'm on the 2018 Mini and simply scrolling and tapping on things are slow.
The more frustrating one is that it doesn't seem to register input consistently. There's a very long lag. Sometimes it doesn't seem to register at all.
From what I have tested so far, the simulator not taking advantages of the eGPU on my MacBook Pro.
It's actually the iGPU that is being used and I still wonder why.
On Mac OS High Sierra though, it seems to be using the eGPU ! But since Mojave it keeps using the internal GPU.
Does anyone have experience this and know how to force the use of eGPU for Xcode and Simulator ?
Hold on, I thought the simulator didn't use the GPU at all until 10.15? Or is that only for Metal (I haven't touched OpenGL in quite a while)? Will give it a test on 10.15b3 shortly.
Had to fix the sample code to get the metal in the simulator app running, but basically it's always running on the dGPU in my iMac. Tried launching from the screen attached to the eGPU, same, and tried setting the eGPU attached screen as the main screen, same. Setting simulator to 'prefer external gpu' did nothing, still using the internal GPU. It may be related to debugging and frame capture, which tends to be more complicated when running on an eGPU.
That's right ! I just don't get it...even in Catalina it's same, which should be the next OS ! They did improve the way to see which application is using which GPU in Catalina and you can clearly see that Xcode and Simulator are simply not used by the eGPU, worst it's using the Internal GPU ! I feel like developer are being left out, it's all about Video editor and Gaming when they should improve the development tools as well ! Having a slow storyboard or simulator is the worst experience.
Unless you’re on a very, very old machine even the intel GPU should be more than fast enough to handle the simulator. Running basic UI compositing on an eGPU isn’t likely to speed it up much. And the GPU selection is likely based on what’s best for debugging rather than raw performance, which is certainly more important in the simulator.
Intel GPU should be more enough to handle simulator ?! Have you try running the base Game sample Xcode project on iPad Pro 12.9-inch simulator ? Please try and let me know cause on my MacBook, it performs awfully...plus what's the point or having a discrete GPU if simulator using the internal one anyway ? And don't say that to a Mac Mini 2018 holder, even scrolling in simulator stuck..
I get the whole improvement stuff running on GPU instead of CPU but in that case why not using the eGPU if you have one them ? That's why they added the check "Prefer external GPU.." for each app, I mean if you want your eGPU to be used instead of your internal GPU why not ? And sure you should test on actual devices but not everyone has the chance to get them all with different iOS versions.....which is also the point of having simulators. I think something is wrong here, hope they will fix it soon.
Haven't tried that, but are you on catalina and are you sure it's configured to work on the simulator? (Some extra work is needed to get Metal working on the simulator, see the WWDC video / sample code). Check in activity monitor, see if it's CPU or GPU bound.