Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for AMD Anti-Lag 2 #10739

Open
frabert opened this issue Sep 14, 2024 · 5 comments · May be fixed by godotengine/godot#96991
Open

Add support for AMD Anti-Lag 2 #10739

frabert opened this issue Sep 14, 2024 · 5 comments · May be fixed by godotengine/godot#96991

Comments

@frabert
Copy link

frabert commented Sep 14, 2024

Describe the project you are working on

N/A

Describe the problem or limitation you are having in your project

This is not meant to solve a specific problem -- the idea is to integrate AMD Anti-Lag 2 features in the engine to reduce click to image-on-screen latency when using DirectX 12 on RDNA1/2 AMD cards.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

AMD Anti-Lag 2 introduces wait times before input polling in order to reduce the time between when an input is received and when a frame is displayed.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

When the feature is enabled and proper runtime support is detected, the AMD Radeon driver is invoked before input polling to activate the lag-reduction measures.

If this enhancement will not be used often, can it be worked around with a few lines of script?

No -- this requires interacting with the AMD Radeon drivers to function.

Is there a reason why this should be core and not an add-on in the asset library?

This requires integration with the core rendering and input polling loop.

I've opened a PR for this: godotengine/godot#96991

@octanejohn
Copy link

it looks that is only for amd hardware, i think latency-flex is better alternative

https://github.com/ishitatsuyuki/LatencyFleX

@mrjustaguy
Copy link

mrjustaguy commented Sep 15, 2024

This seems like it may be Linux only on the other hand - ishitatsuyuki/LatencyFleX#3

Also Calinou already asked about this issue with no reply a couple of years ago - ishitatsuyuki/LatencyFleX#22

so this would end up benefiting even less people likely, as a ton of people on linux tend to go with AMD anyway due to Nvidia's Linux drivers being historically trash.

Though Great catch non the less, and a hardware agnostic solution would be amazing if they perform similarly.

@frabert
Copy link
Author

frabert commented Sep 15, 2024

Please note that Anti-Lag would only work with DirectX 12 and requires AMD drivers, no Linux support in this case.

@sakrel
Copy link

sakrel commented Sep 15, 2024

Please note that Anti-Lag would only work with DirectX 12 and requires AMD drivers, no Linux support in this case.

There's a Vulkan extension for anti-lag: https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_AMD_anti_lag.html

There's also a Nvidia Reflex extension: https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_NV_low_latency2.html

@btarg
Copy link

btarg commented Sep 15, 2024

LatencyFleX looks to be outdated / no longer in active development, and is Linux only. For this reason alone I think Radeon anti-lag would be a better fit

it looks that is only for amd hardware, i think latency-flex is better alternative

https://github.com/ishitatsuyuki/LatencyFleX

@Calinou Calinou changed the title Support AMD AntiLag 2 Add support for AMD Anti-Lag 2 Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants