Jump to content

Gain FPS with cockpit only shadows


Recommended Posts

If you want more frames per second, one easy way to achieve this, is to turn off the shadows. But many do not like DCS shadowless.

 

If you are ready to loose the world shadows, but love your cockpit shadows, there is a way if you are bold enough to edit your lua config files:

 

In the ... Eagle Dynamics\DCS World OpenBeta\Config\Effects\shadows.lua file I changed the values from {0.02, 2.5, 25.0, 250.0, 1500.0, 7000} to {0.02, 0.5, 0.6, 0.7, 0.8,1 }. This reduces the shadow range drastically and improves performance dramatically :thumbsup:

 

(I choose to modify the shadows high settings for my purpose)

 

{	--high
		4096,
		{0.02, 25.0, 100.0, 400.0, 1500.0, 7000},	
		{0.02, 0.5,  0.6, 0.7, 0.8,1 }   -- original: {0.02, 2.5,  25.0,  250.0, 1500.0, 7000}
	},

 

With 3600X & 1080Ti & Reverb for example you can have high cockpit shadows and still achieve constant 60 FPS!

 

(Disadvantage: No multiplayer)

CockpitShadowsHigh.thumb.JPG.18c6dff166570787fa59c9acfe2796f8.JPG

CockpitHigh2.thumb.JPG.e5f3c40a68228e33578e1ecfcd69b017.JPG


Edited by Motomouse

How to achieve high framerates in VR

VIC-20@1.108 MHz, onboard GPU, 5KB RAM, μυωπία goggles, Competition Pro HOTAS

Link to post
Share on other sites
Its sad that we have to continually potato out our settings to get decent FPS.

 

Well actually with this level of sim there should be more complex setting we should be able to set in options besides just basic settings..

 

at least these lua files give us these options to modify things when we find them.. but I would hope one day we have control over more refining of setttings in the ingame options..

 

 

Not everybody has the exact same PC nor can afford the more high end this game needs to some extent in VR mostly.. so we need to squeeze more performance when and where we can..


Edited by The_Nephilim

ASRock Z590 PHantom Gaming 4/AC / Intel i7 10700K @ 5.0Ghz / Noctua DHS-14 / Samsung 980 Pro M.2 1TB / Asus 1080GTX OC /  G. Skill Trident Z CAS 14 - 32GB RAM 3400MHZ XMP Profile / Oculus Rift S VR / HOTAS Cougar & MFD's / Buttkicker game simulation

Link to post
Share on other sites
If you want more frames per second, one easy way to achieve this, is to turn off the shadows. But many do not like DCS shadowless.

 

If you are ready to loose the world shadows, but love your cockpit shadows, there is a way if you are bold enough to edit your lua config files:

 

In the ... Eagle Dynamics\DCS World OpenBeta\Config\Effects\shadows.lua file I changed the values from {0.02, 2.5, 25.0, 250.0, 1500.0, 7000} to {0.02, 0.5, 0.6, 0.7, 0.8,1 }. This reduces the shadow range drastically and improves performance dramatically :thumbsup:

 

(I choose to modify the shadows high settings for my purpose)

 

{	--high
		4096,
		{0.02, 25.0, 100.0, 400.0, 1500.0, 7000},	
		{0.02, 0.5,  0.6, 0.7, 0.8,1 }   -- original: {0.02, 2.5,  25.0,  250.0, 1500.0, 7000}
	},

 

With 3600X & 1080Ti & Reverb for example you can have high cockpit shadows and still achieve constant 60 FPS!

 

(Disadvantage: No multiplayer)

Wow!! Thanks for sharing Motomouse! This is exactly what I was looking for! :thumbup:

(Well, I rather had ED provide us the option for cockpit only shadows in the core game, but I gave up on wishing and waiting for ED to hear me on this request..)

 

It's things like this that make this community so awesome! :cheer3nc:

System specs:

 

i7-8700K @stock speed - GTX 1080TI @ stock speed - AsRock Extreme4 Z370 - 32GB DDR4 @3GHz- HP Reverb v2 - Saitek Pro pedals - TM Warthog HOTAS - TM F/A-18 Grip - TM Cougar HOTAS (NN-Dan mod) & (throttle standalone mod) - Pointctrl & aux banks <-- must have for VR users!! - Andre's SimShaker Jetpad - Fully adjustable DIY playseat - VA+VAICOM

 

~ No war today... the enemy just called in sick ~ GUMMBAH

Link to post
Share on other sites

You dont understand the shadow settings correctly yet.

 

Shadows off, flat, low, medium, high setting controls the quality/type of the shadows. These are applied to your own plane and scenery objects (planes, bunkers, airfield objects ...).

 

The terrain object setting controls if terrain objects (trees, towns, ...) also use shadows.

 

The thread is about restricting the shadows to in cockpit shadows only. This will for example increase VR FPS from 40 to 60 FPS. (Alternative is no shadows at all for 60 FPS.). There is no such cockpit only shadows setting in DCS yet. It would be a nice addition and very welcome.

How to achieve high framerates in VR

VIC-20@1.108 MHz, onboard GPU, 5KB RAM, μυωπία goggles, Competition Pro HOTAS

Link to post
Share on other sites
Shadows are CPU thing, so it will work only if you have weaker CPU.

 

My RTX2080ti and i7 9700k can gain 50fps with shadows off, making it go from unbearable to decent, but with no cockpit shadows the game disappoints. This would be a helpful option for the game.

RTX 2080ti, I7 9700k, 32gb ram, SSD, Samsung Odyssey VR, MSFFB2, T-50 Throttle, Thrustmaster Rudder Pedals

Link to post
Share on other sites

Just had the opportunity to test this and it really does work very well!

 

I gained ±10fps going from low to "the adjusted" high, which was just enough for my pc to go from too much stutter, to no noticeable stutters at all :thumbup:

Also, as a bonus, the in cockpit shadows are much more crisp

 

I don't play MP, so for me this is a great addition. Thanks again for sharing.

 

 

Oh, by the way, it seems the shadows.lua file gets reset during updates, so you will need to change this after each update.

System specs:

 

i7-8700K @stock speed - GTX 1080TI @ stock speed - AsRock Extreme4 Z370 - 32GB DDR4 @3GHz- HP Reverb v2 - Saitek Pro pedals - TM Warthog HOTAS - TM F/A-18 Grip - TM Cougar HOTAS (NN-Dan mod) & (throttle standalone mod) - Pointctrl & aux banks <-- must have for VR users!! - Andre's SimShaker Jetpad - Fully adjustable DIY playseat - VA+VAICOM

 

~ No war today... the enemy just called in sick ~ GUMMBAH

Link to post
Share on other sites

You can also set the values to 0 to remove the rendering of the specific shadow cascade(s) completely which will reduce CPU overhead. Here is the shadows.lua I use: http://junk.kegetys.fi/shadows.lua

 

With that, all shadow settings use the same resolution (4096x4096 pixels, most GPU's should be fine with that) but the different settings have different amount of cascades instead. 'Low' setting has only one cascade, so you get shadows only in the cockpit, medium has two cascades and high has 3. The DCS default has 4 cascades on every setting and only the shadowmap resolution is different.

 

When you use terrain object shadows with that you still get shadows drawn as far as before, just the overhead is less and at least in VR the visual difference is quite small.

  • Like 2

As a cyborg, you will serve SHODAN well

http://www.kegetys.fi

Link to post
Share on other sites
You dont understand the shadow settings correctly yet.

 

Shadows off, flat, low, medium, high setting controls the quality/type of the shadows. These are applied to your own plane and scenery objects (planes, bunkers, airfield objects ...).

 

The terrain object setting controls if terrain objects (trees, towns, ...) also use shadows.

 

The thread is about restricting the shadows to in cockpit shadows only. This will for example increase VR FPS from 40 to 60 FPS. (Alternative is no shadows at all for 60 FPS.). There is no such cockpit only shadows setting in DCS yet. It would be a nice addition and very welcome.

 

 

You're right. I didn't understand how it worked.

 

Thanks.

Buzz

Link to post
Share on other sites

I use cockpit only shadows now with flat terrain object shadows in combination. The flat terrain object shadows are not costly at all and combined with high cockpit only scenery shadows it looks very nice.

 

Perhaps one way to improve performance for scenery object shadows for ED is to use a low detail lod model instead of the full detailed model to calculate the shadows? But I am no expert if this is possible at all.

How to achieve high framerates in VR

VIC-20@1.108 MHz, onboard GPU, 5KB RAM, μυωπία goggles, Competition Pro HOTAS

Link to post
Share on other sites

Many thanks to all who contributed, very helpful.

 

 

(including, and especially the OP, obvs)


Edited by Hippo

System spec: Intel i7 8700K (3.7 / 4.7 GHz), Asus Prime Z370-A, Zotac GTX 1080 Ti 11GB GDDR5x Blower (1480 / 1582 MHz), 16GB Corsair Vengeance LPX Black (2x8GB) DDR4 PC4-25600 3200 MHz, Samsung 960 EVO 250 GB NVME M.2 SSD (system drive), Samsung 970 EVO 1 TB NVME M.2 SSD (games drive), AOC U3477PQU Monitor, Oculus Rift S, Saitek X52 Pro

Link to post
Share on other sites
Shadows are CPU thing, so it will work only if you have weaker CPU.

 

Well, from what I read, DCS is CPU heavy so anything you can take off the CPU is a bonus in my opinion. This is actually working well for me.

Link to post
Share on other sites

ED should definitely implement this some way into their core game, so that it won't effect IC check for people who like to fly in MP

System specs:

 

i7-8700K @stock speed - GTX 1080TI @ stock speed - AsRock Extreme4 Z370 - 32GB DDR4 @3GHz- HP Reverb v2 - Saitek Pro pedals - TM Warthog HOTAS - TM F/A-18 Grip - TM Cougar HOTAS (NN-Dan mod) & (throttle standalone mod) - Pointctrl & aux banks <-- must have for VR users!! - Andre's SimShaker Jetpad - Fully adjustable DIY playseat - VA+VAICOM

 

~ No war today... the enemy just called in sick ~ GUMMBAH

Link to post
Share on other sites

works really well, but agreed, it would be great for this to be modifiable in game or via saved games... i did try just stuffing it into the saved games Config directory, but alas no effect..

SYSTEM SPECS: Hardware Intel Corei7-9700K @ 5.1 GHz, 32Gb RAM, EVGA 3090 XC3, Dell S2716DG, Thrustmaster Warthog + MFG Crosswinds V2, HP Reverb G2 @ 2836 x 2768
SOFTWARE: Microsoft Windows 10 Pro x64, VoiceAttack & VIACOM PRO, TacView

VR Stuff:   My Settings for 3090 and G2  My Settings for 1080ti  Shaders MOD for VR  My variant of Kegetys mod with clear water and also IC PASS for current beta & stable, Patch Status

 

1569924735_WildcardsBadgerFAASig.jpg.dbb8c2a337e37c2bfb12855f86d70fd5.jpg

Link to post
Share on other sites

Gain FPS with cockpit only shadows

 

Shadows are CPU thing, so it will work only if you have weaker CPU.

 

 

 

In VR the most powerful CPU struggles (my i9 9900k struggles a lot in intensive missions) and there every millisecond counts.

 

Great mod...unfortunately i won't try it as no MP no party for me :(

 

ED needs to add this as an official option.


Edited by VirusAM

Vincent "Virus" DThe

PC: R9 5900x/RTX2080Ti, 64GB RAM.

Joystick bases: Virpil T-50CM2

Joystick grips: Virpil T-50CM2

Throttles: Virpil T-50-CM3 Throttle

Hardware: VKB T-Rudder, Razer Tartarus, Winwing Take Off and Combat Ready Panels

VR: Oculus Quest 2

Monitor: Samsung Odyssey G5, TrackIr v5

Link to post
Share on other sites
You can also set the values to 0 to remove the rendering of the specific shadow cascade(s) completely which will reduce CPU overhead. Here is the shadows.lua I use: http://junk.kegetys.fi/shadows.lua

 

With that, all shadow settings use the same resolution (4096x4096 pixels, most GPU's should be fine with that) but the different settings have different amount of cascades instead. 'Low' setting has only one cascade, so you get shadows only in the cockpit, medium has two cascades and high has 3. The DCS default has 4 cascades on every setting and only the shadowmap resolution is different.

 

When you use terrain object shadows with that you still get shadows drawn as far as before, just the overhead is less and at least in VR the visual difference is quite small.

 

 

Hello, I changed the settings in the lua to match your settings. I set low in game. But when I spawned I had shadows on the exterior of my plane and everyone else's too. Any idea?

RTX 2080ti, I7 9700k, 32gb ram, SSD, Samsung Odyssey VR, MSFFB2, T-50 Throttle, Thrustmaster Rudder Pedals

Link to post
Share on other sites

did you restart the game between applying the shadows settings?

SYSTEM SPECS: Hardware Intel Corei7-9700K @ 5.1 GHz, 32Gb RAM, EVGA 3090 XC3, Dell S2716DG, Thrustmaster Warthog + MFG Crosswinds V2, HP Reverb G2 @ 2836 x 2768
SOFTWARE: Microsoft Windows 10 Pro x64, VoiceAttack & VIACOM PRO, TacView

VR Stuff:   My Settings for 3090 and G2  My Settings for 1080ti  Shaders MOD for VR  My variant of Kegetys mod with clear water and also IC PASS for current beta & stable, Patch Status

 

1569924735_WildcardsBadgerFAASig.jpg.dbb8c2a337e37c2bfb12855f86d70fd5.jpg

Link to post
Share on other sites
did you restart the game between applying the shadows settings?

 

Yes, the shadows are displaying on all external parts of the model as per usual.

 

Have i missed something

RTX 2080ti, I7 9700k, 32gb ram, SSD, Samsung Odyssey VR, MSFFB2, T-50 Throttle, Thrustmaster Rudder Pedals

Link to post
Share on other sites
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...