Jump to content
  • Advertisement
Sign in to follow this  

CGSL speed problems

This topic is 5139 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello everyone! please help me on this one, since i've been breaking my head for quite a while now... :) i am working on a game right now, i have added recently per-pixel-lighting using CGSL. It looks great, but i have one big problem - speed... before i tell my specs i must say that Doom3 runs pretty fluid in my computer. my specs are: 1.5 GHZ cpu memory - 384 mega nVidia FX 5900 what i do is much like doom3: i have diffuse map, normal map and specular map. currently i am rendering a checkers board model and 26 quake3 models (with auto generated normal and specular maps). my FPS is ~30 right now. if i change my Fragment-Program to only do the most basic thing (just display the diffuse texture) i get ~50 FPS. i followed this diagram: http://legion.gibbering.net/zedus/bottleneck.gif and it seems that i am FP limited. here are the FP / VP i use http://legion.gibbering.net/zedus/BumpMapFP.cg.txt http://legion.gibbering.net/zedus/BumpMapVP.cg.txt does anyone have any idea how to change/optimize the FP to make it faster?? i tried using halfs instead of floats inside the FP and it didn't change anything. thanks for your time. :)

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!