The code is very simple, but although it seems to do things
like it should, image flickering is appearing all around
(only on scrolling parts). I´m using this code:
+Draw everything you want to back buffer
+CGfxUtils::Flip();
+sceDisplayWaitVblankStart();
This is my flip function:
Code: Select all
void CGfxUtils::Flip()
{
m_iCurrentFB=!m_iCurrentFB;
sceDisplaySetFrameBuf((char*)m_FBs[m_iCurrentFB],
512,PSP_DISPLAY_PIXEL_FORMAT_565,1);
}
I init this with this code:
Code: Select all
void CGfxUtils::InitGfx16()
{
//m_iCurrentFB is the Front Buffer
m_iCurrentFB=0;
m_FBs[0]=(void*)VRAM_START;
m_FBs[1]=(void*)(VRAM_START+FRAME_LENGHT);
sceDisplaySetMode( 0, SCREEN_WIDTH,SCREEN_HEIGHT);
sceDisplaySetFrameBuf((char*)m_FBs[0],512,PSP_DISPLAY_PIXEL_FORMAT_565,1);
}
but I can´t believe this flickering is because of the slow LCD
screen refresh :(.
Thanks in advance,
HexDump.[/code]