libretro / RetroArch

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

Slow shader loading #12604

Open Aethyrion opened 3 years ago

Aethyrion commented 3 years ago

Description

Very long (4-5s) freezing when loading/switching between shaders like crt-royale.

Expected behavior

Barely noticeable (<1s) loading time like it was in Retroarch 1.9.3 and before.

Bisect Results

Was working flawlessly in 1.9.3.

Version/Commit

RetroArch 1.9.5

Environment information

Windows 10 Vulkan driver AMD Ryzen 5 3600x Nvidia GeForce GTX 1060

hizzlekizzle commented 3 years ago

crt-royale has always taken 3+ seconds for me

LibretroAdmin commented 2 years ago

These shaders (and presets) tend to include a lot of additional files to create the final shader output, which can tend to be a slow operation. It doesn't look pleasant from an enduser experience but it's also a 'hard' problem with no real immediate solution.