Having trouble with basic stuff

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

Moderators: cheriff, TyRaNiD

Post Reply
matkeupon
Posts: 26
Joined: Sat Jul 02, 2005 10:58 pm

Having trouble with basic stuff

Post by matkeupon »

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.
TyRaNiD
Posts: 907
Joined: Sun Jan 18, 2004 12:23 am

Post by TyRaNiD »

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.
matkeupon
Posts: 26
Joined: Sat Jul 02, 2005 10:58 pm

Post by matkeupon »

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
User avatar
ReKleSS
Posts: 73
Joined: Sat Jun 18, 2005 12:57 pm
Location: Melbourne, Australia

Post by ReKleSS »

Everything is in subversion this time. Check the readme file for the sdk.
-ReK
Post Reply