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 

raw display test => bad result !

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



Joined: 19 Mar 2006
Posts: 22

PostPosted: Wed Apr 05, 2006 5:40 am    Post subject: raw display test => bad result ! Reply with quote

hi guys

i've just started psp dev with the sdk toolchain
i can compile everything i want, great

i've made a simple change to the cube sample to display 100 cubes
but the perf are very bad !!
what is the best way to display geometries ?

it seems the cube sample is only a good tutorial sample but doesn't have to be referenced in order to display a lot of geometries !

any ideas ?
thanks in advance !
Back to top
View user's profile Send private message Send e-mail
zoret



Joined: 19 Mar 2006
Posts: 22

PostPosted: Wed Apr 05, 2006 7:39 am    Post subject: Reply with quote

ok i think i've find my answer ! ;)

in the signals sample, the cube is displayed with a pregenerated command-list
is that the best way to display stuff ??

where is stored the display list ? (ram, vram ?)
can i delete the memeory allocated for the geometry when the display list is created ?

for example in the signals sample :
// generate callable command-list for cube rendering
{
sceGuStart(GU_CALL, smallList2);

// draw cube
sceGuDrawArray(GU_TRIANGLES,GU_TEXTURE_32BITF|GU_COLOR_8888|GU_VERTEX_32BITF|GU_TRANSFORM_3D,12*3,0,cubeVertices);

sceGuFinish();
sceGuSync(0,0);
}

free(cubevertices);

can i call a free on cubevertices after the creation of my display list ?
( ok i know, i cant' in that case cause cubevertices is static but this is just an example ! ;)
Back to top
View user's profile Send private message Send e-mail
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