NVIDIA code samples compilation


I was trying to build and run the volume render sample provided by nvidia. While the executable gives 300 frames per sec, when I compiled and ran the source code it gave me only about 3 fps.
I am using MS Visual Studio 2010 on Windows 7. My card is quadro5800fx.
Any help on this will be really helpful