<div dir="ltr"><div>Yay! Congratulations on putting this bug to rest :)<br><br>----<br></div>James<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 26, 2016 at 12:51 PM,  <span dir="ltr"><<a href="mailto:subversion@hamsterrepublic.com" target="_blank">subversion@hamsterrepublic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">teeemcee<br>
2016-08-26 12:51:01 -0700 (Fri, 26 Aug 2016)<br>
548<br>
gfx_directx: Fix bug 2006: slowdown after losing focus while a joystick is plugged in<br>
<br>
The slowdown was due to calling refreshEnumeration() every tick after a<br>
device is lost (because we asked for access only while foregrounded), which<br>
is slow as it scans attached hardware.<br>
<br>
To prevent the scanning it was sufficient to handle DIERR_INPUTLOST by calling<br>
Acquire() instead of refreshEnumeration(), but I also added handling for<br>
some other errors I saw, and just dropping the device in case of misc Acquire<br>
errors rather than spamming error messages.<br>
---<br>
U   wip/gfx_directx/joystick.cpp<br>
U   wip/gfx_directx/release.txt<br>
U   wip/gfx_directx/version.h<br>
U   wip/gfx_directx.dll<br>
U   wip/whatsnew.txt<br>
______________________________<wbr>_________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org">ohrrpgce@lists.motherhamster.<wbr>org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.<wbr>org/listinfo.cgi/ohrrpgce-<wbr>motherhamster.org</a><br>
</blockquote></div><br></div>