Cleric-K / vJoySerialFeeder

Feed Virtual Joystick driver with data from a serial port
GNU General Public License v3.0
252 stars 55 forks source link

Low latency 1/3ms but still laggy #37

Closed Ver1laso closed 2 years ago

Ver1laso commented 3 years ago

Hello, First of all thanks for your work it's awesome! I´ve connected my Radio to the Pc following this tutorial https://youtu.be/TRnu2_TI9Vk and averything went fine, but I had high latency so I went and update the firm so now I have low latency 1/3ms which is great, but still laggy like If I have 1/2sec latency when you move the Joystic on the vJoySerialFeeder or liftoff game and I'm wondering if I done something wrong (https://imgur.com/svTAzm5.png). There are anything else I should do? Thanks

Cleric-K commented 3 years ago

Hello, Are you using Arduino for the connection?

Check with Windows' Task Manager to see what CPU usage you have while using vjsf.

Do you have smooth gameplay when connecting the transmitter with USB cable directly to the PC?

Maybe you can try some lower requirement sim for reference, for example FPVFreerider: https://fpv-freerider.itch.io/fpv-freerider (look for the free Demos on the page). Start with the lowest quality settings and test for responsiveness. If it works OK, then there's some problem with Velocidrone, maybe you should experiment with the level of details.

Ver1laso commented 3 years ago

Hi Cleric-K,

Yes sorry I didn't mentioned, I'm using Arduino nano. The CPU usage when I move the sticks its 0.2% and the mem used it's around 120mb Yes when I connect the i6x to the pc with the cable I do not have any imput lag I don't think it's an issue with my pc as I have i5 6600k, 32gb ram and 2070 RTX I still having the same issue with the freerider.

I've been thinking could be the issue the cable (which I don't have another one to test) or because I installed ScpToolkit to use my ps3 controller on the pc? (steam games)

Also mention vJoy version 2.1.9.1 and vJoySerialFeeder v2.1.9 (I tried runing as administrator too but its the same)

Cleric-K commented 3 years ago

Strange stuff. In my experience I haven't seen the COM part to intruduce latency by itself. Maybe you can try to use xBox emulation driver instead of vJoy: https://github.com/Cleric-K/vJoySerialFeeder/blob/master/Docs/vXbox.md