DGPUShaderManager - Problem when starting a race or selecting a car

K

ksMafia

  • ksMafia

Hi,

when I start Racer and I want to select a car or start a race I get the attached error message. It's about the DPGUShaderManager and it has problems creating a "cg fragment program". I'm running Win XP 2 GHz, 1 GB Ram.
I hope there is a possibility to fix this.
Have a nice day.
 

Attachments

  • Screenshot Racer.JPG
    Screenshot Racer.JPG
    38.7 KB · Views: 525
Looks like your graphics card can't handle the bumpmap shader...

You could adjust the shader program to use less instructions, or go into the car folder, open "car.shd" with a text editor.
Find where it says "dyn_standard_bump_reflect_f.cg" and replace it with "dyn_standard_reflect_f.cg". Find "dyn_standard_bump_reflect_v.cg" and replace with "dyn_standard_reflect_v.cg". This uses a simpler cg shader.

I don't know which version of Racer you're using but it might also be fixed by getting updated. This problem has come up before so the recent default shaders should be more compatible with older cards.
 
  • ksMafia

Looks like your graphics card can't handle the bumpmap shader...

You could adjust the shader program to use less instructions, or go into the car folder, open "car.shd" with a text editor.
Find where it says "dyn_standard_bump_reflect_f.cg" and replace it with "dyn_standard_reflect_f.cg". Find "dyn_standard_bump_reflect_v.cg" and replace with "dyn_standard_reflect_v.cg". This uses a simpler cg shader.

I don't know which version of Racer you're using but it might also be fixed by getting updated. This problem has come up before so the recent default shaders should be more compatible with older cards.
The second option seems quite uncomfortable because i haven't installed new cars so I guess if I have to change this at the default cars I would need to do this whenever I install a new car -> quite time consuming.
But the first one: How do I do it? :confused:
I run 0.8.8 so there's no possibility to update:)
 
  • IAmCorbin

Same Problem

I am experiencing the same issue. I just installed Racer.V088 on a Toshiba Satellite A135-S2326 Laptop with ATI Radeon Xpress 200M integrated video.

Here is the Error:

Code:
DGPUShaderManager:MakeObject(dyn_standard_bump_reflect_f.cg): can't create CG fragment shader program
CG ERROR : "The combile returned an error."
data/renderer/shaders_ldr/dyn_standard_bump_reflect_f.cg(86) : warning C7011: implicit cast from "float3" to "float"
...similar 4 lines...
(0) : error C6003 : Arithmetic instruction limit of 64 exceeded; 72 arithmetic instructions needed to complile program
 
  • IAmCorbin

You could adjust the shader program to use less instructions, or go into the car folder, open "car.shd" with a text editor.
Find where it says "dyn_standard_bump_reflect_f.cg" and replace it with "dyn_standard_reflect_f.cg". Find "dyn_standard_bump_reflect_v.cg" and replace with "dyn_standard_reflect_v.cg"...

Tried this and it dropped down to 69 instructions needed from 72, looks like I have to get it down to 64 to run though, anything else I can adjust?
 
Well, the .cg files are text files, and they're in data\renderer\shaders_hdr.

One thing you can drop without significant visual differences is the sky color. It mostly affects distant objects, so as long as the car stays near the camera it won't be an issue.

Code:
  // Get sky gradient color
  skyColor.rgb=GetSkyColor(lightDirection,IN.Direction.xyz,IN.RayleighColor,IN.MieColor,atmosRayleigh,atmosMie,lightColor,lightAmbient);
Comment this line out (// at the start) as well as this line further down:
Code:
outColor.rgb=lerp(skyColor,baseCol,IN.extinction);

Should hopefully reduce the number instructions enough for it to run.
 
  • ksMafia

What else isn't needed so much? It's 65 at a limit of 64 instead of 66 at a limit of 64.
 

Latest News

How long have you been simracing

  • < 1 year

    Votes: 346 15.5%
  • < 2 years

    Votes: 239 10.7%
  • < 3 years

    Votes: 238 10.7%
  • < 4 years

    Votes: 177 7.9%
  • < 5 years

    Votes: 298 13.4%
  • < 10 years

    Votes: 257 11.5%
  • < 15 years

    Votes: 164 7.4%
  • < 20 years

    Votes: 125 5.6%
  • < 25 years

    Votes: 99 4.4%
  • Ok, I am a dinosaur

    Votes: 288 12.9%
Back
Top