RPCS3 / rpcs3

PlayStation 3 emulator and debugger
https://rpcs3.net/
GNU General Public License v2.0
15.33k stars 1.91k forks source link

[Feature Request] Do not recompile the SPU LLVM cache every boot #10129

Open dio-gh opened 3 years ago

dio-gh commented 3 years ago

The title should be sufficiently clear. I'm well aware that the SPU cache version is bumped way more often than the PPU, and that changing certain settings may require a recompilation, but I'd argue that it still happens way less than me launching a given game several times in a row.

It's particularly problematic when testing games. I won't be updating RPCS3 left and right, I'll be relaunching the game a million times over. Recompiling thousands of modules every time, after every crash, for no reason, especially on my PC, is equivalent to torture.

dio-gh commented 3 years ago

@Nekotekina sorry for the direct mention, but it's only you who can call the shots on this anyways. Is this any feasible to be added?

Nekotekina commented 3 years ago

There were some obstacles (such as hard-coded values during compilation) which would render SPU LLVM cache useless. Need to carefully examine current state of things, I fixed some of them but can't say for sure that nothing remains.

dio-gh commented 3 years ago

Sounds moderately promising, thanks.

dio-gh commented 3 years ago

Has there been any further investigations in the topic since?

MSuih commented 3 years ago

This is a duplicate of #10452, I'll close this one as the other ticket includes all caches. And yes, there's been more thought put into this due to savestates.

MSuih commented 3 years ago

Oh, seems like I misread. This isn't about keeping the cache in memory, it's about storing the compiled data to disc along with the uncompiled data to speed up boot.