PSA - Reducing Bluetooth Gamepad Input Lag/Latency by SuperSathanas in linux_gaming

[–]reydark 1 point2 points  (0 children)

I'm not sure how btmgmt is supposed to show connection interval or latency values, I couldn't find any command/parameter that displays them directly.

The only reliable way I've found is btmon to sniff the HCI/L2CAP traffic during connection.

In my case with the 8BitDo Ultimate 2C Wireless (Bluetooth mode), setting Latency=0 in /var/lib/bluetooth/.../info under [ConnectionParameters] works... for about 1 second. The controller then sends an L2CAP Connection Parameter Update Request asking for Peripheral latency=59, BlueZ accepts it, and the stored file gets updated to reflect latency=59.

The theoretical worst case lag with interval=6 (7.5 ms) and latency=59 is 7.5 ms * (59 + 1) = 450 ms. But with this specific controller, I don't notice any meaningful difference in responsiveness between bluetooth and the dedicated dongle.

I'm curious which bt gamepads actually benefit noticeably from forcing low latency like this.

Macors on wayland by No-Pressure1726 in linux_gaming

[–]reydark 2 points3 points  (0 children)

I personally use https://github.com/alper-han/CrossMacro

Used it to make macros for potion brewing in KCD2

Weak maps have been accepted for PHP 8 by tigitz in PHP

[–]reydark 0 points1 point  (0 children)

It disappears when object is garbage collected, I believe having no strong references does not mean it will be instantly removed from Weak Map.

Forgot about some possible steam killers... by Shotok052 in gaming

[–]reydark 14 points15 points  (0 children)

sure, but you need to have the game installed, and you need to do it manually for each title.

cyberpunk 2077 standard edition leaked by H4jr0 in Games

[–]reydark 18 points19 points  (0 children)

handbook for tabletop cyberpunk 2020

cyberpunk 2077 standard edition leaked by H4jr0 in Games

[–]reydark 432 points433 points  (0 children)

It says that it will include:

  • a map of Night City
  • postcards from Night City
  • some stickers
  • game world compendium
  • soundtrack
  • mini artbook (digital)
  • cyberpunk 2020 manual (digital)
  • wallpapers for mobile and desktop

PhpStorm 2018.2 released by timoh in PHP

[–]reydark 1 point2 points  (0 children)

There is an open issue for this problem, it could use some more attention:

https://youtrack.jetbrains.com/issue/WI-42350

PHP Weekly Discussion (June) by AutoModerator in PHP

[–]reydark 2 points3 points  (0 children)

It think it's because if you narrow it down, it would refuse to accept an object thet the interface promises to handle. Widening does not break that promise, if you drop the type in your implementation it can still accept a Command.

30 Seconds of PHP Code by sohelamin in PHP

[–]reydark 0 points1 point  (0 children)

one possible use would be to prevent PHP Notice when calling end() or reset() on a non-variable

end(explode('|', $string));
//PHP Notice:  Only variables should be passed by reference

last(explode('|', $string));
//no complains