Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PPSSPP for Windows Phone (8)?
10-25-2014, 12:17 PM (This post was last modified: 10-25-2014 12:21 PM by Dissonance.)
Post: #16
RE: PPSSPP for Windows Phone (8)?
IIRC historically it was used to accelerate Forth interpreters in the days before binary translation was developed or practical given the memory constraints. For a given number of emulated instructions the technique will use less memory than a dynarec because you are only caching function pointers rather than blocks of code. If you structure the interpreter to eliminate branches in the leaf functions as far as possible such that each possible instruction is a singular leaf function then you are seeing a considerable saving by skipping the decode (by having stored its previous result as a function pointer then calling it directly). I don't see "blowing the I-cache" as a certainty either, sure it's got some extra overhead from having to return to the top level fetch loop after each instruction but I think it will come down to how efficient your fetch code is and whether that will fit.

Regarding performance benefits my thinking was it would depend on the sophistication of the branch prediction and pipelining of the underlying hardware as to what the benefit would be for threaded interpretation vs a simple interpreter. While in comparison to dynarec it's going to depend on the cost of the call/return and call stack access and the aforementioned fetch routine.

As I said before, I'm mostly trying to dispell the myth that seems to be circulating that there is no method of accelerating a CPU emulation other than dynarec. Given that Windows Phone does have access to high end processors now (even if only in flagship devices). Then I don't see how long this attitude of "never going to happen" can persist at least for 5th gen emulation. I agree the commercial reward for the amount of work involved in porting a dynarec emulator to a threaded interpreter for Windows Phone's sake is near non-existent. The fact is that the technique apparently does yield performance benefits as demonstrated by EmiPSX. It's unfortunate that the developer hasn't been able to iron out more of the compatibility issues but I'd hope most emulator developers would understand the challenge involved and shouldn't be using this as an excuse for ignoring its achievements and their possible implications.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
PPSSPP for Windows Phone (8)? - Joe Clame - 06-02-2013, 08:35 PM
RE: PPSSPP for Windows Phone (8)? - Henrik - 06-02-2013, 08:48 PM
RE: PPSSPP for Windows Phone (8)? - stodag - 06-02-2013, 08:53 PM
RE: PPSSPP for Windows Phone (8)? - arg274 - 11-23-2013, 05:03 PM
RE: PPSSPP for Windows Phone (8)? - Henrik - 11-24-2013, 01:40 PM
RE: PPSSPP for Windows Phone (8)? - xsacha - 11-24-2013, 02:41 AM
RE: PPSSPP for Windows Phone (8)? - xsacha - 11-25-2013, 03:48 AM
RE: PPSSPP for Windows Phone (8)? - stodag - 01-11-2014, 10:46 AM
RE: PPSSPP for Windows Phone (8)? - yushir - 05-14-2014, 01:51 PM
RE: PPSSPP for Windows Phone (8)? - Henrik - 05-14-2014, 06:04 PM
RE: PPSSPP for Windows Phone (8)? - Bigpet - 10-25-2014, 11:43 AM
RE: PPSSPP for Windows Phone (8)? - Dissonance - 10-25-2014 12:17 PM
RE: PPSSPP for Windows Phone (8)? - Henrik - 10-29-2014, 12:35 AM
RE: PPSSPP for Windows Phone (8)? - Bigpet - 10-29-2014, 07:09 PM
RE: PPSSPP for Windows Phone (8)? - iCEQB - 05-15-2015, 08:44 PM
RE: PPSSPP for Windows Phone (8)? - Bigpet - 05-15-2015, 10:11 PM
RE: PPSSPP for Windows Phone (8)? - iCEQB - 05-16-2015, 09:18 AM

Forum Jump: