This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Found fix for save/load hangs in Jpcsp 64-bit
#1
psp 
In the jpcsp.HLE.modules150.sceUtility class, add a 1ms delay inside the while loop at line 788 as follows:

// Wait for user selection.
while (!saveListSelected) {
if (!mainDisplay.isVisible()) {
break;
}
try {
Thread.sleep(1);
} catch (InterruptedException ex) {}
}

For some reason, this delay is needed when using the 64-bit JRE. It is also needed for the 32-bit JRE in server mode using the -server switch. It's strange that the 32-bit JRE in client mode runs perfectly fine without the delay though. I guess when using the 32-bit Java Hotspot Server VM or the 64-bit Java VM, the while loop goes too fast that the JVM somehow misses the break check. Huh Obviously this is not a bug in the Jpcsp code but a strange quirk in the JVM. The added 1ms delay inside the while loop eliminates the problem. Big Grin
Reply


Messages In This Thread
Found fix for save/load hangs in Jpcsp 64-bit - by Itaru - 01-01-2011, 05:33 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)