Cemu icon indicating copy to clipboard operation
Cemu copied to clipboard

MacOS: Using discrete GPU?

Open palmerj opened this issue 3 years ago • 7 comments

Hi I'm testing out BOTW on my older Macbook pro 15" 2019 with latest version from the CI 8a0fe21 on MacOS 12.6. The Macbook has an 6-Core Intel i7-9750H CPU @ 2.60GHz, burst 4.50 GHz with Intel UHD Graphics 630, and a Radeon Pro 555X GPU.

When I configure Cemu to run BOTW using Vulkan and the Radeon Pro 555X GPU.

Screen Shot 2022-10-05 at 11 17 10 am

I get a terrible framerate (about 5FPS) and the system (iStats Menu which reliable shows me when the GPU switches) seems to report that I'm not using the AMD GPU, rather than intel iGPU.

BOTW-GPU

Two Questions:

  1. Is it really not using the AMD GPU
  2. Can I expect the framework to improve in future versions, or is this Macbook pro too old?

Here's my debug output if this helps. https://gist.github.com/palmerj/e77a238c147b61e013d0495613c1719c

Thanks heaps

P.S thanks for making this OS and getting MacOS support going!

palmerj avatar Oct 05 '22 09:10 palmerj

Currently there is a large cpu performance hit when using macOS, currently limiting fps to 5-15fps regardless of cpu or gpu. It is being currently being looked into. Your system should be capable of more. As for if it is using the amd gpu, I assume it is but as stated above it doesn't current really affect performance.

Tillsunset avatar Oct 05 '22 09:10 Tillsunset

I just noticed you have enabled "Async shader compiler". That feature in unsupported on the igpu and will crash Cemu if enabled. So I'm assuming the AMD gpu is being used, which in this situation has the feature supported and presumingly doesn't crash with it enabled.

Tillsunset avatar Oct 05 '22 10:10 Tillsunset

Thanks for the info @Tillsunset. I'm still pretty dubious the AMD GPU is getting used, but seems like large issues need to be solved first.

Yes you are correct I should have disabled "Async shader compiler". However, it doesn't crash the app as the code catches the issue:

Screen Shot 2022-10-05 at 11 17 34 am

This popped up for both the IGPU and the AMD selected option.

I've now disabled the option.

palmerj avatar Oct 05 '22 10:10 palmerj

That feature in unsupported on the igpu

This is more of an issue with the fact that MoltenVK does not support the extension used by async shader compilation, so it doesn't matter which GPU is being used.

emiyl avatar Oct 05 '22 18:10 emiyl

Currently there is a large cpu performance hit when using macOS, currently limiting fps to 5-15fps regardless of cpu or gpu. It is being currently being looked into. Your system should be capable of more. As for if it is using the amd gpu, I assume it is but as stated above it doesn't current really affect performance.

Could it be due to moltenVK having to do a significant amount of conversion on the CPU, rather than the GPU?

lbibass avatar Oct 07 '22 18:10 lbibass

I'm sure the conversion isn't helping performance, but MoltenVK performs very well in other applications, and shouldn't cause performance to degrade to this extent.

emiyl avatar Oct 07 '22 18:10 emiyl

That makes sense. Dolphin has noticed a small increase in performance from a native Metal renderer, but MoltenVK generally performs well enough in most cases.

lbibass avatar Oct 07 '22 19:10 lbibass

Closing this since the original question has been answered.

Exzap avatar Dec 29 '22 03:12 Exzap