[Discussion] 60FPS patches for PSP games that run at 30FPS
|
08-18-2013, 03:26 AM
Post: #77
|
|||
|
|||
RE: 60FPS patches for PSP games that run at 30FPS
Where is My Heart? calls sceDisplayWaitVblankStart(). This is a completely different function.
sceDisplayWaitVblank: wait until inside a vblank. If already inside one, do not wait. sceDisplayWaitVblankCB: same, but process callbacks while waiting. sceDisplayWaitVblankStart: wait until the next vblank (even if inside one currently, do wait.) sceDisplayWaitVblankStartCB: same, but process callbacks while waiting. sceDisplayWaitVblankStartMulti: ***THIS ONE*** takes an argument, number of vblank starts to wait for. sceDisplayWaitVblankStartMultiCB: same, but process callbacks while waiting. Not a ton of games call the Multi ones. But if they do, adjusting the argument can help. Some games I've seen that are 30 fps just call sceDisplayWaitVblankStart() twice in a row. Or, they set a flag saying whether they're in the initial "real" frame or in the "don't draw anything just do quick cleanup" frame. Where is My Heart? uses a spin loop plus a global variable flag to determine FPS (which is the dumb way, tbh, unfortunately.) -[Unknown] |
|||
« Next Oldest | Next Newest »
|