Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jan 2018 09:54:11 +0000
From:      Johannes Lundberg <johalun0@gmail.com>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        Ian Lepore <ian@freebsd.org>, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: Periodical interrupt storm when playing game with USB keyboard
Message-ID:  <CAECmPwvr2on6_DDehnHd%2BRq1a1r2s-ib99MsabDSbxGo7Ykuhw@mail.gmail.com>
In-Reply-To: <0aceb3ff-4938-1b29-d493-d83ce82cc853@selasky.org>
References:  <CAECmPwvDQBYw=mKJpZfUdKpXSC8GysZKSk0f9qaZEXCvy_QeMA@mail.gmail.com> <e2851846-0678-5cb9-0fce-e9cf49c41a2e@selasky.org> <CAECmPwvgMDBTUjhAERe4bKLgNYCim9bwdHw2JEL0RgTckMjSDw@mail.gmail.com> <CAECmPwtWr0t5_xLgg4NMxnjz317sqnfR9-ttH62szq4fwPdO=Q@mail.gmail.com> <64218617-98d2-0e6e-5872-e44106e61bf7@selasky.org> <1516569725.42536.99.camel@freebsd.org> <CAECmPws07U1=KkqgrjHotjnbPhX53n2L9Jj36guLruTJ-wc%2BCw@mail.gmail.com> <0aceb3ff-4938-1b29-d493-d83ce82cc853@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 22, 2018 at 8:23 AM, Hans Petter Selasky <hps@selasky.org>
wrote:

> On 01/21/18 23:57, Johannes Lundberg wrote:
>
>> Thanks for the further explanation.
>> I curious as to where the problem might be though.. It is the game's
>> binary-only Linux executable (Unreal Engine 2.5), Linux SDL 1.2, or on the
>> FreeBSD side? Haven't experienced anything similar with Quake3...
>> Switching to periodic timer feels like overkill but it does the job as a
>> work around.
>>
>
> Hi,
>
> It might be simply this, that the wrong clock-type is used when setting up
> absolute timeouts.
>

Actually I think the same thing happens on the Macbook (with MacOS) which
has a USB internal keyboard.
The Mac binary is probably the same code base as the Linux one. Running
Windows binary with wine does not experience this problem, unfortunately
wine can only launch this game on MacOS, not FreeBSD.

I assume USB can generate higher rate of interrupts than a PS/2 which this
game (*nix version) was probably designed for initially.



>
> --HPS
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAECmPwvr2on6_DDehnHd%2BRq1a1r2s-ib99MsabDSbxGo7Ykuhw>