
slow :( :( :(
hello.
i have a problem when im trying to draw a lot of ''gluSphere''s
i need it for my game.. its like tetris with balls. for it, i need up to 150 balls. when i draw them (even 30-40) the program becomes extremly slow. is there a way to improve the speed ? or maybe its just it, and it just requires lots of resources from the video card ?
i have p3 800, GF2 GTS, 256ram.
thank u for any reply or help
p.s. if there is no solution, 2 months of work will go to the recycle bin... =''(

How big are your slices/stacks? If your using up to 150, you probably can get away with a small number. Also check your texturing (ie, if your binding the texture for every ball that may decrease performance a bit).
Luigi Pino
The 23rd Dimension
Luigi Pino
The 23rd Dimension
October 25, 2002 03:04 PM
i reduced my slices/stacks. it looks a bit ugly, but it works :D
thanks u very much
thanks u very much



If they are not all visible at the same time, you might want to do some Frustrum Culling. It can greatly improve your performances.
For Frustum Culling :
www.markmorley.com
========================
Leyder Dylan
http://ibelgique.ifrance.com/Slug-Production/
www.markmorley.com
========================
Leyder Dylan
http://ibelgique.ifrance.com/Slug-Production/
========================Leyder Dylan (dylan.leyder@slug-production.be.tf http://users.skynet.be/fa550206/Slug-Production/Index.htm/
Why you don''t use a Display List for one sphere then you use it for the other sphere ?
========================
Leyder Dylan
http://ibelgique.ifrance.com/Slug-Production/
========================
Leyder Dylan
http://ibelgique.ifrance.com/Slug-Production/
========================Leyder Dylan (dylan.leyder@slug-production.be.tf http://users.skynet.be/fa550206/Slug-Production/Index.htm/
coz i skipped that chapter in the book and ment to come back to it later 
anyway, il try to use display lists now.
thanks for the idea of Frustum Culling, i'l try to do it. nice tut too. i really appreciate your help @ all. ty
[edited by - sbsergey on October 26, 2002 11:01:18 AM]

anyway, il try to use display lists now.
thanks for the idea of Frustum Culling, i'l try to do it. nice tut too. i really appreciate your help @ all. ty

[edited by - sbsergey on October 26, 2002 11:01:18 AM]
ok.. i made the display list.. and to tell the truth i dont see any difference. the fps are still low, and its still same =''(
depending on the vid card display lists can actally be a little slower. but there usually a lot faster. It all depends on the card.
One thing you might want to try...
If the sphere is not transparent you only need to draw one half of it. The other half is never seen! That would eleminate half the polys!
One thing you might want to try...
If the sphere is not transparent you only need to draw one half of it. The other half is never seen! That would eleminate half the polys!
------------------------------Piggies, I need more piggies![pig][pig][pig][pig][pig][pig]------------------------------Do not invoke the wrath of the Irken elite. [flaming]
Ohhh....
I just thought of something else, how are you drawing the sphere.
I''m guessing your useing glVertex to draw quads/triangles...
That means that your sending each vertex to the vid card 4 times. Thats a serious wast of bandwidth.
The solution Vertex arrays.
How they work is you put all your vertecies in a list then just draw by referencing an index. Look up the glDrawElements command for examples.
I''ll also send my tutorial to nehe again and see if he can put on the site.
I just thought of something else, how are you drawing the sphere.
I''m guessing your useing glVertex to draw quads/triangles...
That means that your sending each vertex to the vid card 4 times. Thats a serious wast of bandwidth.
The solution Vertex arrays.
How they work is you put all your vertecies in a list then just draw by referencing an index. Look up the glDrawElements command for examples.
I''ll also send my tutorial to nehe again and see if he can put on the site.
------------------------------Piggies, I need more piggies![pig][pig][pig][pig][pig][pig]------------------------------Do not invoke the wrath of the Irken elite. [flaming]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement