10 triangles=major slowdown?

Started by
3 comments, last by dirkduck 22 years, 8 months ago
Well, in my "engine" (notice the quotes ) I ahve it so if you press a key (S) it will add a triangle, then if you press a key(A) it will remove a triangle. So I was just playing around wiht it and I noticed that after about 10 triangles I get a major slowdown. Now im assuming this is because of bad programming on my part...cause I dont think OpenGL is that slow. So, any ideas why i would get the slowdown? thanks PS: I can post some code if you would want to see some. McDougal...DUCK McDougal
http://www.labino.net
Advertisement
Where are you drawing these triangles, if they are all on top of each other it will go slow cos of overdraw. 10 triangles placed about the screen would not make it slow down very much.

Fatalxc
well, im drawing them in a pattern kind of like stair steps, one in front and above the other.

McDougal...DUCK McDougal
http://www.labino.net
Well then the slowdown is probably a direct result of actually drawing the triangles, unless you are using a texture per triangle ... Just get a NeHe demo to see how to draw a triangle properly, if his stuff slows down as well, its not your programs problem.

Fatalxc
yeah, im using nehes tutorials and everything, I just got to my other ho8use today, and i have a 64MB GeForce2 here, and there is no slowdown (compared to my other house with an 8MB ati age pro turbo with major slowdown) so it may be my gfx card is too weak. thanks for the info
http://www.labino.net

This topic is closed to new replies.

Advertisement