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 

Partially Screen Flicker issue

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



Joined: 01 Feb 2006
Posts: 26
Location: Sydney

PostPosted: Tue Mar 28, 2006 9:19 am    Post subject: Partially Screen Flicker issue Reply with quote

Hi Guys

Wondering if anybody can give me some ideas into what is causing a screen flick problem. Basically I'm displaying an multiple images, then swapping the display buffer.

Here is how the problem is created :-

In the first display buffer I will display full screen image A, and in the second buffer I display full screen image B. When buffer A is display everything is good, when buffer B is displayed, the last 16 pixels of image A flicker on the top of the image B.

My thoughts :-

I think perhaps there is a sycn issue such that I'm displaying the second buffer before updating I, but even still this problem should not occur as image A is never written into the second buffer.

Does anybody have any idea what is going wrong??? I can supply the source if anybody is interested cause obviously that would help, just let me know and I'll forward you the tar file with all source.

Thanks hope someone can help me
Back to top
View user's profile Send private message
weltall



Joined: 20 Feb 2004
Posts: 310

PostPosted: Tue Mar 28, 2006 3:11 pm    Post subject: Reply with quote

did you write back the cpu cache?
Back to top
View user's profile Send private message Visit poster's website
Garak



Joined: 27 Jul 2005
Posts: 46

PostPosted: Wed Mar 29, 2006 5:38 am    Post subject: Reply with quote

Results such as those described in your post often occur when you flip your buffers without waiting for the vblank to occur.

If you are not allready, try calling sceDisplayWaitVblankStart() before doing a buffer swap.

Garak
Back to top
View user's profile Send private message Send e-mail AIM Address
ipsp



Joined: 01 Feb 2006
Posts: 26
Location: Sydney

PostPosted: Wed Mar 29, 2006 8:50 am    Post subject: Reply with quote

Actually the problem occured as I was writing past the end of the first part of vram, and hence when the first vram buffer was being written (i.e second vram buffer displayed), the images would quite obviously bleed into the seocnd buffer and hence why it was flickering, only where i was overriding the vram buffer.

I tried 2 different solutions to fix this, basically I made the vram area larger so they were not directly adjacent to one other, this should have worked, but I must have not configured the buffers correctly as i got some weird results.

The second solution was to scale images such that they never go past the end of the vram buffer, and this worked very well.

Thanks for everybodys input but this one was solved by addressing the real problem writing past the end of the specified vram.
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