Giter Site home page Giter Site logo

Lag about vjoyserialfeeder HOT 3 CLOSED

cleric-k avatar cleric-k commented on September 28, 2024
Lag

from vjoyserialfeeder.

Comments (3)

Cleric-K avatar Cleric-K commented on September 28, 2024

How do you measure the lag?

vjsf should not introduce any feelable lag, since the program loop is quite straightforward - it simply reads the IBUS frames and immediately converts them to vJoy commands.

Also keep in mind that vjsf graphical interface (including the channel monitor) is not reliable for judging latency. The interface updates more rarely than the actual vJoy driver updates. The reason is that the gui of vjsf has only informative role, so trying to update the gui every 7ms (the normal ibus frame rate) will require too much cpu resources and most of the updates wouldn't be even detected by the human eye.

from vjoyserialfeeder.

VIV-IOI avatar VIV-IOI commented on September 28, 2024

Thanks, fast feedback!
I simply measure the system lag with a 240fps cam, 60hz monitor, and a real time background ms stopwatch ( a 60hz monitor gives +/- 16ms per frame ).

Nice point, it really makes sense, so gui from vjsf it's not a visual real time feedback that i can use for measuring lag.
Update rate 7ms shows on gui of vjsf is related to input signal on ibus arduino > vjsf output?

For now the best way is try to debug this with real time code latency measure.

Thanks for all info,
Best regards,

from vjoyserialfeeder.

Cleric-K avatar Cleric-K commented on September 28, 2024

The 7ms on vjsf is not latency but the time between the frames (frame rate) - that is how often input ibus frames arrive on the serial port.

In fact, it is not possible to measure latency without additional equipment, because when an ibus frame arrives at the serial port, there's simply no way to tell how long it has been travelling. It could have been sent 1ms ago, or it could have been sent an year ago. The only way is to timestamp the frame as it leaves the transmitter and then track the time when the same frame arrives at the pc. But this is not easy to do, as it would require various tech hacks.

The question is whether you feel lag when you play?
You should check that with different sims.

For example I have suspicion that DRL has some latency on its own. FPV Air seems to be the most responsible. I do fine in sims like FPV Air, Liftoff, but in DRL I find it quite hard to do moves that require more precise timing - like split s-ing into an air gate. This move is quite comfortable in the other sims, but I have no idea why it is so hard for me in DRL. Physics seem to be not that different, so I strongly suspect that (at least on my machine, which is not very gamer-grade at all) DRL simply has some lag which I'm having trouble compensating.
It is interesting that Joshua Bardwell mention exactly the same thing in one of his videos - he said that he kept crashing in DRL and didn't have idea why.
https://www.youtube.com/watch?v=Vbiv3HbymrE&t=16m39s

from vjoyserialfeeder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.