![]() |
![]() |
![]() |
![]() |
![]() |
Castlevania : Yami no Juin - Improve the speed and add memory card support
Posted on 2006-07-13 00:00:00 |
Well, the title of this one is kinda explicit. I want to improve the speed of the emulator and I want to add basic memory card support.
In the speed improving part, what I mostly want to do is add the ability to move all the execution of the GIF operations into a separate thread. The slowness in this game is caused in great parts by the GS handler and its numerous calls to glTexImage2D. The texture swizzling routines are slow too, but it's nothing compared to the overhead of calling glTexImage2D. There's also the fact that multi-core CPUs are probably going to be the new trend. If we'd keep the design of the emulator single-threaded, we wouldn't be able to take advantage of this. The second core of my CPU is currently unused by the emulator... So by having a second thread doing the rendering job, we should be able to achieve greater speed since the workload will be balanced over the 2 cores. In the memory card support adding part, I just want the game to be able to load a saved game that'll have ripped from my real memory card. I also want to integrate that memory card manager I've been working on these past days. As for today's work, I've started working on giving the GIF its own thread. It won't render anything for now since I haven't found a way to make the GIF thread the "owner" of the created OpenGL context yet. I'll keep working on that tomorrow. |