[PR #3160] [CLOSED] WIP: Shader Cache #3272

Closed
opened 2026-02-27 22:03:05 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/3160
Author: @Fire-Cube
Created: 6/26/2025
Status: Closed

Base: mainHead: shader_cache


📝 Commits (10+)

📊 Changes

18 files changed (+639 additions, -19 deletions)

View changed files

📝 .gitmodules (+6 -0)
📝 CMakeLists.txt (+8 -1)
📝 externals/CMakeLists.txt (+10 -0)
externals/cereal (+1 -0)
externals/epoll-shim (+0 -1)
externals/ext-libusb (+0 -1)
externals/libusb (+1 -0)
📝 src/common/config.cpp (+16 -1)
📝 src/common/config.h (+3 -1)
📝 src/common/hash.h (+6 -6)
src/common/serialization.h (+30 -0)
📝 src/emulator.cpp (+10 -0)
📝 src/shader_recompiler/info.h (+1 -0)
src/video_core/renderer_vulkan/shader_cache.cpp (+398 -0)
src/video_core/renderer_vulkan/shader_cache.h (+39 -0)
src/video_core/renderer_vulkan/shader_cache_serialization.h (+74 -0)
📝 src/video_core/renderer_vulkan/vk_pipeline_cache.cpp (+34 -7)
📝 src/video_core/renderer_vulkan/vk_pipeline_cache.h (+2 -1)

📄 Description

This is currently still unfinished and there may be crashes and graphical errors. The caching system is currently kept as simple as possible but when everything works I will make sure that we only have one or two files for saving


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/3160 **Author:** [@Fire-Cube](https://github.com/Fire-Cube) **Created:** 6/26/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `shader_cache` --- ### 📝 Commits (10+) - [`16e981c`](https://github.com/shadps4-emu/shadPS4/commit/16e981c82c95819c721da6aef6a9a75a523fd813) first spirv cache implementation - [`c188b7c`](https://github.com/shadps4-emu/shadPS4/commit/c188b7c60d35549b94294169538e6b8b5c46c98c) better naming - [`08cd231`](https://github.com/shadps4-emu/shadPS4/commit/08cd23118054db69aa150064c9e75a842c1a8565) Merge branch 'shadps4-emu:main' into shader_cache - [`cbeaf46`](https://github.com/shadps4-emu/shadPS4/commit/cbeaf46102afee8aeafe20bfee8c3a0c63a898d5) Merge branch 'shadps4-emu:main' into shader_cache - [`2aee032`](https://github.com/shadps4-emu/shadPS4/commit/2aee03218c93ce74ca4937dbc192bbd9aaa7eebb) temp push - [`09f844a`](https://github.com/shadps4-emu/shadPS4/commit/09f844add1699f6861e5a80c093c06d224a5cff2) initial codebase - [`bde3873`](https://github.com/shadps4-emu/shadPS4/commit/bde3873781c79e37377243d7e57daf625a5defbc) more - [`24f17f5`](https://github.com/shadps4-emu/shadPS4/commit/24f17f59f249dd146148ba0c41765c91eb815e27) more - [`b32ba29`](https://github.com/shadps4-emu/shadPS4/commit/b32ba2918b2b82a0628a2d0a8e289a805c85b900) fix filewriting - [`3eb8000`](https://github.com/shadps4-emu/shadPS4/commit/3eb8000b75789ef7fadabf348369decab3d2a4b3) some progress ### 📊 Changes **18 files changed** (+639 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `.gitmodules` (+6 -0) 📝 `CMakeLists.txt` (+8 -1) 📝 `externals/CMakeLists.txt` (+10 -0) ➕ `externals/cereal` (+1 -0) ➖ `externals/epoll-shim` (+0 -1) ➖ `externals/ext-libusb` (+0 -1) ➕ `externals/libusb` (+1 -0) 📝 `src/common/config.cpp` (+16 -1) 📝 `src/common/config.h` (+3 -1) 📝 `src/common/hash.h` (+6 -6) ➕ `src/common/serialization.h` (+30 -0) 📝 `src/emulator.cpp` (+10 -0) 📝 `src/shader_recompiler/info.h` (+1 -0) ➕ `src/video_core/renderer_vulkan/shader_cache.cpp` (+398 -0) ➕ `src/video_core/renderer_vulkan/shader_cache.h` (+39 -0) ➕ `src/video_core/renderer_vulkan/shader_cache_serialization.h` (+74 -0) 📝 `src/video_core/renderer_vulkan/vk_pipeline_cache.cpp` (+34 -7) 📝 `src/video_core/renderer_vulkan/vk_pipeline_cache.h` (+2 -1) </details> ### 📄 Description This is currently still unfinished and there may be crashes and graphical errors. The caching system is currently kept as simple as possible but when everything works I will make sure that we only have one or two files for saving --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:03:05 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#3272
No description provided.