So this 33 million flat unlit polys / second statistic is repeated everywhere.
Trying to get an idea of what homebrew can do, I bumped up the number of rows & slices in the gu\envmap sample to 96. Meaning there should be approx 100*100*2 (20000) tris in that torus. And the framerate drops to 40. Add another torus, the framerate drops to 20. 100*100*2*40 is a mere 800,000.
I didn't expect this sample to be fast but I didn't expect it to be that slow, either.
I turned off the lighting and texturing - no difference.
So what's the bottleneck?
Envmap performance way below par
Been a while since I looked at that sample, is it using a swizzled and mipmapped texture? If not, the texture cache is most likely destroying the performance.
http://www.dtek.chalmers.se/~tronic/PSPTexTool.zip Free texture converter for PSP with source. More to come.
Just going off memory here since I do not have that sample within reach.
1/
The sample uses X,Y,Z and Normals as floats. To increase performance they could be cut to bytes which would yeild a savings of 18 bytes per vertex.
2/
The sample furthermore does not do any form of tri-stripping. Doing tri-stripping would yeild a great performance boost. It will cut the number of vertices needed to be fed to the hardware.
3/
The sample uses indexed vertices. Indexed vertices on the PSP is very very bad. Use only a triangle list, or even better, non-indexed triangle stip(s) for more performance.
1/
The sample uses X,Y,Z and Normals as floats. To increase performance they could be cut to bytes which would yeild a savings of 18 bytes per vertex.
2/
The sample furthermore does not do any form of tri-stripping. Doing tri-stripping would yeild a great performance boost. It will cut the number of vertices needed to be fed to the hardware.
3/
The sample uses indexed vertices. Indexed vertices on the PSP is very very bad. Use only a triangle list, or even better, non-indexed triangle stip(s) for more performance.
-
- Posts: 171
- Joined: Mon Nov 14, 2005 1:32 am
- Location: Boston, Massachusetts
- Contact:
Oops, too tired, sorry :P
http://www.dtek.chalmers.se/~tronic/PSPTexTool.zip Free texture converter for PSP with source. More to come.
-
- Posts: 171
- Joined: Mon Nov 14, 2005 1:32 am
- Location: Boston, Massachusetts
- Contact:
-
- Posts: 43
- Joined: Wed Aug 03, 2005 6:58 pm