Anybody can tell me how to use NVShaderPerf?

A forum for the discussion and development of programs to assist working on or playing with the Vegastrike engine and data sets.
Post Reply
chuck_starchaser
Elite
Elite
Posts: 8014
Joined: Fri Sep 05, 2003 4:03 am
Location: Montreal
Contact:

Anybody can tell me how to use NVShaderPerf?

Post by chuck_starchaser »

Damn nVidia! Always the same thing; hardly any documentation on any programs they offer. I don't understand anything in their tutorial page:
http://developer.download.nvidia.com/to ... torial.pdf
My first attempt was:

Code: Select all

NVShaderPerf -gpu G80 -type glsl_fp -function stdFS -profile ps_4_0 ambientmapped_simple.fp
but it complains that the 4_0 profile doesn't agree with type glsl_fp. Tried 3_0, 2_0, 2_a... same thing. No idea what the hell -function means, btw. Been trying all kinds of stuff, and all I get is one error message or another.

If I get rid of -profile option, it tells me Error spawning Cg, cannot find file specified. What the hell is going on?
chuck_starchaser
Elite
Elite
Posts: 8014
Joined: Fri Sep 05, 2003 4:03 am
Location: Montreal
Contact:

Post by chuck_starchaser »

Klauss solved my problem over Google chat.
The problem is that NVShaderPerf needs to se Cg installed.
Simplest solution is to install their SDK 10 for OpenGL first.
Works like a charm now.
Post Reply