Page 1 of 2
New optimized DOF code for K-ENB Extensive & Kountervibe
Posted: 03 Aug 2013, 14:29
by arsil
For testing.
New DOF code for K ENB Extensive & Kountervibe ENB Extensive (0.195 or higher).
Highly optimized.
Should be almost pixel-perfect with the original shaders (but much faster).
My mini-changelog for K ENB Extensive DOF code:
- Exposed MaxDepthOfFieldQuality parameter to GUI
- DOF quality can be decreased by EAdaptiveQualityFactor - optional, depends on enblocal.ini.
- DOF quality depends on discRadius variable - code uses dynamic branching, so if most pixels are in focus you get huge speed gain (and this is the most frequent scenario).
- Highly optimized code: average number of instructions per sample went down from 44 to 21 with much less pressure on transcendental instructions.
Future work:
- Better (more smooth and optimized) quality selection per blur radius.
http://www.arsil.user.icpnet.pl/downloa ... FA%201.zip
arsil "dot" user "dot" icpnet "dot" pl "slash" download "slash" enb-dof-optimized - ALFA 1 "dot" zip
My test scene (lot of grass, trees, etc.) (QUALITY 7):
- original code : 19.6 fps
- optimized code: 28.5 fps
Re: New optimized DOF code for K-ENB Extensive & Kountervibe
Posted: 06 Aug 2013, 07:29
by --JawZ--
Weird that you haven't gotten any feedback on this :|
Will try it out and compare it to the original code and see how it works
Re: New optimized DOF code for K-ENB Extensive & Kountervibe
Posted: 06 Aug 2013, 14:48
by Samurai_Smartie
What code do i need to use this DOF with other ENB's, if thats even possible? (aka stuff in enbeffect.fx)
Re: New optimized DOF code for K-ENB Extensive & Kountervibe
Posted: 06 Aug 2013, 19:27
by arsil
JawZ
Thanks! Looking forward to receiving your feedback
Normally I would PM Oyama, but I can't due to my user level on this forum
Samurai_Smartie
Sorry, can't help you. I am not an expert on various ENB presets. I can only guess, that "enbeffectprepass.fx" is pretty interchangeable.
Re: New optimized DOF code for K-ENB Extensive & Kountervibe
Posted: 06 Aug 2013, 20:49
by ENBSeries
Samurai_Smartie
enbeffectprepass.fx shader is compatible with most versions, but if you use very old which don't have support of this file, then it will be tricky to convert and definetly impossible without knowledge of shader programming.
Re: New optimized DOF code for K-ENB Extensive & Kountervibe
Posted: 06 Aug 2013, 21:20
by evok99
What does adaptive quality do?
Re: New optimized DOF code for K-ENB Extensive & Kountervibe
Posted: 08 Aug 2013, 09:39
by --JawZ--
arsil;
It takes a bit of more time than I thought to actually try this
But will do so now and include a bit of info on this in the Guide I'm putting together, yet again.
You could try reaching him over at the nexus until such time that you can PM him here, though now he is off taking car off of personal stuff out in the real world.
evok99;
Exactly what the words says it does, it adapts the quality based on your settings and performance. Haven't tried it yet so unsure if it changes quality by performance or just by the Quality setting in the enblocal.ini file.
Re: New optimized DOF code for K-ENB Extensive & Kountervibe
Posted: 08 Aug 2013, 16:30
by arsil
--JawZ-- wrote:
It takes a bit of more time than I thought to actually try this
But will do so now and include a bit of info on this in the Guide I'm putting together, yet again.
You could try reaching him over at the nexus until such time that you can PM him here, though now he is off taking car off of personal stuff out in the real world.
No worry:) I think Boris gave me required rights, so I can PM him. I just haven't had enough time for a couple of days:(
--JawZ-- wrote:
Haven't tried it yet so unsure if it changes quality by performance or just by the Quality setting in the enblocal.ini file.
It changes quality by how far the current FPS is from the desired one. By default it is disabled (in K-ENB & Kountervibe). I enabled it manually in my enblocal and it works. My modified shader drops various number of samples if FPS target is far from desired one. In most cases it should be almost invisible (especially on default DOF quality - 3).
Re: New optimized DOF code for K-ENB Extensive & Kountervibe
Posted: 09 Aug 2013, 00:02
by --JawZ--
Ah great, well I know the feeling.
Ah so I wasn't stretching when saying it was performance related, good to know
Re: New optimized DOF code for K-ENB Extensive & Kountervibe
Posted: 09 Aug 2013, 18:33
by Samurai_Smartie
Been playing Dragonborn with this for a good 2 days, using static DOF and quality 1.
No problems to report, the rendering time is usually around 0.0020 seconds.
Theres a little bug with certain objects who seem to have wrong depth information.
But i guess thats more a problem of the game asset than of the code.
/edit
coc DLC2ThirskMeadHallExterior01