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 

Part of screen black

 
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: Fri May 26, 2006 7:51 am    Post subject: Part of screen black Reply with quote

k i'm a little in a pickle right now, I have this strange problem with my game the upper part of my screen say 1/4 of the total screen is not rendered anymore.

I only have altered some code but even when i comment the whole sub out and no call to it is done i still get the upper part black. So now i am back to the part where I was before when everything worked perfectly but still got the problem :(:(:(:(:(:(

i feel powerless at the mmoment

does anybody has slightly an idea of what is going on? i use no scripting language, i use the png lib and the graphics.c for drawing
_________________
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
starman2049



Joined: 19 Sep 2005
Posts: 75

PostPosted: Fri May 26, 2006 2:18 pm    Post subject: Reply with quote

I was plagued by something like this for months, although my black section of screen was more like 10%, not the 25% you are describing, and there are a number of possible reasons for this. My black screen came and went as I added code to an expanding project.

For me I discovered (rather randomly) that if I don't clear the color buffer than my problems went away for good. I havn't seen the black screen in over a month now. I just changed things as below:
Code:
//   sceGuClear(GU_COLOR_BUFFER_BIT|GU_DEPTH_BUFFER_BIT); // old code
   sceGuClear(GU_DEPTH_BUFFER_BIT); // new code

It might be blind luck, or change in timing, or whatever, but one things for sure it killed me for over three months and it's gone for sure now.

Of course, not clearing the color buffer requires that you have completely enclosed scenes...

Give it a try. Like I said It's probably got more to do with timing than not clearing the back buffer, but if it helps you then great...
Back to top
View user's profile Send private message
Energy



Joined: 26 Mar 2005
Posts: 133
Location: uk/beds/flitwick

PostPosted: Mon May 29, 2006 3:38 am    Post subject: Reply with quote

I had this issue for a few days and ended up using doublebuffering and a lot of
sceDisplayWaitVblankStart();

I think that's how I worked it out... :/
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
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