Thursday, July 15th 2021

AMD FidelityFX FSR Source Code Released & Updates Posted, Uses Lanczos under the Hood

AMD today in a blog post announced several updates to the FidelityFX Super Resolution (FSR) technology, its performance enhancement rivaling NVIDIA DLSS, which lets gamers dial up performance with minimal loss to image quality. To begin with, the company released the source code of the technology to the public under its GPUOpen initiative, under the MIT license. This makes it tremendously easy (and affordable) for game developers to implement the tech. Inspecting the source, we find that FSR relies heavily on a multi-pass Lanczos algorithm for image upscaling. Next up, we learn that close to two dozen games are already in the process of receiving FSR support. Lastly, it's announced that Unity and Unreal Engine support FSR.

AMD broadly detailed how FSR works in its June 2021 announcement of the technology. FSR sits within the render pipeline of a game, where an almost ready lower-resolution frame that's been rendered, tone-mapped, and anti-aliased, is processed by FSR in a two-pass process implemented as a shader, before the high-resolution output is passed on to post-processing effects that introduce noise (such as film-grain). HUD and other in-game text (such as subtitles), are natively rendered at the target (higher) resolution and applied post render. The FSR component makes two passes—upscaling, and sharpening. We learn from the source code that the upscaler is based on the Lanczos algorithm, which was invented in 1979. Media PC enthusiasts will know Lanczos from MadVR, which has offered various movie upscaling algorithms in the past. AMD's implementation of Lanczos-2 is different than the original—it skips the expensive sin(), rcp() and sqrt() instructions and implements them in a faster way. AMD also added additional logic to avoid the ringing effects that are often observed on images processed with Lanczos.
With the source code now fully available, nothing stops developers from adding FSR into their games. Unlike NVIDIA's DLSS solution, FSR requires almost no engine tweaks, you just add the shader pass into your rendering pipeline. In a separate PDF document AMD went into more detail on how to integrate FSR, what inputs are required, and how to present the new rendering options to the end-user.

We took a closer look at the source code AMD is providing, and it's really the full source. There are no external dependencies or DLLs. You are free to modify and adapt as you see fit. This makes FSR an interesting tech for modders, who should be able to more easily integrate the tech into existing games, through hooks. Also there's nothing that would prevent this from running Linux. AMD's sample code includes Windows samples only at this time, but integrating FSR with other operating systems, even cell phones is trivial at this point. AMD has also released a demo for FSR, which lets you dig into all the settings options and compare them in a way that's better suited to investigation, than a hectic game. We've uploaded it to our downloads section.

AMD also announced that even more games will receive FSR support, with announcements lined up for tomorrow. Among these titles are Edge of Eternity, Resident Evil 8: Village, and Hired Gun. The company also announced implementation of FSR with two leading game engines, Unreal Engine 4 and Unity.

AMD is working with game studios with implement FSR with Asterigos, Baldur's Gate 3, Far Cry 6, Farming Simulator 22, Forspoken, Myst, Swordsman Remake, and Vampire the Masquerade: Bloodhunt.

If you haven't yet, check our our in-depth review of AMD's FSR upscaling technology (posted in July).
Sources: FSR Source Code, AMD FSR Developer Page, FSR 1.0 Docs
Add your own comment

92 Comments on AMD FidelityFX FSR Source Code Released & Updates Posted, Uses Lanczos under the Hood

#26
Auer
UpgrayeddSpeaking of Vulkan. Does RDR2 using Vulkan support DLSS or is it DX12 only?
No Man's Sky is Vulkan and also supports DLSS, I think that's been around for a few months now as an option.
Posted on Reply
#27
Pilgrim
john_And this is how you take the market. Sure DLSS is better, sure Nvidia is much stronger, but who can say no to something free that is offering a good enough alternative and it is also easy to implement?
Let's hope game developers will do what someone would consider obvious. Use it.
Did you even take a look at the FSR Demo? FSR can actually look better than DLSS (It actually look better than native rendering on Ultra quality setting) with a bit of tweaking using LoD bias and Sharpness. I'm really impressed. I actually own one of the RTX cards that obviously support DLSS but what AMD has done is simply an elegant feat of engineering. I've included some screenshots for comparison between FSR Ultra and Native rendering.
Posted on Reply
#28
nguyen
PilgrimDid you even take a look at the FSR Demo? FSR can actually look better than DLSS (It actually look better than native rendering on Ultra quality setting) with a bit of tweaking using LoD bias and Sharpness. I'm really impressed. I actually own one of the RTX cards that obviously support DLSS but what AMD has done is simply an elegant feat of engineering. I've included some screenshots for comparison between FSR Ultra and Native rendering.
Are you perhaps confused oversharpened image with higher image quality? FSR just basically oversharpen everything and some people are not really into that.
Posted on Reply
#29
Pilgrim
nguyenAre you perhaps confused oversharpened image with higher image quality? FSR just basically oversharpen everything and some people are not really into that.
It's not oversharpened, plus you can change the amount of sharpening for your liking. Stop making silly comments without actually checking out the tech demo.
Posted on Reply
#30
nguyen
PilgrimIt's not oversharpened, plus you can change the amount of sharpening for your liking. Stop making silly comments without actually checking out the tech demo.
This looks way oversharpened to me



If you like I can show you some comparison where 4K DLSS Performance with sharpen filter can look better than 4K Native even before showing obvious sharpen artifacts.
Posted on Reply
#31
defaultluser
I wish they could make a standalone insertion tool work (like FXAA + sharpen programs of old Im used for Borderlands.), but I can wait foir games to get patches.

Really hope they do one for Horizon: Zero Dawn.
Posted on Reply
#32
Jism
john_And this is how you take the market. Sure DLSS is better, sure Nvidia is much stronger, but who can say no to something free that is offering a good enough alternative and it is also easy to implement?
Let's hope game developers will do what someone would consider obvious. Use it.
Nvidia has and always will be, all about vendor lock-in. There is or was a reason why many protest against the buying of ARM by nvidia. This is why you buy AMD products; it's because you support not just their (excellent) products but also their initiative's in the tech business.
Posted on Reply
#33
InVasMani
So I tried Riftbreaker demo on my GTX980 out of curiosity. The results are a strange one still FSR seems to work with Maxwell on the positive side of things. I don't know why AMD has so many graphics settings that if you choose to enable it ends up disabling another graphic option in the process. They also don't have a clear tool tip explaining what gets disabled thru activating another setting which is crazy.
Posted on Reply
#34
Vayra86
john_And this is how you take the market. Sure DLSS is better, sure Nvidia is much stronger, but who can say no to something free that is offering a good enough alternative and it is also easy to implement?
Let's hope game developers will do what someone would consider obvious. Use it.
This.

It is what DLSS should have been.
CrackongNo it is Freesync vs G-Sync again.
This.
Posted on Reply
#35
Auer
john_And this is how you take the market. Sure DLSS is better, sure Nvidia is much stronger, but who can say no to something free that is offering a good enough alternative and it is also easy to implement?
Let's hope game developers will do what someone would consider obvious. Use it.
DLSS is not free?
Posted on Reply
#36
GamerGuy
AuerDLSS is not free?
Sure, IF you have an RTX card, which you obviously do. But, what about GTX card owners? It's painfully clear nVidia doesn't give a crap about any card without an 'RTX' moniker. My GTX 1080 can manage playable framerate with Godfall at 4K with FSR set at Quality preset.....I look forward to more game with FSR so I can enjoy better framerate with both my GTX 1080 and Vega 64. My main card doesn't need it, but for games with RT enabled (other than Doom Eternal and RE Village with RT enabled), FSR would help smoothen gameplay as RT isn't AMD's RX 6000 series forte.
Posted on Reply
#37
john_
AuerDLSS is not free?
Not really. For me to get it, means buying an RTX card. To keep using it means I will have to remain a customer of Nvidia in the future, so no, I don't consider it as free.
I have to pay Nvidia to use it and I have to keep paying to keep using it. Not free.
FSR on the other hand doesn't ask me to give even a single penny to AMD, today or in the future. AMD could come up with a Premium FSR that needs AMD's latest hardware to work. That will NOT be free. But this version of FSR, it's free.
Posted on Reply
#38
Auer
john_Not really. For me to get it, means buying an RTX card. To keep using it means I will have to remain a customer of Nvidia in the future, so no, I don't consider it as free.
I have to pay Nvidia to use it and I have to keep paying to keep using it. Not free.
FSR on the other hand doesn't ask me to give even a single penny to AMD, today or in the future. AMD could come up with a Premium FSR that needs AMD's latest hardware to work. That will NOT be free. But this version of FSR, it's free.
If Nvidia and AMD GPU's are priced the same, why not buy Nvidia and get DLSS for free?
Posted on Reply
#39
Vayra86
AuerDLSS is not free?
Nope. I require a substantial investment to access it because of Nvidias policy to create some abomination in need of dedicated hardware.

Meanwhile this 1080 is still working fine at 3440x1440 in every other respect. Even better: Cyberpunk was playable at 50 odd FPS precisely because of AMD's FidelityFX technology, while DLSS was not available in any way for me as a decade long Nvidia customer.

There will be no reward for that sort of business from my end.

Vendor lock in might be okay to you, but Im also looking at a handsomely priced ultrawide ere and guess what... cant use Gsync, but Freesync works admirably. Its so similar you would almost think sone people get how it should work and some do not. Its a pattern. But vendorlock and healthy market hardly go well together, being an advocate of it is... well, stupid.
Posted on Reply
#40
GamerGuy
AuerIf Nvidia and AMD GPU's are priced the same, why not buy Nvidia and get DLSS for free?
In my neck of the woods, nVidia always, and I mean ALWAYS, carries a price premium. With FSR, older card owners may not feel the need to upgrade since, hopefully, more and more games would have FSR support. Peeps with decent cards like RX 470/480/570/580/590/5500XT/5600XT/5700/5700XT/6000 series as well as Maxwell and Pascal owners can reap the benefit that an agnostic solution like FSR brings to the table. I could easily have bought an RTX 3080, but refused to do so because I don't like the idea of being locked into nVidia's wall-garden ecosystem, much like why I'd refused to buy any Apple iPhones. FSR is has been extended to nVidia cards, but, have you ever seen nVidia extend support for their proprietary stuff so that AMD users can benefit as well?

For me, DLSS isn't 'free' as you'd have to buy RTX cards in order to benefit from it.....if you already happen to own one, then yeah, you can enjoy FSR as well. So, in that sense, being hardware agnostic, FSR is indeed free for all owners of cards capable of leveraging the tech.
Posted on Reply
#41
Dredi
AuerDLSS is not free?
It is just free to use as nvidia dictates that you should use it, but not free as in free software. ”Free software (or libre software)[1][2] is computer software distributed under terms that allow users to run the software for any purpose as well as to study, change, and distribute it and any adapted versions.”

see en.m.wikipedia.org/wiki/Free_software

DLSS is definitely not free in any wider meaning.
Posted on Reply
#42
john_
AuerIf Nvidia and AMD GPU's are priced the same, why not buy Nvidia and get DLSS for free?
Already answered it.
Let me repeat myself. Dictating what hardware to buy, even at the same price point, does not mean free.
And let's say I chose the Nvidia option and 6 months latter I decide to swap to AMD. Do I keep the *free* DLSS support or do I lose it?
Posted on Reply
#43
Auer
john_Already answered it.
Let me repeat myself. Dictating what hardware to buy, even at the same price point, does not mean free.
And let's say I chose the Nvidia option and 6 months latter I decide to swap to AMD. Do I keep the *free* DLSS support or do I lose it?
It's not that hard man, just buy what works the best and is the best bang for the buck.
Posted on Reply
#44
john_
AuerIt's not that hard man, just buy what works the best and is the best bang for the buck.
You mean AMD?
Thanks for the advice.
Posted on Reply
#45
Auer
john_You mean AMD?
Thanks for the advice.
Why limit yourself to just FSR? And you get better RT with Nvidia too, for the same money.
Posted on Reply
#46
mtcn77
OMG! This is amazing! They have started to integrate industry standards into analytic filter modes.
I want "bilateral" since it has no scaling artifacts.
nguyenThis looks way oversharpened to me



If you like I can show you some comparison where 4K DLSS Performance with sharpen filter can look better than 4K Native even before showing obvious sharpen artifacts.
Hi, it depends whether objectID shaders are used or not. Antialiasing can blend, or highlight textures from the background. This would give an unnecessary advantage to custom filters like DLSS. This is a limitation of quad helper pixel rasterization, artifacts accumulate with overshaded samples.
Posted on Reply
#47
john_
AuerWhy limit yourself to just FSR? And you get better RT with Nvidia too, for the same money.
Look. We understand that you try to promote Nvidia in every way. Please stop.

This is NOT AMD vs Nvidia. This is Proprietary vs FREE. And when free is good enough, it's good to be an option.
RT is something else. This thread is NOT about RT and performance charts in RT.
Posted on Reply
#48
GamerGuy
AuerWhy limit yourself to just FSR? And you get better RT with Nvidia too, for the same money.
That's presumptuous of you, but I guess it depends on where you are. In my neck of the woods, an RTX 3080 goes for a min of ~2100 local dollars, but an RX 6800 XT can be had for about 1600. That's about 370USD difference converted to USD, so in what way are they 'for the same money'?

BTW, give this nVidia promotion a rest already, why doncha?:rolleyes:

A comparison vid of FSR at Ultra vs DLSS2.2 (I think) on Marvel's Avengers....looks good enough, unlike you pixel peep.

ANd here's a comparison between FSR vs DLSS 2.2 in Necromunda Hired Gun, without pixel peeping, can you see the difference especially when playing the game?
Posted on Reply
#49
nguyen
yawn...people are so easily tricked, when images appear slightly sharper they will call it higher image quality despite the little trick called CAS destroy color details in favor of higher contrast (which make images have mold like white spots...urghhhh).

Anyways with a little sharpen filter applied, FSR Ultra Quality couldn't even compete with DLSS Balanced mode at 1440p
Posted on Reply
#50
mtcn77
nguyenAnyways with a little sharpen filter applied,
Wait, why?
Posted on Reply
Add your own comment
Dec 4th, 2024 03:34 EST change timezone

New Forum Posts

Popular Reviews

Controversial News Posts