<div class="markdown_content"><p>Yes, that sounds most likely - I didn't add debug_if_slow calls around the IO calls into the backend, just the GFX calls.</p>
<p>Searching for DirectInput related slowdowns I found a couple mentions:</p>
<p><a href="http://forums.xbox.com/xbox_support/xbox_360_support/f/7/p/1586275/4113115.aspx" rel="nofollow">http://forums.xbox.com/xbox_support/xbox_360_support/f/7/p/1586275/4113115.aspx</a><br/>
<a href="https://twitter.com/mattthorson/status/429794092369735680" rel="nofollow">https://twitter.com/mattthorson/status/429794092369735680</a></p>
<hr/>
<p><strong> <a class="alink" href="http://sourceforge.net/p/ohrrpgce/bugs/2006/">[bugs:#2006]</a> Starts running very slowly after alt-tabbing away</strong></p>
<p><strong>Status:</strong> open<br/>
<strong>Milestone:</strong> OHRRPGCE<br/>
<strong>Created:</strong> Mon Nov 03, 2014 04:47 PM UTC by TeeEmCee<br/>
<strong>Last Updated:</strong> Tue Nov 24, 2015 04:52 PM UTC<br/>
<strong>Owner:</strong> nobody</p>
<p>Foxley wrote:</p>
<blockquote>
<p>Also, for some reason Vorpal Florist starts gobbling up CPU cycles and going about 1-2 frames per second if I switch window focus and then switch back. Other games don't seem to do that</p>
</blockquote>
<p>Ichiro also reported the same problem affecting all games, but I'll have to look up what he said on SS and IRC (apparently wasn't put on bugzilla).</p>
<p>I asked for more information and got the following response:</p>
<blockquote>
<p>Task manager reports the process going from 0-2% CPU usage when running normally to 5-10% when running at 1-2 frames per second. Also, here's the gdebug.</p>
</blockquote>
<pre>OHRRPGCE wip 20141030.6881 gfx_directx+sdl+fb/music_sdl FreeBASIC 0.23.0 (08-14-2011) Win32 32-bit
Runtime info: gfx_directx "gfx_Initialize()...
Adapter: NVIDIA GeForce GTX 750 Ti
Driver: nvd3dum.dll
IDirect3DDevice9 object created as hardware device.
D3DXSaveSurfaceToFile() successfully loaded.
Joysticks supported."  music_sdl, SDL 1.2.15, SDL_Mixer 1.2.12 (22050Hz, Music decoders:WAVE,MIKMOD,NATIVEMIDI,OGG,MP3 Sample decoders:WAVE,AIFF,VOC,OGG)  Windows 6.1.7601 (7/Server 2008 R2) Service Pack 1
Playing game D:\OHR Games\vorpalflorist\vorpalflorist.rpg (Vorpal Florist) 11-03-2014 07:03:19
</pre>

<p>None of the "debug_if_slow" calls I put in allmodex.bas around nearly all calls to the graphics backend triggered, which is quite surprising.</p>
<hr/>
<p>Sent from sourceforge.net because ohrrpgce@lists.motherhamster.org is subscribed to <a href="https://sourceforge.net/p/ohrrpgce/bugs/">https://sourceforge.net/p/ohrrpgce/bugs/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/ohrrpgce/admin/bugs/options.">https://sourceforge.net/p/ohrrpgce/admin/bugs/options.</a>  Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>