🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Lesson 47 : CG Wave

Started by
0 comments, last by lc_overlord 16 years, 11 months ago
Hi, i have completed lesson 47 and now im trying to build on it further by adding multiple waves, using a phong fragment shader to make it look like water rather than a wire mesh, however im getting really low fps. I have implemented my version using opengl and cg in java with no loss to fps at all, why does it run so slow in C++ and is there any way i can improve it? Thanks :)
Advertisement
There are always ways to improve it, like using VBOs instead of immediate mode or animate the normal in the fragment shader and not in the vertex shader.

The reason it's slower in the cpp version is because your doing something different that causes it to go into software mode for a bit or that you may have some glFinish that the java version ignores or something like that.
It could also be v-sync that is acting up a bit.

If you give me more information then you might get a better answer.

This topic is closed to new replies.

Advertisement