I'm currently working on PCF filtered shadows for Cubemaps.
But apparently my current solution uses 1116 instructions but the limit is 1024.
So is there a way to cincrease that limit within oger? Because I haven't found anything in the cg forums.
I will evetually redo the thing in glsl and hlsl becasue Nvidia discontinued cg because it apparantly had a lot of problems as it turns out, but for the moment I would like to finish this using cg.
So is there a way around the instruction limit?
Inccrease CG instruction limit
-
- Goblin
- Posts: 253
- Joined: Sat Sep 28, 2013 3:46 pm
- x 10
- tod
- Troll
- Posts: 1394
- Joined: Wed Aug 02, 2006 9:41 am
- Location: Bucharest
- x 94
- Contact:
Re: Inccrease CG instruction limit
Just specify I higher shader version in your program file.
Like vp40/fp40 or whatever your card reports as supported.
Like vp40/fp40 or whatever your card reports as supported.
-
- Goblin
- Posts: 253
- Joined: Sat Sep 28, 2013 3:46 pm
- x 10
Re: Inccrease CG instruction limit
Still doesnt wotk
I replaced the profiles with vp40 and ps_5_0 and it still gives me the same message.
I'm using under linux with opengl on a gtx 770
I replaced the profiles with vp40 and ps_5_0 and it still gives me the same message.
I'm using under linux with opengl on a gtx 770
- c6burns
- Beholder
- Posts: 1512
- Joined: Fri Feb 22, 2013 4:44 am
- Location: Deep behind enemy lines
- x 138
Re: Inccrease CG instruction limit
ps_5_0 is for DX11 pixel shaders. vp40 and fp40 are for GLSL vertex and fragment programs respectively. You can check in your ogre log which profiles are supported by your hardware. 1024 instruction limit sounds like arbfp1
-
- Goblin
- Posts: 253
- Joined: Sat Sep 28, 2013 3:46 pm
- x 10
Re: Inccrease CG instruction limit
I'm modifing the Deferred Shadign stuff for the shadows, specifcally Light_materialps.cg
I modfied all cg (not sm4 cg) entrys in deferred_post.program to ps_5_0 and vs_5_0 and vp40 and pf40, but it still won't go any higher than 1024.
Maybe I need to replace it somewhere else or change somthin in the sourcecode, I'löl check when I'm, home.
EDIT: Before it was indeed arbpf1
I modfied all cg (not sm4 cg) entrys in deferred_post.program to ps_5_0 and vs_5_0 and vp40 and pf40, but it still won't go any higher than 1024.
Maybe I need to replace it somewhere else or change somthin in the sourcecode, I'löl check when I'm, home.
EDIT: Before it was indeed arbpf1
-
- Goblin
- Posts: 253
- Joined: Sat Sep 28, 2013 3:46 pm
- x 10
Re: Inccrease CG instruction limit
Turns out whoever made DS hardcoded the profiels in the sourcecode, had to change that, seams to work now.
Thasnks
Thasnks