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 

5551 format and double buffering

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



Joined: 21 Jan 2006
Posts: 11

PostPosted: Sat Jan 21, 2006 7:25 pm    Post subject: 5551 format and double buffering Reply with quote

Hello all

I read forum's archives, and found no information about this problem.
I'm trying to do double buffering. I succedeed to do that in 8888 format with IMMEDIATE frame buffer swapping :

Code:

  sceDisplayWaitVblankStart();
  sceDisplaySetFrameBuf( pVram,
                                        BUF_WIDTH,
                                        PSP_DISPLAY_PIXEL_FORMAT_8888,
                                        PSP_DISPLAY_SETBUF_IMMEDIATE );
  // pVram swap


But, as I try to do the same thing in 5551 format, I have to write the following :

Code:

 sceDisplaySetFrameBuf( pVram,
                                        BUF_WIDTH,
                                        PSP_DISPLAY_PIXEL_FORMAT_5551,
                                        PSP_DISPLAY_SETBUF_NEXTFRAME );
  sceDisplayWaitVblankStart();
  // pVram swap


If I don't do like this (IMMEDIATE swapping for example), I have very strange behavior. I think that using NEXTFRAME swapping and waiting after setting the frame buffer is making me slowing by a factor two animation.

Can someone explain me this strange behavior ? Where am I wrong ?
Back to top
View user's profile Send private message
jsgf



Joined: 12 Jul 2005
Posts: 254

PostPosted: Sun Jan 22, 2006 7:28 am    Post subject: Reply with quote

I found a similar thing in PSPGL. IMMEDIATE just didn't work as expected, so I ended up having to use NEXTFRAME. I don't see this as halving the framerate though. Also, I haven't noticed the framebuffer format making a difference.
Back to top
View user's profile Send private message Visit poster's website
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