| View previous topic :: View next topic |
| Author |
Message |
matkeupon
Joined: 02 Jul 2005 Posts: 26
|
Posted: Sat Jul 02, 2005 11:05 pm Post subject: Having trouble with basic stuff |
|
|
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 |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Sat Jul 02, 2005 11:19 pm Post subject: |
|
|
| 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 |
|
 |
matkeupon
Joined: 02 Jul 2005 Posts: 26
|
Posted: Sat Jul 02, 2005 11:30 pm Post subject: |
|
|
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 |
|
 |
ReKleSS

Joined: 18 Jun 2005 Posts: 73 Location: Melbourne, Australia
|
Posted: Sun Jul 03, 2005 8:24 am Post subject: |
|
|
Everything is in subversion this time. Check the readme file for the sdk.
-ReK |
|
| Back to top |
|
 |
|