[Ohrrpgce] SVN: teeemcee/8119 gfx_directx: Fix bug 2006: slowdown after losing focus while a joystick

James Paige Bob at hamsterrepublic.com
Fri Aug 26 13:05:45 PDT 2016


Yay! Congratulations on putting this bug to rest :)

----
James

On Fri, Aug 26, 2016 at 12:51 PM, <subversion at hamsterrepublic.com> wrote:

> teeemcee
> 2016-08-26 12:51:01 -0700 (Fri, 26 Aug 2016)
> 548
> gfx_directx: Fix bug 2006: slowdown after losing focus while a joystick is
> plugged in
>
> The slowdown was due to calling refreshEnumeration() every tick after a
> device is lost (because we asked for access only while foregrounded), which
> is slow as it scans attached hardware.
>
> To prevent the scanning it was sufficient to handle DIERR_INPUTLOST by
> calling
> Acquire() instead of refreshEnumeration(), but I also added handling for
> some other errors I saw, and just dropping the device in case of misc
> Acquire
> errors rather than spamming error messages.
> ---
> U   wip/gfx_directx/joystick.cpp
> U   wip/gfx_directx/release.txt
> U   wip/gfx_directx/version.h
> U   wip/gfx_directx.dll
> U   wip/whatsnew.txt
> _______________________________________________
> Ohrrpgce mailing list
> ohrrpgce at lists.motherhamster.org
> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20160826/f1639c71/attachment.htm>


More information about the Ohrrpgce mailing list