Jump to content


Photo

Shadow Optimization


  • Please log in to reply
111 replies to this topic

#76 DoubleYou

DoubleYou

    Wiki Stepper

  • Super Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 4,655 posts

Posted 05 July 2015 - 02:14 PM

fInteriorShadowDistance

fInteriorShadowDistance sets the distance that shadows are cast from the player while indoors. Wherever no shadows are cast, the place is put in a perpetual shadow, effectively decreasing the light cast indoors. See fShadowDistance for the outdoor shadow distance.

Default is 3000.

fInteriorShadowDistance=(0,0.0001,...)


#77 DoubleYou

DoubleYou

    Wiki Stepper

  • Super Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 4,655 posts

Posted 05 July 2015 - 02:21 PM

iBlurDeferredShadowMask

iBlurDeferredShadowMask sets the amount of blurring applied to shadows. It is NOT dependent upon bDeferredShadows being enabled. Lower values make sharper shadows. Higher values make softer shadows. Negative values produces the maximum blur level. Lowering this value may help reduce the aura or glow around the player. This should be set to at least 1 if using ENB shadows.

Default is 5. Low is 0. Medium is 1. High and Ultra presets are 3.

iBlurDeferredShadowMask=(-1,0,1,...)


#78 TechAngel85

TechAngel85

    Akatosh

  • Administrators
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 12,977 posts

Posted 05 July 2015 - 03:26 PM

 

iBlurDeferredShadowMask

iBlurDeferredShadowMask sets the amount of blurring applied to shadows. It is NOT dependent upon bDeferredShadows being enabled. Lower values make sharper shadows. Higher values make softer shadows. Negative values produces the maximum blur level. Lowering this value may help reduce the aura or glow around the player. This should be set to at least 1 if using ENB shadows.

Default is 5. Low is 0. Medium is 1. High and Ultra presets are 3.

iBlurDeferredShadowMask=(-1,0,1,...)

Boris says to keep this on 3 for ENBSeries.



#79 DoubleYou

DoubleYou

    Wiki Stepper

  • Super Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 4,655 posts

Posted 05 July 2015 - 03:50 PM

Boris says to keep this on 3 for ENBSeries.

I have looked at Boris's statements in the threads mentioned, and it is clear that he just copied and pasted the iBlurDeferredShadowMask value he had in his INI along with the ZPrepass INI settings since "he wasn't sure which settings affected ZPrepass in Skyrim" (rough quote). I think it likely that he linked iBlurDeferredShadowMask with bShadowMaskZPrepass, and therefore mistakenly included that value. Nevertheless, iBlurDeferredShadowMask has nothing to do with ZPrepass, so to say that it must be set to 3 for ENB ZPrepass to work must be incorrect, although recommending it to be 3 will not cause any harm. bShadowMaskZPrepass probably applies Skyrim's buggy ZPrepass implementation (observe what happens when bMainZPrepass is set to 1 to see how buggy it is) to the Shadow Mask, which iBlurDeferredShadowMask simply applies blur to.

 

I note that iBlurDeferredShadowMask must be set to at least 1 if using ENB shadows as it causes buggy shadow edges if set to 0 (effectively off). I intend to eventually illustrate this once I apply the INI settings to ENB shadows.



#80 DoubleYou

DoubleYou

    Wiki Stepper

  • Super Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 4,655 posts

Posted 05 July 2015 - 04:01 PM

fShadowBiasScale

fShadowBiasScale sets the size of the shadows applied to surfaces. Low values produces larger shadows, but cause more shadow striping. Slightly higher values cause slightly smaller shadows, but cause far less shadow striping. Extremely high values eventually remove shadows completely, although at little to no performance gain. Negative values apply shadows progressively more and more until everything around the player is covered in shadow, effectively removing the lighting around the player. fShadowBiasScale is recommended to be set to 1.

 

250px-FShadowBiasScale_%3D_-1.jpg

fShadowBiasScale = -1
250px-FShadowBiasScale_%3D_0.jpg

fShadowBiasScale = 0
250px-FShadowBiasScale_%3D_0.15.jpg

fShadowBiasScale = 0.15
250px-FShadowBiasScale_%3D_0.25.jpg

fShadowBiasScale = 0.25
250px-FShadowBiasScale_%3D_0.5.jpg

fShadowBiasScale = 0.5
250px-FShadowBiasScale_%3D_1.jpg

fShadowBiasScale = 1
250px-FShadowBiasScale_%3D_1.5.jpg

fShadowBiasScale = 1.5
250px-FShadowBiasScale_%3D_2.jpg

fShadowBiasScale = 2
250px-FShadowBiasScale_%3D_8.jpg

fShadowBiasScale = 8

 

Default is 1. Low is 0.5. Medium is 0.3. High is 0.25. Ultra is 0.15.

fShadowBiasScale=(...,-0.0001,0,0.0001,...)

(See full size images here)



#81 oqhansoloqo

oqhansoloqo

    High King

  • Staff
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 1,398 posts

Posted 05 July 2015 - 04:28 PM

That was the main way I got rid of "most" of my shadow striping issues (fShadowBiasScale = 1).


  • 0

#82 GrantSP

GrantSP

    The antipodean

  • Super Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 4,333 posts

Posted 05 July 2015 - 06:47 PM

@DoubleYou you are to be commended for your diligence in this endeavour, unwrapping the complexities of the ini file is not something the faint at heart should contemplate.  ::):



#83 DoubleYou

DoubleYou

    Wiki Stepper

  • Super Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 4,655 posts

Posted 05 July 2015 - 07:28 PM

@DoubleYou you are to be commended for your diligence in this endeavour, unwrapping the complexities of the ini file is not something the faint at heart should contemplate.  ::):

Which is why I eat oatmeal :;):



#84 DoubleYou

DoubleYou

    Wiki Stepper

  • Super Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 4,655 posts

Posted 15 August 2015 - 09:59 PM

I am recommending the following settings for shadows after my testing:

[Display]
bDeferredShadows=1
bShadowMaskZPrepass=0
fInteriorShadowDistance=4000.0000
fShadowBiasScale=1
fShadowDistance=2800.0000
iBlurDeferredShadowMask=4
iShadowFilter=3
iShadowMapResolution=1366
;set iShadowMapResolution to your screen width


#85 TechAngel85

TechAngel85

    Akatosh

  • Administrators
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 12,977 posts

Posted 16 August 2015 - 01:34 AM

Quick question: Who are you recommending these for? All users? All screen resolutions?

 

The reason I'm asking is because I have mine set to the below without too much issue:

bShadowMaskZPrepass =0
bDeferredShadows =1
bDrawLandShadows =1
bDrawShadows =1
bShadowsOnGrass =1
bTreesReceiveShadows =1
iBlurDeferredShadowMask =3
iShadowMode =3
iShadowFilter =3
iShadowMapResolution =2048
iShadowMaskQuarter =4
fInteriorShadowDistance =3000.0000
fShadowBiasScale =1
fShadowDistance =5000.0000
fShadowLODStartFade =200.0000

You're also missing some in there that deal with shadows which some people will end up asking about:

  • bDrawLandShadows =1
  • bShadowsOnGrass =1
  • bTreesReceiveShadows =1
  • fShadowLODStartFade =200.0000


#86 DoubleYou

DoubleYou

    Wiki Stepper

  • Super Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 4,655 posts

Posted 16 August 2015 - 05:42 AM

Higher resolution screens should alter iShadowMapResolution to their screen width, as I have already indicated.

 

Also, remember these settings are for vanilla, non-ENB users.

 

fShadowDistance, which you have very high, seems to be very buggy, unfortunately, at high settings. It causes flickering on shadows that are too far away in my testing, and may increase shadow pop-in. Unfortunately, it is also buggy at low levels, causing a distinct line of change. Default is 2500 and Ultra setting is 3000. I found 2800 to be the better compromise. ENB users should be able to increase this with no problem.

 

bDrawLandShadows is already in the Skyrim Configuration settings guide and can be toggled on/off at will for better/worse performance. I haven't tested it if is buggy or not.

bShadowsOnGrass is already in the Skyrim Configuration settings guide and can be toggled on/off at will for better/worse performance.

bTreesReceiveShadows is already in the Skyrim Configuration settings guide and can be toggled on/off at will for better/worse performance.

fShadowLODStartFade -- I simply haven't been able to figure out if this setting does anything at all. Currently I think it does nothing.



#87 TirigonX

TirigonX

    Guard

  • Members
  • PipPip
  • 191 posts

Posted 16 August 2015 - 06:50 AM

Ultra setting of fShadowDistance is 8000, not 3000


  • 0

#88 DoubleYou

DoubleYou

    Wiki Stepper

  • Super Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 4,655 posts

Posted 16 August 2015 - 07:20 AM

Sorry, my mistake. Been staring at INI settings too long. Don't know where 3000 came from.



#89 TechAngel85

TechAngel85

    Akatosh

  • Administrators
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 12,977 posts

Posted 16 August 2015 - 09:54 AM

Thanks! I try out these new settings. Mine where probably tweaked for ENB but I haven't been using one since the last release due to doing a lot of testing and working on my own mod.



#90 DoubleYou

DoubleYou

    Wiki Stepper

  • Super Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 4,655 posts

Posted 16 August 2015 - 11:22 AM

I'd say that ENB users probably (It would need testing as I don't use one because my system is too weak) would be best off with the following:
[Display]
bDeferredShadows=1
bShadowMaskZPrepass=0
fInteriorShadowDistance=4000
fShadowBiasScale=0.4
;Somewhere between 0.1 and 0.6 probably is best for fShadowBiasScale
fShadowDistance=4000
;May increase fShadowDistance to higher values
iBlurDeferredShadowMask=1
;Setting iBlurDeferredShadowMask to 0 will cause buggy ENB shadows. This may be increased at user discretion.
iShadowFilter=3
iShadowMapResolution=1920
;set iShadowMapResolution to your screen width
Edit: Removed superfluous INI settings from the recommendations that do not do anything.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users