 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
Ghoti
Joined: 31 Dec 2005 Posts: 288
|
Posted: Sat Jun 17, 2006 7:32 am Post subject: Blackscreen fix? |
|
|
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 |
|
 |
dot_blank

Joined: 28 Sep 2005 Posts: 498 Location: Brasil
|
Posted: Sat Jun 17, 2006 8:06 am Post subject: |
|
|
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 |
|
 |
|
|
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
|