Jump to content

New fsr mod that enables you to use nvidias new upscaling algorithm


Recommended Posts

Posted

I downloaded this yesterday for the other sim.  I'm planning to use it with IL-2 tomorrow, unfortunately can't fly today.  Looking forward to seeing how this works out.  fsholger's mod has really worked out great for me.  thanks for the post!

Giovanni_Giorgio
Posted

Good stuff! Definitely worth trying.

Posted

Downloaded today, got very good results, everything runs smooth and high image quality.

I maxed antialiasing wich normaly kills my framerate.

 

I got 1070ti and reverb g2.

 

I say its a must.

I.JG3_CDRSEABEE
Posted

Is there a tutorial on this? 

  • Like 1
Posted
2 minutes ago, CDRSEABEE said:

Is there a tutorial on this? 


Download openvr_fsr_v2.0.zip
In your bin\game\ folder rename the original openvr_api.dll file as something else just in case you want to revert back
Unzip the openvr_fsr_v2.0.zip to bin\game\
Open up openvr_mod.cfg and amend the settings 
Launch the game.

The default .cfg file contains all the parameters:

{
  "fsr": {
    // enable image upscaling through AMD's FSR or NVIDIA's NIS
    "enabled": true,
    
    // if enabled, uses NVIDIA's Image Scaling instead of the default
    // AMD FidelityFX SuperResolution. Both algorithms work similarly, but produce
    // somewhat different results. You may want to experiment switching between the
    // two to determine which one you like better for a particular game.
    "useNIS": false,

    // Per-dimension render scale. If <1, will lower the game's render resolution
    // accordingly and afterwards upscale to the "native" resolution set in SteamVR.
    // If >1, the game will render at its "native" resolution, and afterwards the
    // image is upscaled to a higher resolution as per the given value.
    // If =1, effectively disables upsampling, but you'll still get the sharpening stage.
    // AMD presets:
    //   Ultra Quality => 0.77
    //   Quality       => 0.67
    //   Balanced      => 0.59
    //   Performance   => 0.50
    "renderScale": 0.77,

    // tune sharpness, values range from 0 to 1
    "sharpness": 0.9,
    
    // Only apply FSR/NIS to the given radius around the center of the image.
    // Anything outside this radius is upscaled by simple bilinear filtering,
    // which is cheaper and thus saves a bit of performance. Due to the design
    // of current HMD lenses, you can experiment with fairly small radii and may
    // still not see a noticeable difference.
    // Sensible values probably lie somewhere between [0.2, 1.0]. However, note
    // that, since the image is not spheric, even a value of 1.0 technically still
    // skips some pixels in the corner of the image, so if you want to completely
    // disable this optimization, you can choose a value of 2.
    // IMPORTANT: if you face issues like the view appearing offset or mismatched
    // between the eyes, turn this optimization off by setting the value to 2.0
    "radius": 0.5,

    // if enabled, applies a negative LOD bias to texture MIP levels
    // should theoretically improve texture detail in the upscaled image
    // IMPORTANT: if you experience issues with rendering like disappearing
    // textures or strange patterns in the rendering, try turning this off
    // by setting the value to false.
    "applyMIPBias": true,
    
    // If enabled, will visualize the radius to which FSR/NIS is applied.
    // Will also periodically log the GPU cost for applying FSR/NIS in the
    // current configuration.
    "debugMode": false
  }
}


 

  • Thanks 1
Posted

This is for VR only?

 

S!Blade<>

I.JG3_CDRSEABEE
Posted
35 minutes ago, Knarlfin said:


Download openvr_fsr_v2.0.zip
In your bin\game\ folder rename the original openvr_api.dll file as something else just in case you want to revert back
Unzip the openvr_fsr_v2.0.zip to bin\game\
Open up openvr_mod.cfg and amend the settings 
Launch the game.

The default .cfg file contains all the parameters:

{
  "fsr": {
    // enable image upscaling through AMD's FSR or NVIDIA's NIS
    "enabled": true,
    
    // if enabled, uses NVIDIA's Image Scaling instead of the default
    // AMD FidelityFX SuperResolution. Both algorithms work similarly, but produce
    // somewhat different results. You may want to experiment switching between the
    // two to determine which one you like better for a particular game.
    "useNIS": false,

    // Per-dimension render scale. If <1, will lower the game's render resolution
    // accordingly and afterwards upscale to the "native" resolution set in SteamVR.
    // If >1, the game will render at its "native" resolution, and afterwards the
    // image is upscaled to a higher resolution as per the given value.
    // If =1, effectively disables upsampling, but you'll still get the sharpening stage.
    // AMD presets:
    //   Ultra Quality => 0.77
    //   Quality       => 0.67
    //   Balanced      => 0.59
    //   Performance   => 0.50
    "renderScale": 0.77,

    // tune sharpness, values range from 0 to 1
    "sharpness": 0.9,
    
    // Only apply FSR/NIS to the given radius around the center of the image.
    // Anything outside this radius is upscaled by simple bilinear filtering,
    // which is cheaper and thus saves a bit of performance. Due to the design
    // of current HMD lenses, you can experiment with fairly small radii and may
    // still not see a noticeable difference.
    // Sensible values probably lie somewhere between [0.2, 1.0]. However, note
    // that, since the image is not spheric, even a value of 1.0 technically still
    // skips some pixels in the corner of the image, so if you want to completely
    // disable this optimization, you can choose a value of 2.
    // IMPORTANT: if you face issues like the view appearing offset or mismatched
    // between the eyes, turn this optimization off by setting the value to 2.0
    "radius": 0.5,

    // if enabled, applies a negative LOD bias to texture MIP levels
    // should theoretically improve texture detail in the upscaled image
    // IMPORTANT: if you experience issues with rendering like disappearing
    // textures or strange patterns in the rendering, try turning this off
    // by setting the value to false.
    "applyMIPBias": true,
    
    // If enabled, will visualize the radius to which FSR/NIS is applied.
    // Will also periodically log the GPU cost for applying FSR/NIS in the
    // current configuration.
    "debugMode": false
  }
}


 

Is this good for a G2 running a 3080?

Posted

I'm running it with a G2 and a 3080, still messing about with the in game settings but have it set to those default numbers in FSR.

34 minutes ago, BladeMeister said:

This is for VR only?

 

S!Blade<>

Yes

  • Thanks 1
  • Upvote 1
I.JG3_CDRSEABEE
Posted
20 minutes ago, Knarlfin said:

I'm running it with a G2 and a 3080, still messing about with the in game settings but have it set to those default numbers in FSR.

Yes

What SS and game settings are you using?

Posted (edited)
10 minutes ago, CDRSEABEE said:

What SS and game settings are you using?


I'm not sure if my settings are any good, still playing trial and error but here goes:

WMR

 

1566230168_1-WMRSettings20211122.thumb.PNG.f52368397470643d86d10696e322ae53.PNG

 

SteamVR

1842049897_2-SteamVRVideoSettings20211122.thumb.PNG.35e13a930bd52169942fb32050a87a8f.PNG

 

Startup.cfg

 

[KEY = graphics]
	3dhud = 0
	adapter = 0
	bloom_enable = 0
	canopy_ref = 0
	desktop_center = 1
	detail_rt_res = 1024
	draw_distance = 0.54500
	far_blocks = 0
	fps_counter = 0
	fps_limit = 0
	full_height = 768
	full_width = 1280
	fullscreen = 0
	gamma = 0.90000
	grass_distance = 0.00000
	hdr_enable = 0
	land_anisotropy = 2
	land_detail = 3
	land_tex_lods = 3
	max_cache_res = 1
	max_clouds_quality = 3
	mgpu_compatible = 0
	mirrors = 0
	msaa = 0
	multisampling = 1
	or_ca = 0.00000
	or_dummy = 0
	or_enable = 1
	or_height = 2494
	or_hud_rad = 0.850000
	or_hud_size = 0.75000
	or_ipd = 0.063063
	or_sipdc = 0.00000
	or_width = 2556
	post_sharpen = 0
	preset = 3
	prop_blur_max_rpm_for_vr = 155
	rescale_target = 1.00000
	shadows_quality = 2
	ssao_enable = 0
	stereo_dof = 5.00000
	vsync = 0
	win_height = 768
	win_width = 1024
[END]


and FSR set to the defaults at the moment.

I'm still playing whackamole to get a good balance of quality and performance.

Edited by Knarlfin
  • Thanks 1
I.JG3_CDRSEABEE
Posted (edited)

Thanks. What are you running in IL2? Ultra?

 

Its like looking through a fish eye. It really strains my eyes. Are there any adjustments?

Edited by CDRSEABEE
Posted

It's in Ultra, I think the renderscale = 0.77 in FSR forces it.

For fisheye try checking the Resolution in WMR is set to "Automatic upscaling (best performance)".  Not "4320 x 2160 (best quality)".

The only other thing I can think of is getting your IPD correct, either see an optician or measure it with a tape measure in a mirror!  It's easy to knock the slider on the G2 and you don't always know you've done it.
 

  • Thanks 1
Posted

The presets are for AMD, Nividia can use any number in the given range and it'll work, can't speak for AMD.  But if you use 1 itself the sharpen filter will be disabled/off, kind of making use of this pointless.  I use 1.01 for no downscaling and filter on.  Also set the radius rather small, turn on the debugmode true, and use the in game IPD key commands to set your true in game correction for the G-2 by perfectly overlapping the horizontal with the given image outer circles.  Once the correction % is set forget about them forever and turn the debug mode back off.  Relieves the misalignment most of the G-2's suffer from, at least in the horizontal.

  • Upvote 1
Posted
On 11/23/2021 at 1:59 PM, CDRSEABEE said:

Thanks. What are you running in IL2? Ultra?

 

Its like looking through a fish eye. It really strains my eyes. Are there any adjustments?

Fish eye problem for me was a Headset display option, under windows mixed reality settings.  Anything other than "best visual quality" gives me fish eye problems like you describe.

I.JG3_CDRSEABEE
Posted

Yep. I fixed it. Thanks

  • 2 weeks later...
=GW=501Railgun
Posted

Hi

After the 4.701 version update, AMD's FSR sharpening is no longer valid

Posted

Not seeing this here. Make sure that openvr_api.dll was not overwritten with the default one after the update.


WMR screenshots from 4.701:
 

FSR without sharpening

image.png.881219c8662949a47dafc598ecd39a32.png


FSR with max sharpening

image.png.59e13d5f1a5b93df32476267e14baa9f.png

Posted (edited)
8 hours ago, =GW=501Railgun said:

Hi

After the 4.701 version update, AMD's FSR sharpening is no longer valid

This seems to be true, maybe not for all. I tried all the different fsr/nis settings through openvr_mod.cfg, from the absolute lowest to the highest. Checked integrity of gamefiles, downloaded original openvr_api.dll and replaced with fholgers 2.0. there is no difference. I also downloaded the latest 497.09 drivers if that somehow should be the case, but no. Seems like its not working ?‍♂️

 

 

 

Update : I checked openvr_mod.log and something was off, it wasn't injecting. I replaced my custom openvr_mod.cfg and typed in my old values to the original as well, that seemed to do the trick ?‍♂️. Be sure to check that =GW=501Railgun

Edited by SvAF/F16_horsky
Posted (edited)

Does the double sharpening with the mod and then in the game make any real difference, or better to desactivate the one in the game if using sharpening through the mod?

Edited by Youtch
=GW=501Railgun
Posted
3 hours ago, SvAF/F16_horsky said:

This seems to be true, maybe not for all. I tried all the different fsr/nis settings through openvr_mod.cfg, from the absolute lowest to the highest. Checked integrity of gamefiles, downloaded original openvr_api.dll and replaced with fholgers 2.0. there is no difference. I also downloaded the latest 497.09 drivers if that somehow should be the case, but no. Seems like its not working ?‍♂️

 

 

 

Update : I checked openvr_mod.log and something was off, it wasn't injecting. I replaced my custom openvr_mod.cfg and typed in my old values to the original as well, that seemed to do the trick ?‍♂️. Be sure to check that =GW=501Railgun

I am "useNIS": true

Sharpening using NIS works, but is not as clear as AMD's FSR......

 

if "useNIS": false and "enabled": true , the Sharpening is not working

Posted (edited)
2 hours ago, =GW=501Railgun said:

I am "useNIS": true

Sharpening using NIS works, but is not as clear as AMD's FSR......

 

if "useNIS": false and "enabled": true , the Sharpening is not working


Both works, check your openvr_mod.log to be sure. You can always delete the log file so you get a new one.

NIS should give you a clearer image than fsr, experiment with sharpness, dont need much.

If its not working you'll see something like this

Requested interface IVRSystem_015
Requested interface IVRCompositor_020

And not much more.

If its working, it should look like something like this.

Requested interface IVRSystem_015
Injecting GetRecommendedRenderTargetSize into IVRSystem_015
Requested interface IVRCompositor_020
Injecting Submit into IVRCompositor_020
Requested interface IVRChaperone_003
Creating post-processing resources
Creating output textures in format 28
Using AMD FidelityFX SuperResolution
Requested interface IVRSystem_022
Raw projection for eye 0: l -1.15829, r 0.993368, t -1.04562, b 1.06238
Display is canted by 0.00305908 RAD
Projection center for eye 0: 0.539746, 0.496026
Requested interface IVRSystem_022
Raw projection for eye 1: l -0.991576, r 1.1701, t -1.04675, b 1.06111
Display is canted by -0.00305908 RAD
Projection center for eye 1: 0.457292, 0.496596
Creating sharpened texture of size 2248x2192
Injecting PSSetSamplers into D3D11DeviceContext
Creating replacement sampler for 0000022961ECF560 with MIP LOD bias -0

 

And so forth.

 

 

 


 

4 hours ago, Youtch said:

Does the double sharpening with the mod and then in the game make any real difference, or better to desactivate the one in the game if using sharpening through the mod?

You can use both together but ingame sharpen costs a little performance. Together it will get oversharpened and look quite bad. Better to stick to fsr or nis only sharpen. If you still want to use both together, go down on the fsr/nis sharpen.

 

Edited by SvAF/F16_horsky
Posted

Which option is better, FSR or NIS?

SCG_Fenris_Wolf
Posted (edited)

I tested it today.

 

NIS is largely superior with my config. Much less rasters to see.

 

I ran the Reverb G2 at 3160x3100 target, upscaled, from 2430x2377 using 0.77 NIS. NIS Sharpen at 0.9, Post-Sharpen-Ingame disabled, no FXAA/MSAA needed.

 

It looked 4K and ran at 90Hz, on Ultra Settings with everything turnt on except SSAO.

Edited by SCG_Fenris_Wolf
  • Like 1
Posted

I tried it with NIS and there was too much shimmering (even on the edges of the rectangular buttons in the menu screens). For me it looks better with the AMD setting + ingame sharpening at Ultra settings with 2x msaa. No hdr or ssao. I'm getting mostly 90fps and avg 80-85 per fpsVR on some of the scripted campaign missions.   

My rig: 11900K@5.1, 2x16GB 3600-CL16, RTX3080ti,G2.

SCG_Fenris_Wolf
Posted

Shimmering? None so at all here. What were your settings?

Posted
17 hours ago, SCG_Fenris_Wolf said:

I tested it today.

 

NIS is largely superior with my config. Much less rasters to see.

 

I ran the Reverb G2 at 3160x3100 target, upscaled, from 2430x2377 using 0.77 NIS. NIS Sharpen at 0.9, Post-Sharpen-Ingame disabled, no FXAA/MSAA needed.

 

It looked 4K and ran at 90Hz, on Ultra Settings with everything turnt on except SSAO.

I understand you mean everything on, except ssao and sharpen and antiliasing.

 

I gave it a try with the same configuration and it looks indeed quite nice, and it run smooth. Planes are less blurry but still very tough to ID and see emblems and color pattern except close distance.

 

Do you run in Nvidia settings all values by default?

Posted

I get shimmering on distant landscape/objects and it's made worse using upscaling but the performance is nice. I think the only thing that would remove shimmering is temporal anti aliasing.

SCG_Fenris_Wolf
Posted (edited)
8 hours ago, Youtch said:

I understand you mean everything on, except ssao and sharpen and antiliasing.

 

I gave it a try with the same configuration and it looks indeed quite nice, and it run smooth. Planes are less blurry but still very tough to ID and see emblems and color pattern except close distance.

 

Do you run in Nvidia settings all values by default?

What is your setup?

 

Yes of course, I run all Nvidia settings by default. For VR, please do not change the Nvidia settings - anymore.

 

Not even Energieverwaltungsmodus to performance mode anymore, keep it on normal to not have your GPU run into throttling earlier in situations when it really starts to sweat. With the RTX 3000 series especially. Nowadays they manage much better and it won't help you avoiding spikes in demand, much the opposite is tru nowadays due to the throttling.

 

There's some older, false information going around, people keep clamping LOD bias and other bs, it's like a revolving post. A recommends to B, B to C, C to D, and D posts it and A feels it's true. Many things change over time, and these are some.

 

The only thing that may remain true to adjust to smoothen performance are pre-rendered frames in VR at the bottom of the list in the Nvidia settings. It's effective in smoothening 0.1% and 1% low fps drops, if you experience them. If you do not have such, it's not necessary, it depends very much on your hardware, overclock, etc. Please be aware though that it introduces noticeably latency in rotating your head the higher you put it (the feeling if your view catching up, noticable when you shake your head the easiest), which is especially noticable when you use screen refreshrates below 90Hz, such as 75Hz on a Pimax or 60Hz on some others.

 

5 hours ago, tinklepee said:

I get shimmering on distant landscape/objects and it's made worse using upscaling but the performance is nice. I think the only thing that would remove shimmering is temporal anti aliasing.

The shimmering in itself is native to IL-2's deferred shade rendering pipeline. These occurances are witnessed and need to get tricked around, but it's incredible hard to do so. The type of rendering bears other advantages, such as being able to manage many more light sources and more, however, its downsides are rarely worth it (in my opinion, others may disagree), most VR titles use forward. Forward would allow compatibility to eye-tracking devices, true DLSS, variable rate supersampling, VRS wrapper, and other modern technologies. 

You can check these out here if interested: https://developer.nvidia.com/vrworks/graphics/variablerateshading

https://developer.nvidia.com/vrworks

AMD has similar SDKs but much less presence in market with GPUs and some Säue would argue its doc and support is was not as good in the driver/SDK segment of things. QC in drivers also needs improvement, it's still somewhat of a WIP, but the good side is they went fully open source and that will eventually take off the longer it lasts. At least that's the hope. Check this out: https://gpuopen.com/

Here we go, this post may be lacking a bit of a red line, it grew organically like European roads, so to speak.

 

Edited by SCG_Fenris_Wolf
  • Thanks 1
  • Upvote 1
Posted

Thank you very much for taking the time to make this long explanation!

356thFS_Piranha
Posted

Do you need GeForce Experience to make this work or just Fholgers app?

Thanks

Posted

I tested today with 0.7 nis renderscale and 0.9 sharpen, not happy with it. It killed my fps, i had about 20 fps less with the same image quality. I use 0.8 renderscale in fsr and 0.9 sharpen with about 70 fps on quest 2 and 4xmsaa!!!in game graphics ultra settings, not ssao,hdr on,  low mirrors and shadows, in game sharpen=0, about 2700x2700 target resolution on steamvr (1.5× on OTT)...quite happy with it...i dont think i can get better than that...(nvidia rtx 3060 ti).

 

As a last try, you think i should go lower than 0.7 renderscale on nis to make it work( better fps) or should i finally stick with fsr?

  • Like 1
Posted
10 hours ago, QB.Piranha said:

Do you need GeForce Experience to make this work or just Fholgers app?

Thanks


You just need Fholgers

SCG_Fenris_Wolf
Posted
11 hours ago, dgiatr said:

I tested today with 0.7 nis renderscale and 0.9 sharpen, not happy with it. It killed my fps, i had about 20 fps less with the same image quality. I use 0.8 renderscale in fsr and 0.9 sharpen with about 70 fps on quest 2 and 4xmsaa!!!in game graphics ultra settings, not ssao,hdr on,  low mirrors and shadows, in game sharpen=0, about 2700x2700 target resolution on steamvr (1.5× on OTT)...quite happy with it...i dont think i can get better than that...(nvidia rtx 3060 ti).

 

As a last try, you think i should go lower than 0.7 renderscale on nis to make it work( better fps) or should i finally stick with fsr?

First of all, no msaa, no postsharpen in-game. Then, it is certain there must've been some mistake during installation, setup or settings, be it Nvidia's not on default or anything else.

 

It gives better performance 100%.

356thFS_Piranha
Posted

Thanks!

 

=BES=Senor_Jefe
Posted (edited)

This mod play nicely with MP or no?

 

Edit: looks like mod isn't to game files, so I assume yes?

Edited by =BES=Senor_Jefe
vonrickenbecker
Posted (edited)

Just came across this topic and looks very interesting. I have an older (and somewhat under-powered for VR) machine, so any performance gains I can squeeze out are always welcome!

 

I had a couple questions just to clarify:

1. All in-game Anti-Aliasing (MSAA, etc.) should be turned off when using this mod? @SCG_Fenris_Wolf's comments seem to indicate that, but I really dislike how the game looks with no MSAA. 

2. Same for in-game sharpening post-process filter?

Edited by vonrickenbecker
Posted
16 hours ago, vonrickenbecker said:

Just came across this topic and looks very interesting. I have an older (and somewhat under-powered for VR) machine, so any performance gains I can squeeze out are always welcome!

 

I had a couple questions just to clarify:

1. All in-game Anti-Aliasing (MSAA, etc.) should be turned off when using this mod? @SCG_Fenris_Wolf's comments seem to indicate that, but I really dislike how the game looks with no MSAA. 

2. Same for in-game sharpening post-process filter?

 

Hello , i am using Quest 2 with FSR (renderscale 0.8 and sharpness 1.0)  at 2700x2700 final steamVR resolution (OTT set to 1.5x) at about 60-70 fps.

 

I don't know how IL2 looks through other headsets but for me the game looks terrible with no ingame MSAA so i set it to 4xMSAA. I tried once to turn off ingame MSAA and go for a higher resolution ( about 3200x3200?....i don't remember exactly) instead but i wasn't happy with the final result ( little image distortion and more shimmering than now)

 

Its true thought that i don't use ingame post sharpness (set to o) and use only FSR sharpness set to 1.0 as i said before.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...