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 

sceGuGetMemory??? explain please

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



Joined: 19 Oct 2005
Posts: 6

PostPosted: Fri Oct 21, 2005 8:24 pm    Post subject: sceGuGetMemory??? explain please Reply with quote

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
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sat Oct 22, 2005 12:55 am    Post subject: Reply with quote

Moved to the appropiate forum.
Back to top
View user's profile Send private message
Paco



Joined: 09 Oct 2005
Posts: 54

PostPosted: Sat Oct 22, 2005 4:42 am    Post subject: Reply with quote

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
View user's profile Send private message
chp



Joined: 23 Jun 2004
Posts: 313

PostPosted: Sat Oct 22, 2005 5:21 am    Post subject: Reply with quote

Textures need qword alignment, vertex arrays can be word-aligned.
_________________
GE Dominator
Back to top
View user's profile Send private message
Paco



Joined: 09 Oct 2005
Posts: 54

PostPosted: Sat Oct 22, 2005 9:17 am    Post subject: Reply with quote

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