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 

sceGuStart question

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



Joined: 05 Jul 2008
Posts: 229

PostPosted: Tue Feb 02, 2010 7:40 am    Post subject: sceGuStart question Reply with quote

with the sceGuStart function you provide a buffer where the GE can store the commands for processing. Those commands are generated by the several sceGu* functions but why must we define the buffer as a 16-bit-aligned int array.
Is it a question of performance ? or is it related how the GE accesthe buffer to retrieve the instruction to be draw ?
why not use sceGuGetMemory for it ?
Sorry i'm very noob in GU programming i have always use frameworks like opentri,sdl,osl etc ...

I have found a excelent tutorial about gu programming at:
http://jj.iamjunkie.net/docs/vertex_array_dcache.html
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Raphael



Joined: 17 Jan 2006
Posts: 646
Location: Germany

PostPosted: Tue Feb 02, 2010 7:57 pm    Post subject: Reply with quote

1.) because the gu hardware requires aligned memory to be able to access it. And IIRC the buffer must even be 32bit aligned, since each single gu command is stored in one single 32bit value.

2.) because sceGuGetMemory just returns a memory location *inside* the display buffer that was given by the last sceGuStart command.
_________________
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki

Alexander Berl
Back to top
View user's profile Send private message Visit poster's website
sauron_le_noir



Joined: 05 Jul 2008
Posts: 229

PostPosted: Wed Feb 03, 2010 2:11 am    Post subject: Reply with quote

thx for the reply using a high level graphic library is one thing but if you use directly
GU it's another.
I have saw many samples copy of some code but little documentation
Back to top
View user's profile Send private message Send e-mail MSN Messenger
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