Some (possibly) New Ideas for RPCS3
Started by Guest




39 posts in this topic
Guest
Unregistered


 
Less than 1 minute ago -
#1
[quote='[Unknown]' pid='210122' dateline='1399967675']
To be sure, there are i7's with 6/12 cores:
http://ark.intel.com/products/63696/Inte...o-3_90-GHz

Something I read indicated that the Cell PPU supported basically hyperthreading. And I will say, hyperthreading does work. For example, the uber slow softgpu in ppsspp runs much faster on my i7 with 8 threads than with 4, but worse with more than 8. They're not as good as two real cores, but they're way better than just one.

IMHO, writing assembly for certain routines is sometimes a very good idea. Some reasons:
* Hand coded assembly does not need to conform to the parameter passing ABI. This can have a large impact on performance in tight code (in cases where inlining might even hurt performance.)
* Optimizers / compilers are sometimes stupid. This is more relevant when targeting ARM / etc.
* If generated at runtime, it can allow you to more conveniently use/not use features based on the host CPU.
* It will not bloat the executable nearly as much as using a ton of templates would.

For example, the vertexdecoder jit in ppsspp gave great performance gains on both x86 and ARM, but it's not a recompiler - it just generates assembly instead of calling an array of functions, and ignores the C++ ABI.

That said, it's often not a good idea unless you've tried everything else first (especially for portability reasons.) A much smarter thing is to look at the assembly that is being produced, and first try to understand and resolve poor codegen by the compiler. For example, MSVC iirc will not optimize accesses to a member variable. You will often get better performance by doing this (only for hot loops):

const int x = m_x;
// tight loop
m_x = x;

Than by using x directly inside the loop. This doesn't require writing assembly to figure out, and if you think about multiple threads you might even realize why the compiler can't safely optimize it.

Anyway, moving things more low level would help in some areas for sure. Some things are very unnecessarily abstracted. The more I look at the less I know where to start to improve things.

Bigpet: to be sure, there are multiple areas. Even in my lazy approach to mapping memory, which did help a little, performance did not change much because it became dominated by the PPU interpreter (and its X vtable lookups, breakpoint checks, and thread status checks per single CPU instruction.) There are definitely multiple areas which are slow right now.

-[Unknown]


Messages In This Thread
RE: Some (possibly) New Ideas for RPCS3 - by Guest - Less than 1 minute ago
RE: Some (possibly) New Ideas for RPCS3 - by Guest - Less than 1 minute ago
RE: Some (possibly) New Ideas for RPCS3 - by Guest - Less than 1 minute ago
RE: Some (possibly) New Ideas for RPCS3 - by Guest - Less than 1 minute ago
RE: Some (possibly) New Ideas for RPCS3 - by Guest - Less than 1 minute ago
RE: Some (possibly) New Ideas for RPCS3 - by Ontakeio - 04-24-2014, 09:46 PM
RE: Some (possibly) New Ideas for RPCS3 - by Bigpet - 04-24-2014, 10:58 PM
RE: Some (possibly) New Ideas for RPCS3 - by logan - 04-25-2014, 12:14 AM
RE: Some (possibly) New Ideas for RPCS3 - by notq - 04-25-2014, 12:16 AM
RE: Some (possibly) New Ideas for RPCS3 - by derpf - 04-25-2014, 01:10 AM
RE: Some (possibly) New Ideas for RPCS3 - by Triple1Truth - 05-11-2014, 10:10 PM
RE: Some (possibly) New Ideas for RPCS3 - by hlide - 05-11-2014, 10:41 PM
RE: Some (possibly) New Ideas for RPCS3 - by Bigpet - 05-13-2014, 08:11 AM
RE: Some (possibly) New Ideas for RPCS3 - by derpf - 05-14-2014, 07:10 AM
RE: Some (possibly) New Ideas for RPCS3 - by Ontakeio - 05-14-2014, 05:15 PM
RE: Some (possibly) New Ideas for RPCS3 - by mushroom - 05-15-2014, 07:49 PM
RE: Some (possibly) New Ideas for RPCS3 - by mushroom - 05-15-2014, 09:43 PM
RE: Some (possibly) New Ideas for RPCS3 - by flashmozzg - 05-15-2014, 10:01 PM
RE: Some (possibly) New Ideas for RPCS3 - by derpf - 05-16-2014, 12:09 AM
RE: Some (possibly) New Ideas for RPCS3 - by Ontakeio - 05-16-2014, 05:42 PM
RE: Some (possibly) New Ideas for RPCS3 - by gamenoob - 05-16-2014, 07:14 PM
RE: Some (possibly) New Ideas for RPCS3 - by derpf - 05-16-2014, 11:30 PM
RE: Some (possibly) New Ideas for RPCS3 - by androidlover - 05-17-2014, 07:05 PM
RE: Some (possibly) New Ideas for RPCS3 - by flashmozzg - 05-17-2014, 07:21 PM
RE: Some (possibly) New Ideas for RPCS3 - by gamenoob - 05-17-2014, 07:33 PM
RE: Some (possibly) New Ideas for RPCS3 - by derpf - 05-18-2014, 12:01 AM
RE: Some (possibly) New Ideas for RPCS3 - by gamenoob - 05-18-2014, 10:51 AM
RE: Some (possibly) New Ideas for RPCS3 - by androidlover - 05-19-2014, 06:16 PM
RE: Some (possibly) New Ideas for RPCS3 - by Threule - 06-07-2014, 01:19 AM
RE: Some (possibly) New Ideas for RPCS3 - by derpf - 06-07-2014, 11:31 AM
RE: Some (possibly) New Ideas for RPCS3 - by eye2eye - 09-17-2014, 10:30 PM
RE: Some (possibly) New Ideas for RPCS3 - by s8box - 10-16-2014, 07:43 PM
RE: Some (possibly) New Ideas for RPCS3 - by Bigpet - 10-16-2014, 08:33 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)