<div dir="ltr">OK Max's strategy paid off!<br><br>I was able to lock in on the problem using his idea in no time...<br><br>The culprit is the few lines<br> // sanity check<br> if ((resourceData->offset > (uint)context->file->size()) || (resourceData->size > contextSize)) {<br>
result = false;<br> break;<br><br>in saga/resource.cpp, function loadResContext_v1 (and I imagine v2 has the same thing).<br><br>This is repeated inside a loop that sometimes loops 3000 times and sometimes 1000 times. Size() is an expensive operation for the PSP, and this value should be stored in a variable. I'm guessing that when I run it off the PC it is cached.<br>
<br>Would anyone like to change this (in both v1 and v2) or should I?<br><br>Yotam<br><br></div>