mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 20:36:04 +00:00
PS3: one shader cache, no interpreter precompile
- A program from the rail draws with the desktop's Linux driver instead of the Steam session's. The driver's shader cache is keyed on its build, so with two drivers an emulator compiled everything once per way of starting it; seen on device: desktop on the imported Turnip 26.3.0, rail on the runtime's own. - RPCS3's default shader mode builds 6650 interpreter pipelines every boot. bannerlator-pad-defaults starts a new install on Async Recompiler (multi-threaded) and moves an existing one still on the default once; a marker leaves any later choice in RPCS3's settings alone. Enum strings from rpcs3/Emu/system_config_types.cpp.
This commit is contained in:
1 parent
ae863cc613
commit
76300aa8b7
2 files changed
+39
-3
No files matched your search
@@ -280,7 +280,12 @@ class SessionService : Service() {
|
||||
// An imported glibc Turnip for this mode, when the user chose one: the session script checks
|
||||
// the manifest and its library from inside and points the loader at it with VK_DRIVER_FILES,
|
||||
// so the runtime's own driver above stays untouched and is what a bad import falls back to.
|
||||
val linuxDriverId = SessionPrefs.linuxDriver(this, SessionPrefs.prefMode(SessionState.mode))
|
||||
// A program from the rail is one of the desktop's emulators, so it draws with the desktop's
|
||||
// Linux driver, not the Steam session's: the driver's shader cache is keyed on the driver
|
||||
// build, and with two drivers every emulator compiled its shaders twice - once per way of
|
||||
// starting it (RPCS3's 6650 interpreter variants on each first boot).
|
||||
val driverMode = if (SessionState.mode == MODE_RUN) MODE_DESKTOP else SessionPrefs.prefMode(SessionState.mode)
|
||||
val linuxDriverId = SessionPrefs.linuxDriver(this, driverMode)
|
||||
LinuxVulkanDriver.resolveIcdPath(this, linuxDriverId)
|
||||
?.let { guest.add(LinuxVulkanDriver.ENV + "=" + it) }
|
||||
// Turnip's own debug switches, for the runtime's driver and everything on it. The file in
|
||||
|
||||
Reference in new issue
Block a user