10-16-2014, 08:33 PM -
As far as I remember Dolphin had their experiences with OpenCL and even doing something so fitting for it like texture decoding did not yield significant speed-ups and more often than not slowed things down.
I don't think the GPU is going to help us a lot with CPU emulation for the time being. I can imagine doing game specific "spu kernel replacements" later on. Similar to the way that for example PPSSPP detects some copy functions by hashing them and then doing the copying natively.
But I can't imagine a general purpose SPU to OpenCL translation working out too well, but you're free to try.
As a side-note if anyone has gotten some real-world compute-heavy SPU kernels you could post them here for s8box to do some preliminary tests (just hand-write a cpu and an opencl implementation outside of rpcs3 and benchmark those to see if the CPU-time spend copying and retrieving the data is even worth it)
I don't think the GPU is going to help us a lot with CPU emulation for the time being. I can imagine doing game specific "spu kernel replacements" later on. Similar to the way that for example PPSSPP detects some copy functions by hashing them and then doing the copying natively.
But I can't imagine a general purpose SPU to OpenCL translation working out too well, but you're free to try.
As a side-note if anyone has gotten some real-world compute-heavy SPU kernels you could post them here for s8box to do some preliminary tests (just hand-write a cpu and an opencl implementation outside of rpcs3 and benchmark those to see if the CPU-time spend copying and retrieving the data is even worth it)