Blackscreen fix?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Ghoti
Posts: 288
Joined: Sat Dec 31, 2005 11:06 pm

Blackscreen fix?

Post by Ghoti »

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: Select all

	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?
User avatar
dot_blank
Posts: 498
Joined: Wed Sep 28, 2005 8:47 am
Location: Brasil

Post by dot_blank »

this should do

Code: Select all

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
Post Reply