ValveSoftware / csgo-osx-linux

Counter-Strike: Global Offensive
http://counter-strike.net
775 stars 69 forks source link

Danger Zone drone pilot graphical issue #2101

Open LiamDawe opened 5 years ago

LiamDawe commented 5 years ago

Your system information

Please describe your issue in as much detail as possible:

The Drone Pilot view in CS:GO Danger Zone seem to have a graphical issue in the middle of the screen, making it hard to actually pilot properly and see what's below you - a nuisance.

See this image: https://imgur.com/a/b4JsVvh

Now compare with the official image: https://steamcdn-a.akamaihd.net/apps/csgo/images/sirocco/dronepilot.jpg

It shouldn't be there.

Steps for reproducing this issue:

  1. Load CS:GO with nvidia on Ubuntu
  2. Pick Drone Pilot drop-in perk
  3. Attempt to fly and see the horrible thing in the middle making it hard to see properly
jazztickets commented 5 years ago

Same on AMD RX 570 with open source drivers.

Managor commented 5 years ago

I can confirm this. Xubuntu 19.04, Nvidia 430.14, GTX 1060.

Matombo commented 5 years ago

Can confirm for Manjaro RX Vega 56

ianvm commented 5 years ago

Can confirm with GTX 1050, Nvidia 390.87

ianvm commented 4 years ago

can i bump this ?

illumidas-agn commented 4 years ago

I have the exact same issue, any fix so far?

jazztickets commented 4 years ago

If anything it'll be fixed in the source 2 port.

ChrisLuck commented 4 years ago

Still a problem. System Information

henrym11106 commented 3 years ago

This is fixed in mesa 21.0-git + linux 5.9.9, R9 390 GPU I don't know when it was fixed or when it will be merged with stable, and not 100% it's just mesa. I'll do more testing on another computer (mesa stable, R9 380) csgo_1295

LiamDawe commented 3 years ago

Just checked on NVIDIA latest, still a problem.

henrym11106 commented 3 years ago

After quite a bit of trial and error, I found that one parameter corrects this issue. in .drirc it is <option name="radeonsi_clamp_div_by_zero" value="true" /> in adriconf it's "Clamp div by zero" in the last "debugging" section here: Screenshot_20201219_221409 this works in mesa 20.3.0 stable and newer at least. might work in older versions, not sure when it was added.

Matombo commented 3 years ago

After quite a bit of trial and error, I found that one parameter corrects this issue. in .drirc it is <option name="radeonsi_clamp_div_by_zero" value="true" /> in adriconf it's "Clamp div by zero" in the last "debugging" section here: Screenshot_20201219_221409 this works in mesa 20.3.0 stable and newer at least. might work in older versions, not sure when it was added.

that fixed it for me too

henrym11106 commented 3 years ago

Another way to use this fix on AMD without adriconf or a .drirc file is add this to your launch options: radeonsi_clamp_div_by_zero=true %command% all %command% options need to be listed inline separated by spaces behind a single %command% eg radeonsi_clamp_div_by_zero=true mesa_glthread=true gamemoderun %command%

I use gamemode to set priority etc and mesa_glthread boosts my FPS by 10-20% on Ryzen 3500X + R9 390

EDIT: adding "radeonsi_clamp_div_by_zero=true" to your launch options may or may not cause your Trust Score to go negative infinity. I recommend against using it until more is known. enabling via ~/.drirc seems to be OK, but this might have more to do with mesa-git. see #2630

also I just realized that what's rendered in the middle of the screen is a blown up sample of the top left corner of the drone view csgo_1816 csgo_1812 csgo_1811

ChrisLuck commented 3 years ago

Thank you very much! radeonsi_clamp_div_by_zero=true also fixes it for me.

LiamDawe commented 3 years ago

No one found a fix for NVIDIA yet?

henrym11106 commented 3 years ago

Well on the AMD side, mesa 20.3.3 and newer has radeonsi_clamp_div_by_zero enabled for CSGO by default. if you have 20.3.3 or newer that command can be removed from your .drirc/launch options. mesa_glthread is set by default in mesa 21 and newer I opened an issue a while back and those changes was merged pretty quickly :)

as for Nvidia I don't have hardware to test but there might be an clamp divide-by-zero option out there. I can't find an exhaustive list of nvidia driver variables but asking here might help: https://forums.developer.nvidia.com/c/gpu-unix-graphics/linux/148

henrym11106 commented 3 years ago

Looks like adding "radeonsi_clamp_div_by_zero=true" to launch options might cause your Trust Factor to go negative infinity. who knows. probably best to avoid doing anything via launch options that can be done by other means. enabling via ~/.drirc seems to be OK, this is default behavior with mesa 20.3.3 and newer so it's no longer needed in said file.

this might be a bug with trusted mode reacting badly to mesa-git itself and impacting trust score inappropriately. see #2630

robertswiecki commented 3 years ago

If anyone in this thread was affected by inexplicable and sudden drop of Trust Factor from green to red around the beginning of this (2021) year, especially if you have an older steam/csgo account with many hours played, please do leave a comment in #2630

Some users are suspecting that the amdgpu driver might be the cause here - some of the players were using radeonsi_clamp_div_by_zero=1 and mesa_glthread=1 to fix problems with the game (like in this thread), some (like me) were using mesa git versions to make things work with the newer Radeon cards (and newer mesa had those options enabled by default).

No reply so far from the Valve representatives, but the circumstantial evidence points to the TF calculating software on the Valve's side misfiring with certain Radeon/AMD setups.

bratanon commented 1 year ago

2023 and still this is an issue with nvidia drivers. zzzz