forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

'Blanking' sceDisplayWaitVblankStart Does NOT work in VSH?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Tue Sep 23, 2008 8:46 am    Post subject: 'Blanking' sceDisplayWaitVblankStart Does NOT work in VSH? Reply with quote

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.
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Wed Sep 24, 2008 11:42 pm    Post subject: Re: 'Blanking' sceDisplayWaitVblankStart Does NOT work in VS Reply with quote

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.
Back to top
View user's profile Send private message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Thu Sep 25, 2008 7:14 am    Post subject: Re: 'Blanking' sceDisplayWaitVblankStart Does NOT work in VS Reply with quote

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.
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Thu Sep 25, 2008 11:55 am    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Fri Sep 26, 2008 3:02 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Fri Sep 26, 2008 5:40 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Sun Sep 28, 2008 9:41 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group