| View previous topic :: View next topic |
| Author |
Message |
seewan
Joined: 19 Oct 2005 Posts: 6
|
Posted: Fri Oct 21, 2005 8:24 pm Post subject: sceGuGetMemory??? explain please |
|
|
sceGuGetMemory
when should I use this function .If i am loading alevel that need to be draw should i load in the memeory or the memeory from the dsiplaylist? |
|
| Back to top |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Sat Oct 22, 2005 12:55 am Post subject: |
|
|
| Moved to the appropiate forum. |
|
| Back to top |
|
 |
Paco
Joined: 09 Oct 2005 Posts: 54
|
Posted: Sat Oct 22, 2005 4:42 am Post subject: |
|
|
I guess don't use it except for quick & dirty apps. Also you may run into alignment problems, I think GetMemory gives dword-aligned memory but the vertex arrays need to be 16-byte aligned (not 100% sure of this). _________________ Paco |
|
| Back to top |
|
 |
chp
Joined: 23 Jun 2004 Posts: 313
|
Posted: Sat Oct 22, 2005 5:21 am Post subject: |
|
|
Textures need qword alignment, vertex arrays can be word-aligned. _________________ GE Dominator |
|
| Back to top |
|
 |
Paco
Joined: 09 Oct 2005 Posts: 54
|
Posted: Sat Oct 22, 2005 9:17 am Post subject: |
|
|
So GetMemory is fine for on-the-fly rendering of quads, debug traces and such (assuming it's not a lot of them)? I was having problems with that in my beginnings, had to insert some dummy commands like repeating some sceGuEnable() before I got my GetMemory-allocated vertex array to show up, when I moved it to a static align-16 array it went back to working fine.
I've been looking into the signals work being done in order to write some sort of dynamic vertex array which can reuse vertices that have already been rendered, but still not sure how to get it to work properly. _________________ Paco |
|
| Back to top |
|
 |
|