| View previous topic :: View next topic |
| Author |
Message |
Ghoti
Joined: 31 Dec 2005 Posts: 288
|
Posted: Fri May 26, 2006 7:51 am Post subject: Part of screen black |
|
|
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 |
|
 |
starman2049
Joined: 19 Sep 2005 Posts: 75
|
Posted: Fri May 26, 2006 2:18 pm Post subject: |
|
|
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 |
|
 |
Energy
Joined: 26 Mar 2005 Posts: 133 Location: uk/beds/flitwick
|
Posted: Mon May 29, 2006 3:38 am Post subject: |
|
|
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 |
|
 |
|