 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
seventh
Joined: 21 Jan 2006 Posts: 11
|
Posted: Sat Jan 21, 2006 7:25 pm Post subject: 5551 format and double buffering |
|
|
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 |
|
 |
jsgf
Joined: 12 Jul 2005 Posts: 254
|
Posted: Sun Jan 22, 2006 7:28 am Post subject: |
|
|
| 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 |
|
 |
|
|
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
|