libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
10.06k stars 1.81k forks source link

When changing brightness or volume with FN-Keys on a Mac with activated shaders, the emulation slows down drastically #14936

Open Sethur opened 1 year ago

Sethur commented 1 year ago

Description

When SLANG shaders are activated using the Metal video driver and I am using the function keys on an Intel Mac with Intel HD graphics to change the volume/brightness, etc., which pops up an OSD as shown in the image below, emulation slows down drastically from 60 fps to less than 20 fps and severe audio artifacts can be heard until the OSD disappears.

Screenshot_OSD2

Edit: I have tested this with the gl, vulkan and metal video drivers, and the issue only occurs with the metal driver.

Steps to reproduce the bug

  1. Start a recent nightly build of RetroArch_Metal with default settings on an Intel Mac with Intel HD graphics
  2. Run any SNES or GBA ROM on any suitable core
  3. Press F3 to observe frame rate
  4. Turn on shaders, e.g. ScaleFx
  5. Press volume up/down FN-key and observe drop in frame rate and audio crackling.

Version/Commit

RetroArch: Mac OS Metal Nightly from Jan 26, 2023

Environment information

Mac OS Version: 12.6.2 Monterey Hardware: Intel CPU Mac with Intel HD Graphics 515

Sethur commented 1 year ago

Update: I just tested this with the gl and vulkan video drivers as well, where this issue did no occur. This only happens with the metal video driver.