Jump to content
The simFlight Network Forums

Repeat rate between "physical" and virtual joystick different


pilotjohn

Recommended Posts

The "repeat while held" rate seems to be different between physical (those coming from the OS) and virtual (device IDs 64-72) joystick buttons. As I switched to triggering FSUIPC through virtual buttons from Stream Deck (instead of using vJoy), the rate at which events are sent to MSFS (for example, MHz increment on COM1) appears much higher for virtual buttons. This makes it hard to do step increments. I have the repeat set to 25,10 (40ms with 400ms initial delay), but the "initial delay" also seems to be ignored.

Link to comment
Share on other sites

@pilotjohn Please try the attached version. The initial delay should now be working, and the repeat rate adjusted to give acceptable values for standard and virtual buttons.

FSUIPC7.exe

Using that version with the following:

PollInterval=40
ButtonRepeat=25,12
 
gives initial and repeat delays near enough identical, and hopefully you should get similar results (but not guaranteed!) for other values.
 
John
 
Link to comment
Share on other sites

7 minutes ago, John Dowson said:

hopefully you should get similar results (but not guaranteed!) for other values.

I think the timings for virtual buttons stay pretty much spot on. the PollInterval value doesn't affect those -- that's only applied to hardware polling. The way to get the timings the same is to make sure that the repeat rate is a divisor of the poll rate -- eg in this case an interval of 40 mSecs is a rate of 25 per second, , so 25/25 = 1. If there's a mismatch, as i think the default values currently provide, then the rate for real buttons will suffer -- i.e. be slower compared to the virtual buttons.

So:

PollInterval=20
ButtonRepeat=25,12

is okay too, as the poll rate is 1000/20 = 50 and 50/25 = 2.

And so on.

All this stuff isn't normally all that important -- except when comparing rates! Earlier versions of FSUIPC did assume there was a lot more overhead in polling real buttons and so adjusted the timings to suit, resulting in the much slower real button polling. Experiments on more recent hardware (and Windows versions) showed that these adjustments could be significantly relaxed.

Pete

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.