sceGuGetMemory??? explain please

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

Moderators: cheriff, TyRaNiD

Post Reply
seewan
Posts: 6
Joined: Wed Oct 19, 2005 8:14 pm

sceGuGetMemory??? explain please

Post by seewan »

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?
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

Moved to the appropiate forum.
Paco
Posts: 54
Joined: Sun Oct 09, 2005 6:53 pm

Post by Paco »

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
chp
Posts: 313
Joined: Wed Jun 23, 2004 7:16 am

Post by chp »

Textures need qword alignment, vertex arrays can be word-aligned.
GE Dominator
Paco
Posts: 54
Joined: Sun Oct 09, 2005 6:53 pm

Post by Paco »

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
Post Reply