hrydgard / ppsspp

A PSP emulator for Android, Windows, Mac and Linux, written in C++. Want to contribute? Join us on Discord at https://discord.gg/5NJB6dD or just send pull requests / issues. For discussion use the forums at forums.ppsspp.org.
https://www.ppsspp.org
Other
11.07k stars 2.15k forks source link

Update Multithreading to improve perfomance and compatibility #8112

Closed zminhquanz closed 8 years ago

zminhquanz commented 8 years ago

Please update to using more than 2 core ( Mobile and PC at this time using 4 core and 8 core CPU ) , and improve compatibility games like Final Fantasy VII : Crisis Core and The 3rd Birthday , because they have issue is crash and texture glitch , you can see my picture , when i'm turn on multithreading , is have a bug texture bug ppsspp

SukharevAndrey commented 8 years ago

Dolphin devs wrote good explanation why their emulator use only 3 cores: https://dolphin-emu.org/docs/faq/#couldnt-dolphin-use-more-my-cpu-cores-go-faster Almost the same applies to PPSSPP P.S. BTW your PPSSPP version is outdated. Try the latest version

unknownbrackets commented 8 years ago

Right, there's nothing actionable here. If you want to propose a plan for how to use more cores or spread out work (without just causing more stalls and making it slower), we're listening. But as it is, the current issues in multithreading are caused by timing. We already know this, and the only way to fix it would be to add more stalls - which would make it much slower, possibly even slower than when the option is off.

@hrydgard already did some initial work on a vastly different approach to threading the GPU, which is likely to have less timing issues. But it remains to be seen if this will actually yield gains. I've also tried to offload heavy things - like texture processing - to other cores but without success: it just introduces stalls and makes things no better.

It's possible that the different approach, which will take time to implement, will introduce a new and faster multithreading. It's also very possible that Vulkan may allow us a lot of gains and to use a lot more cores.

But those are all separate efforts, and keeping this open won't help us with them. I'm closing this.

-[Unknown]

zminhquanz commented 8 years ago

When enable multithread , is can't execute and busy

ppsspplog.txt

zminhquanz commented 8 years ago

this is ge debugger and disassembly image