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 

Blackscreen fix?

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



Joined: 31 Dec 2005
Posts: 288

PostPosted: Sat Jun 17, 2006 7:32 am    Post subject: Blackscreen fix? Reply with quote

Hi folks,

i get these blackscreens for like 1 millisecond in my game but it is not all the time can it that it has something to do with the order i do this code?
Code:
   int GameRender(void) {

   //clear screen
      sceDisplayWaitVblankStart();
      clearScreen(0);
   // draw everything on screen
      //background
      blitImageToScreen(0 ,0 ,480 , 272, GameBackground, 0, 0);


i first wait for the vblankstart and then clear the screen with color 0 (black)
i render alot in my render sub so maybe i render to much and that is the reason for the black screens?

any ideas?
_________________
My PSP games:

Boxy II: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php
Back to top
View user's profile Send private message
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Sat Jun 17, 2006 8:06 am    Post subject: Reply with quote

this should do
Code:

int GameRender(void) {
//clear screen
clearScreen(0);

//draw everything on screen
//background
blitImageToScreen(0 ,0 ,480 , 272, GameBackground, 0, 0);

//vblankstart then flipscreen so user doesnot notice
sceDisplayWaitVblankStart();
flipscreen();
}

_________________
10011011 00101010 11010111 10001001 10111010
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