ppsspp icon indicating copy to clipboard operation
ppsspp copied to clipboard

Audio stuttering while using Vulkan

Open vsub opened this issue 11 months ago • 4 comments

Game or games this happens in

All

What area of the game

Any game

Speed seen in PPSSPP

Always full speed

GE frame capture and debug statistics

No response

Platform

Windows

Mobile device model or graphics card (GPU)

nVidia GTX 1060

PPSSPP version affected

1.17.1 x64

Last working version

No response

Graphics backend (3D API)

Vulkan

Any other notes or things you've tried

It's been a very long time since the last time I used ppsspp so I am not sure if this is normal while using vulkan(I used ppsspp for a very shot time since vulkan was added)

For some reason,when I use vulkan,I get random audio popping(especially bad when ppsspp is running in background)and when I maximize<=>restore the window or resize it,the emulation pauses for a seconds,and it looks like it is trying to reapply everything(rendering resolution,resizing the window,applying filters and so on)

When I use OpenGL,everything is buttery smooth(I though Vulkan is supposed to work better since it's set as the default renderer)

Win10 Home with the latest updates and latest video drivers i7-6700HQ,GTX 1060,16GB ram

The speed is always full but I had this problem for a very long time and I decided to ignore it(never tried to switch to OpenGL since Vulkan was added)

Checklist

  • [X] Test in the latest git build in case it's already fixed.
  • [X] Search for other reports of the same issue.
  • [ ] Try resetting settings or older versions and include if the issue is related.
  • [X] Try changing graphics settings to determine if one causes the slowdown.
  • [ ] Include logs or screenshots of issue.

vsub avatar Mar 05 '24 21:03 vsub

Maybe try listing whatever might be non-vanilla or rare within your whole setup. You choose to ignore the issue, but other people simply aren't experiencing anything like that.

Vulkan has some optimizations and features as first or even forever exclusive, so it usually is the best choice on desktops with decent/up-to-date drivers.

LunaMoo avatar Mar 06 '24 01:03 LunaMoo

The recording is a little out of sync(audio and video)but this is what happens A fresh download with nothing changed except the renderer There is nothing non-vanilla or rare in my setup,it happens only when I am using Vulkan(DX9\11 is also fine) And also that half a second freeze when resizing happens even when I am not running any game and when the rendering resolution is set to 1x

https://github.com/hrydgard/ppsspp/assets/5032540/5904dc9a-f74a-4005-9eb4-57b5469c6fe2

vsub avatar Mar 06 '24 13:03 vsub

The only thing that comes to my mind is MSAA as it would make things heavier with vulkan, but it is OFF in the video.

Might be a driver issue or some leftover file from older drivers or even from different gpu, I'd recommend trying DDU to fully uninstall your GPU drivers and then installing latest ones from nvidia.

LunaMoo avatar Mar 06 '24 22:03 LunaMoo

@LunaMoo I had this problem for a very long time and I update and reinstall my drivers with DDU many times. I also thought it could be becase of MSAA or some other option but it was not(I tried disabling all and making ppsspp to requires as litte cpu\gpu power in exchange of proper emulations(effects,graphics quality and so on),but nothing helps)

There is no difference at all between all maxed out and default settings,when I use vulkan,this happens and when I use anything other than vulkan,that problem don't exist

I have no idea what's wrong here PCSX2 with Vulkan - no problems(works the same as OpenGL here) Ryujinx with Vulkan - when resizing the window it pauses the video for less than half a second but the audio is fine RPCS3 with Vulkan - no problems DuckStation with Vulkan - no problems

Btw,It's a Laptop not a PC and it is connected to the ac and it is not using any power saving modes

vsub avatar Mar 06 '24 23:03 vsub