'Blanking' sceDisplayWaitVblankStart Does NOT work in VSH?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
KickinAezz
Posts: 328
Joined: Sun Jun 03, 2007 10:05 pm

'Blanking' sceDisplayWaitVblankStart Does NOT work in VSH?

Post by KickinAezz »

http://silverspring.lan.st/4.05/vsh/module/pafimp.xml

We can clearly see that sceDisplayWaitVblankStart is imported ONLY by paf in VSH.


However, even when I override it, the FPS is still at stable 60 FPS! Can anyone show me some light?
Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming.
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Re: 'Blanking' sceDisplayWaitVblankStart Does NOT work in VS

Post by Torch »

KickinAezz wrote:http://silverspring.lan.st/4.05/vsh/module/pafimp.xml

We can clearly see that sceDisplayWaitVblankStart is imported ONLY by paf in VSH.


However, even when I override it, the FPS is still at stable 60 FPS! Can anyone show me some light?
Try hooking the export instead of the import (if thats what you're doing).
In any case it would only waste CPU cycles and battery life by NOT VSyncing and running at maximum FPS.
KickinAezz
Posts: 328
Joined: Sun Jun 03, 2007 10:05 pm

Re: 'Blanking' sceDisplayWaitVblankStart Does NOT work in VS

Post by KickinAezz »

Torch wrote:
KickinAezz wrote:http://silverspring.lan.st/4.05/vsh/module/pafimp.xml

We can clearly see that sceDisplayWaitVblankStart is imported ONLY by paf in VSH.


However, even when I override it, the FPS is still at stable 60 FPS! Can anyone show me some light?
Try hooking the export instead of the import (if thats what you're doing).
In any case it would only waste CPU cycles and battery life by NOT VSyncing and running at maximum FPS.
LOL! That import sheet shows EXACTLY the Exports (that were imported) ....
Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming.
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

Get the address of the function and patch the code to return immediately, flush the instruction cache?

Though that isn't the totally right way to go about it...
KickinAezz
Posts: 328
Joined: Sun Jun 03, 2007 10:05 pm

Post by KickinAezz »

Torch wrote:Get the address of the function and patch the code to return immediately, flush the instruction cache?

Though that isn't the totally right way to go about it...
Thats exactly how its done... But doesnot seem to be working.
Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming.
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

KickinAezz wrote:
Torch wrote:Get the address of the function and patch the code to return immediately, flush the instruction cache?

Though that isn't the totally right way to go about it...
Thats exactly how its done... But doesnot seem to be working.
I meant patch the asm code of the original function to return immediately. Theres no function hooking involved at all.
KickinAezz
Posts: 328
Joined: Sun Jun 03, 2007 10:05 pm

Post by KickinAezz »

Torch wrote:
KickinAezz wrote:
Torch wrote:Get the address of the function and patch the code to return immediately, flush the instruction cache?

Though that isn't the totally right way to go about it...
Thats exactly how its done... But doesnot seem to be working.
I meant patch the asm code of the original function to return immediately. Theres no function hooking involved at all.
Looks like VSH DoesNOT seem to use any VBlank method to control FPS at a stable 60...

--

Only VBlankStart is called after the end of the gameboot...
Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming.
Post Reply