Ryochan7 / DS4Windows

Like those other ds4tools, but sexier
https://ryochan7.github.io/ds4windows-site/
GNU General Public License v3.0
6.93k stars 804 forks source link

DS4 V2 Latency #278

Closed Brandhor closed 6 years ago

Brandhor commented 6 years ago

I've bought ds4 v2 but the latency with a usb cable is 16ms, my old ds4 v1 had a latency of 4ms, as for bluetooth the v1 had 8-12ms and the v2 has 18-19ms is this a known issue with the v2 or should I get a replacement?

jonaaa20 commented 6 years ago

I have a V2, my latency is 4ms on USB and 1,25 - 3ms on Bluetooth.

TristanYoung commented 6 years ago

I can confirm my DS4 v2 has BT latency of 3ms or less.

I would try several things... Re-orient your bluetooth adapter - it shouldn't be behind your PC - it should be on the front of your PC, or on an extension cord close to where your controller will be used. If your keyboard has a USB port on it - plug the bluetooth radio there. Make sure you don't have other devices in the 2.4GHz causing interference (microwave oven, cordless phone, cellphone, other bluetooth devices, etc.).

My latency increases if I plug my BT adapter into the back of my monitor, so I don't use those ports anymore.

Try a different BT adapter - maybe yours is on the fritz. Also try a different controller. Hopefully you can figure out the problem.

Brandhor commented 6 years ago

@TristanYoung it's integrated in the motherboard so I can't move it around, I also have a old bluetooth 2.0 dongle but the v2 doesn't work at all with it, the problem though is that I get 16ms on usb which is really weird

anyway I ordered a replacement so I'll see in a few days, it's just strange that an hardware bug could cause an increased latency

TristanYoung commented 6 years ago

@Brandhor Focusing on bluetooth: Motherboard integrated devices, such as bluetooth radios can be problematic - when they fail, you can't simply unplug it, try it on another machine, relocate it, or replace it. They are also located within a grounded metal chassis which can suppress the signal somewhat.

Filtration components (eg: capacitors, esp. Chinese capacitors) can fail, leading to increased noise and lower operating speeds I think.

Again, look for potential sources of interference in the 2.4GHz band. Wireless headsets, cellphones, microwave ovens, baby monitors, gaming controllers in adjacent rooms/homes, wireless speakers, etc. Ideally this stuff should co-exist gracefully, but there's no guarantees in life, and 2.4GHz is often congested in urban environments.

Could also have a buggy bluetooth stack, or Windows isn't supporting your bluetooth properly (bad driver, or Windows has updated something that is affecting bluetooth support. I noticed one update last year caused CSR based bluetooth radios to stop working all together; this has since been fixed. I keep a CSR based bluetooth radio (Brand: Cirago) and a Broadcomm based bluetooth radio (Brand: IOGear) handy - the IOGEAR is definitely the better model, but handy for testing when issues arise.

Focusing on USB: Could have a bad driver affecting USB speeds, too many devices connected to the same USB hub, an incorrect or defective USB cable, or a buggy/deffective OS installation.

Make sure you are using a USB2.0 (or better) cable 6ft or shorter.Do not plug it into an external USB hub or use an extension cable. USB0 and USB1 ports share the same internal hub, USB2 and USB3 ports share the same internal hub, etc. Make sure you don't have a high-bandwidth-consuming device sharing the same internal hub. If you want to be certain, plug your controller into USB0, and leave USB1 empty. The highest-bandwidth devices tend to be webcams, storage devices and audio devices (eg: USB soundcards and USB gaming headsets).

Make sure you are using up-to-date manufacturer-recommended USB drivers. Sometimes the drivers Windows supplies are sub-optimal/defective. Always prefer the USB chipset manufacturer drivers.

Testing an external bluetooth and USB controller is easy - use a different machine that isn't an exact mirror of the one you're using (avoid same hardware, OS mirror, etc.).

Hopefully you can narrow down the issue. Good luck.

diogocalgaro commented 6 years ago

I usually get 4ms using cable and 8ms using Sony adapter in a v2 DS4.

TristanYoung commented 6 years ago

Thinking about it some more, I'm not sure if it really helps to post latency stats on their own.|

There are many things that can affect I/O latency including:

When I created my system, my main focus was music production, with low DPC latency. Turns out to be a great gaming system too.

For example, if one of your drivers is misbehaving by taking longer than reasonable to process, you can expect all sorts of issues - DPC latency - the effects include increased I/O latency, increased storage drive access, controller lag, audio dropout or corruption, etc. Sometimes doing something as simple as discontinuing use of dashboard software that monitors CPU speed/performance can have a measurable effect on overall system latency. Keep in mind, a gaming machine should be lean and mean, not running a pile of unnecessary programs/processes/services that aren't required for gaming.

Crypto-currency miners and malware can also affect latency.

Some of the points above also affect overall FPS, and some games are heavily CPU-bound to begin with - lowering FPS, such as Elder Scrolls Online (all updates prior to the up-coming update 18).

I hope this helps.

[I make no claim that the above is 100% accurate. Feel free to correct me.]

Brandhor commented 6 years ago

I just got another v2 and I get 4ms in usb so there was definitely something wrong with the other one