[L4D2][Linux] Slow mouse - no fps_max command - input lag
There is an issue in all Source games on Linux. I guess it has something to do with AMD drivers - mouse is very slow. It's a delay between real mouse move and the game reaction. This happens on an older HW where is not possible to achieve 100+ FPS and FPS are more dynamic (50-80 for example).
The solution I use in TF2, HL2:DM, CSS etc. is "fps_max 60" command. After this command I have stable 60 fps and everything is smooth. This command is not in L4D2 anymore.
Impossible to aim with a weapon.
I tried:
- turning off vSync - it's the same
- turning on vSync - it's the same
- high and low graphics settings - no difference
- turning off Catalyst A.I. - it's the same
- AMD 13.4 - it's the same + much worse performance I'm switching back to 13.3 Beta3
- windowed mode - did not help
[EDIT]
- disabling Steam community - no difference
AMD 13.3 Beta3 Gnome Shell
Processor Information: Vendor: AuthenticAMD Speed: 1400 Mhz 4 logical processors 4 physical processors HyperThreading: Unsupported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Unsupported SSE4a: Supported SSE41: Unsupported SSE42: Unsupported
Network Information: Network Speed:
Operating System Version: Debian GNU/Linux 7.0 (wheezy) (64 bit) Kernel Name: Linux Kernel Version: 3.2.0-4-amd64 X Server Vendor: The X.Org Foundation X Server Release: 11204000 X Window Manager: Mutter Steam Runtime Version: steam-runtime-release-i386_2013-04-16
Video Card: Driver: ATI Technologies Inc. AMD Radeon HD 6520G
Driver Version: 4.2.12173 Compatibility Profile Context 12.10.17
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 59 Hz
VendorID: 0x1002
DeviceID: 0x6760
Number of Monitors: 1
Number of Logical Video Cards: 2
Primary Display Resolution: 1366 x 768
Desktop Resolution: 1366 x 768
Primary Display Size: 13.54" x 7.60" (15.51" diag)
34.4cm x 19.3cm (39.4cm diag)
Primary VRAM Not Detected
Sound card: Audio device: ATI R6xx HDMI
Memory: RAM: 3430 Mb
Miscellaneous: UI Language: English LANG: en_US.utf8 Microphone: Not set Total Hard Disk Space Available: 581188 Mb Largest Free Hard Disk Block: 134395 Mb
Installed software:
Recent Failure Reports:
Same here...
Processor Information: Vendor: GenuineIntel Speed: 3200 Mhz 4 logical processors 4 physical processors HyperThreading: Unsupported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Unsupported SSE41: Unsupported SSE42: Unsupported
Network Information: Network Speed:
Operating System Version: Ubuntu 13.04 (64 bit) Kernel Name: Linux Kernel Version: 3.8.0-19-generic X Server Vendor: The X.Org Foundation X Server Release: 11303000 X Window Manager: Compiz Steam Runtime Version: steam-runtime-release-i386_2013-04-16
Video Card: Driver: ATI Technologies Inc. AMD Radeon HD 6800 Series
Driver Version: 4.2.12002 Compatibility Profile Context 9.012
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 59 Hz
VendorID: 0x1002
DeviceID: 0x6739
Number of Monitors: 1
Number of Logical Video Cards: 1
Primary Display Resolution: 1920 x 1200
Desktop Resolution: 1920 x 1200
Primary Display Size: 20,39" x 12,76" (24,02" diag)
51,8cm x 32,4cm (61,0cm diag)
Primary VRAM Not Detected
Sound card: Audio device: Realtek ALC889A
Memory: RAM: 3953 Mb
Miscellaneous: UI Language: English LANG: de_DE.UTF-8 Microphone: Not set Total Hard Disk Space Available: 81095 Mb Largest Free Hard Disk Block: 46654 Mb
Installed software:
Recent Failure Reports: Sat May 4 09:47:54 2013 GMT: file ''/tmp/dumps/assert_20130504114738_1.dmp'', upload yes: ''CrashID=bp-f9f6e96e-9541-4e68-b169-6f9d72130504 ''
I guess it has something to do with AMD drivers
Same issue with nVidia drivers: https://github.com/ValveSoftware/Source-1-Games/issues/114
Same symptoms here - really bad mouse lag between moving mouse and movement on screen.
As per other tickets, turning off Steam Community has helped enormously.
Same problem - L4D2 and HL2 tested - especially happens when using flashlight.
Also happened a lot when looking at a fire corridor leading to electric fence in Ravensholm - noticed FPS drop there, otherwise this seems not to be linked to FPS.
Thanks for the steam community hint, I'll try that.
Edit: Disabling steam overlay didn't help. I noticed one new thing though - the lag is actually worse with scenes that have low complexity - seems like the bug is related to gpu command buffer flushing?
Edit: A new observation - in HL2, doing mat_wireframe 1 will worsen the effect. It really seems gpu renders way behind.
Processor Information: Vendor: GenuineIntel Speed: 5900 Mhz 4 logical processors 4 physical processors HyperThreading: Unsupported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Unsupported SSE41: Supported SSE42: Supported
Network Information: Network Speed:
Operating System Version: "Arch Linux" (64 bit) Kernel Name: Linux Kernel Version: 3.9.2-1-ARCH X Server Vendor: The X.Org Foundation X Server Release: 11304000 X Window Manager: i3 Steam Runtime Version: steam-runtime-release-i386_2013-05-08
Video Card: Driver: ATI Technologies Inc. AMD Radeon HD 6700 Series
Driver Version: 4.2.12217 Compatibility Profile Context 8.961
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 60 Hz
VendorID: 0x1002
DeviceID: 0x68ba
Number of Monitors: 2
Number of Logical Video Cards: 1
Primary Display Resolution: 1280 x 1024
Desktop Resolution: 2560 x 1024
Primary Display Size: 14.80" x 11.85" (18.94" diag)
37.6cm x 30.1cm (48.1cm diag)
Primary VRAM Not Detected
Sound card: Audio device: Realtek ALC887-VD
Memory: RAM: 7971 Mb
Miscellaneous: UI Language: English LANG: en_US.UTF-8 Microphone: Not set Total Hard Disk Space Available: 499030 Mb Largest Free Hard Disk Block: 69556 Mb
Installed software:
Recent Failure Reports:
I noticed this also (unsurprisingly) happens in CS:S - and seems to depend on shader complexity (a level with a lot of water had this lag, whereas a simpler level didn't). All in all I think the lag is caused by the GPU not being synchronized well with CPU (the engine does not wait for the frame to finish), so it gets behind easily if the stuff to draw gets too complex (CPU generates many frames ahead). Throttling CPU could help (workaround), as well as introducing some "frame finished rendering" guarantees (fix).
Example:
CS:S - in fy_poolparty_night (community map) I'm getting a noticeable rubberbanding/lag - especially when enabling the highest texture filtering, HDR and multicore rendering - correlating with the FPS going down from the default cap of 300 FPS, which corresponds with the original report, that the fps_max helps this (but only if user sets it below the lowest fps the GPU is capable of, thus throttling the spamming of GPU by CPU).
Setting to lower texture filtering, disabling multicore and lowering antialiasing enables me to get to stable 300 FPS, thus the rubberbanding/lag goes away.
It really seems like there is not enough synchronization between CPU and GPU, so GPU gets behind easily.
Same problem with Half-Life 2: Episode Two
HL2 source has gl_finish, please try that. Also catalyst 13.7 is right around corner and should fix this issue.
@volca02 gl_finish helped, thanks!
Do you know how to make it permanent? I've added gl_finish "1" to config.cfg but It's always reset back to the default on game startup (though key bindings work fine).
Still waiting for a patch ! For now, you can use the hack from @volca02 : https://github.com/volca02/glsync, it seems to work for L4D too :) Once you get it compiled, edit "hl2.sh" from your game folder. Just replace the line :
${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
with something like :
LD_PRELOAD=PATH_TO/libglsync32.so ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
Same issue here, using the latest beta AMD driver @ raring
I assume that hack does not work on 64 bit machines 13.8 drivers still have the same l4d2 issue. Only driver ever to work for me was beta 13.3 .....
L4D2 (Beta) (in brackets) doesn't recognize the gl_finish command in console. (Works just fine in HL2.)
Same here. Using gl_finish fixed the lag in all HL2 titles, Portal and TF2. L4D2 (Beta) has this horrible mouse lag and is unplayable. Maybe the Beta without brackets is different?
@joerg I'm fairly sure gl_finish is missing only because developer focus moved away from L4D2 before we discovered that it was needed for catalyst. L4D2 should pick up this cvar when the devs eventually make it back to work on this game (along with most of the other little fixes that have gone into the source 1 engine).
Closing as general video driver quality from 2013 is no longer relevant.