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 

3D question max vertex/poly count

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



Joined: 31 Dec 2005
Posts: 288

PostPosted: Sun Jul 23, 2006 9:22 am    Post subject: 3D question max vertex/poly count Reply with quote

Hi folks,

I was wondering, what is the max vertex/poly count to render when you want it to be 60 frame per sec? has anyone tried this or find it out?

greets ghoti
_________________
My PSP games:

Boxy II: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php
Back to top
View user's profile Send private message
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Sun Jul 23, 2006 12:59 pm    Post subject: Reply with quote

That'd depend highly on your engine and can also depend on the size of the polys... as well as texturing and everything else.
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
Ghoti



Joined: 31 Dec 2005
Posts: 288

PostPosted: Sun Jul 23, 2006 9:26 pm    Post subject: Reply with quote

:) yes i know that, didn't want an precise answer just an apprimation, I know with the pc every setup has other numbers but since the psp is always the same i guess there would be an lower or upperbound someone may have found. I just wanted to know it for a game i want to make.

how many active lights can there be used in a scene? (this should not be dependent to engines only to hardware i guess)

how does the texture size affect the rendertime?

i was planning to only load the texture once, then rendered a lot of the same models in a loop, then on to the other object. Wanted to use a sort of heightmap for the level, it only occured to me that how wonderfull the PSP may be it does have limitations, esspecially with the 3d stuff so if someone can give me some limitation info, it will save me some time and others so they can remember that info when creating games

greets ghoti (i hope i made some sense of myself)
_________________
My PSP games:

Boxy II: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php
Back to top
View user's profile Send private message
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Mon Jul 24, 2006 2:48 pm    Post subject: Reply with quote

1. four active lights per frame

2. texture max size is 512x512 ..now if that texture is
32bit texture (8888 format psm) then this would take
quiet a bit of memory usage ...something you forget easily
now do the math ...how much bits would this size texture
take up in memory ...and more importantly if you use vram
how much space would you have to play with in vram for texture

hint: its not a whole lot ;)
_________________
10011011 00101010 11010111 10001001 10111010
Back to top
View user's profile Send private message
sg57



Joined: 14 Oct 2005
Posts: 154

PostPosted: Mon Jul 24, 2006 5:53 pm    Post subject: Reply with quote

dot_blank wrote:
1. four active lights per frame

2. texture max size is 512x512 ..now if that texture is
32bit texture (8888 format psm) then this would take
quiet a bit of memory usage ...something you forget easily
now do the math ...how much bits would this size texture
take up in memory ...and more importantly if you use vram
how much space would you have to play with in vram for texture

hint: its not a whole lot ;)
You, and your mind games, you....
Back to top
View user's profile Send private message
AnonymousTipster



Joined: 01 Jul 2005
Posts: 197

PostPosted: Mon Jul 24, 2006 7:56 pm    Post subject: Reply with quote

If you're wanting to reduce the V/RAM usage and want to keep the texture size up, I'd suggest using the libjpeg's quantization function, as that can scale to 256 colours easily, and gives good results at a quarter of the RAM usage.
You can encode lossless jpegs too, so the format itself isn't a problem.

For reference, here is a sample:

These textures are 128x128 on the top, and the bottom are 64x64 (dither scaled using the jpeg library). The left hand textures are full PSM_8888, and the right hand textures are 256 colour T8 CLUT format.
Note that larger images with more colours may show colour loss in T8 mode.

Hope this is useful to you.
Back to top
View user's profile Send private message
Ghoti



Joined: 31 Dec 2005
Posts: 288

PostPosted: Mon Jul 24, 2006 11:56 pm    Post subject: Reply with quote

Hi folks,

thanks for all the replies :)

At this point i have only worked with the pnglib, can that one also be used with texturing?

I will look into the jpeg thing it looks really great, with that i can load up to almost 4 times more textures. The loading of those altered jpeg functions or the rendering is that also as quick or is there a speed penalty?

How much vram does the psp have? and how much normal ram?

ghoti
_________________
My PSP games:

Boxy II: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php
Back to top
View user's profile Send private message
AnonymousTipster



Joined: 01 Jul 2005
Posts: 197

PostPosted: Tue Jul 25, 2006 1:04 am    Post subject: Reply with quote

Pnglib will work fine for textures, but you don't get any dither scaling or quantization functions with it. I'm working on porting some that will work with pnglib though.
Using the quantization with jpegs means they take fractionally longer to load, but render-wise, T8 textures are usually faster then their PSM_8888 counterparts.

About VRAM, there is a total of 2MB, but lots of that goes into ZBuffer etc.
To quote:
Raphael wrote:
(2MB, and only 1.2MB for textures in 16bit mode with doublebuffering+zbuffer, 600kb in 32bit mode)


RAM ends up at about 22MB useable after loading a basic app.
There isn't a huge amount of VRAM, so use it's space wisely - you can also put larger or frequently used vertex buffers in VRAM to speed up render times. You hopefully won't run into RAM issues unless you're doing something rather demanding (like a web browser v_v ).
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