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 

Having trouble with basic stuff

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



Joined: 02 Jul 2005
Posts: 26

PostPosted: Sat Jul 02, 2005 11:05 pm    Post subject: Having trouble with basic stuff Reply with quote

Hi all,

I'm starting dev on the PSP, and I'm having some trouble figuring basic stuff out. Looks like I'm not doing some stuff correctly.

As a test I tried to have a small 16x16 bitmap blitted on screen, moving from left to right. My problem is that, even when using double buffering, the bitmap flickers and sometimes it isn't drawn entirely.

When I use sceKernelDcacheWritebackAll() before switching the framebuffer, then the display is correct and no more flickers. So I guess writeback isn't disabled on the framebuffer memory.

Is that right, or am I missing something ? How do you set the cache on the PSP ??

Thanks in advance.
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Sat Jul 02, 2005 11:19 pm    Post subject: Reply with quote

Ensure that you pointer to vram is or'ed with 0x40000000. i.e. in phsyical memory vram is at 0x04000000, change that to 0x44000000. That will cure your cache issues.
Back to top
View user's profile Send private message
matkeupon



Joined: 02 Jul 2005
Posts: 26

PostPosted: Sat Jul 02, 2005 11:30 pm    Post subject: Reply with quote

Thanks, TyRaNiD, I guess I didn't search the forum enough before posting as this can be found on the page 2...

Another question, as I am really lost I don't even know where to find the pspsdk updates nor the cvs...

Thanks again
Back to top
View user's profile Send private message
ReKleSS



Joined: 18 Jun 2005
Posts: 73
Location: Melbourne, Australia

PostPosted: Sun Jul 03, 2005 8:24 am    Post subject: Reply with quote

Everything is in subversion this time. Check the readme file for the sdk.
-ReK
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