GithubHelp home page GithubHelp logo

Comments (11)

arabek avatar arabek commented on May 26, 2024 1

lgtm to me

from hid-tmff2.

berarma avatar berarma commented on May 26, 2024

This is the game sending more effect updates than the device can handle. Limiting the frame rate can help with the issue.

It happens with other wheels too.

from hid-tmff2.

arabek avatar arabek commented on May 26, 2024

I decided to hack a bit and changed the DEFAULT_TIMER_PERIOD to 2 instead of 8 in hid-tmt300rs.h. For now it seems stable and no msg spam even with unlocked framerate. Might be a placebo but the effects in ETS2 seem more defined / on point too.

from hid-tmff2.

Kimplul avatar Kimplul commented on May 26, 2024

Might not be placebo, as you've essentially increased the effect's resolution. That being said I'm not really comfortable lowering the timer period down to 2 ms, because I experienced some issues with my wheel when I set the timer that low. The wheel itself would occasionally freeze up, and I'd have to unplug the wheel and plug it back in. Though that was before the resolution we found in #6, so the timing issue might've been also been affected by the changes.

from hid-tmff2.

arabek avatar arabek commented on May 26, 2024

I've now played with the 2ms setting for quite some time and it didn't occur anymore. Neither with ETS2 nor Project CARS 2 under Steam/Proton.

from hid-tmff2.

Kimplul avatar Kimplul commented on May 26, 2024

That sounds promising. I'd still like to test it out on my own wheel.

I could also just set the timer to be a module parameter, so users could set their own timers, if I find out that different wheels have different tolerances.

from hid-tmff2.

arabek avatar arabek commented on May 26, 2024

So i've played Assetto Corsa Competizione, and this might give you a hint:
https://www.wolframalpha.com/input/?i=333hz+to+miliseconds
(game allows update rates for force feedback up to 333hz - options are 111hz, 222hz & 333hz ingame). Basically what i'm saying is - setting 2ms (3ms might do too, idk, never tested) is the only option that makes sense to me (and leaves 1ms for other stuff the wheel might want to do). Since i've set it to 2ms i never had any dmesg spam with queue (nor broken effects). Hope it helps.

from hid-tmff2.

Kimplul avatar Kimplul commented on May 26, 2024

Yep, thanks, I'll try it out on my wheel as soon as possible. Not 100% confident in pushing such a change without some testing by myself.

from hid-tmff2.

Kimplul avatar Kimplul commented on May 26, 2024

Hello again, sorry for the long delay. I added in functionality for setting the timer period when loading the module, either by modprobe hid-tmt300rs timer_msecs=NUMBER or by setting options hid-tmt300rs timer_msecs=NUMBER in /etc/modprobe.d/hid-tmt300rs.conf. As far as I could tell, setting the number to 2 ms didn't seem to crash my wheel as it had done previously, but I'm still going to keep the default period at 8 ms, just to be on the safe side.

Check that everything is alright and we can close this issue.

from hid-tmff2.

arabek avatar arabek commented on May 26, 2024

from hid-tmff2.

Kimplul avatar Kimplul commented on May 26, 2024

I'm sort of on the fence about it.

You're absolutely right that changing the timer has cleaned up the console spam on your setup, and the increased resolution is definitely a plus. But I'm not really comfortable with the thought that some people's wheels MIGHT crash the first time they're trying it out, and then have to go back and see if there's something they can do about it. I'd prefer to make sure that the wheel works out of the box, and if the user feels the need to tune the wheel then they can do so.

The output you showed in this thread admittedly does speak for the 2 ms setting, but I don't have ETS2 and no other game has had similar issues. That I own, at least.

from hid-tmff2.

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.