Saurabh Akhauri wrote: > hi > i have a fairly heavy scenegraph, constituting shape3ds > with trianglearray as geometry. > was trying to make some gain in terms of frame rate by > using TriangleStripArray instead of TriangleArray as geometry of shape3d > > but dont see any improvement in frame rate for the two cases
There could be many reasons for this. Most of these reasons are to do with how you may have set the code up in the first place. For example, did you nominate BY_REFERENCE geometry? If so, j3d can't build display lists to send it to the card. Are you using textures? Texture calcs take up more computation time than just the triangle setup costs and so you might not be getting better FPS because the faster execution of the tri-strip is insignificant compared to the texture processing time per frame. Of course, you see some benefits maybe in the wrong situation. For example, if you are updating a lot of triangles every frame, then the lesser data requirements of the tri-strip means you can push more triangles to the card per frame over the system bus. If you are building once and just dumping it to the card and never changing it again, you probably won't see as big a gain. If you are already doing 100FPS, gut feeling says you probably won't notice any gains anyway. -- Justin Couch http://www.vlc.com.au/~justin/ Freelance Java Consultant http://www.yumetech.com/ Author, Java 3D FAQ Maintainer http://www.j3d.org/ ------------------------------------------------------------------- "Humanism is dead. Animals think, feel; so do machines now. Neither man nor woman is the measure of all things. Every organism processes data according to its domain, its environment; you, with all your brains, would be useless in a mouse's universe..." - Greg Bear, Slant ------------------------------------------------------------------- =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
