[Ohrrpgce] [ohrrpgce:bugs] #2006 Starts running very slowly after alt-tabbing away

TeeEmCee teeemcee at users.sf.net
Sun Oct 30 22:58:46 PDT 2016


Fixed in r8119 a couple months ago. Was caused by gfx_directx scanning for joysticks continually after a device was lost (only happened is a joystick was plugged in).


---

** [bugs:#2006] Starts running very slowly after alt-tabbing away**

**Status:** open
**Milestone:** OHRRPGCE
**Created:** Mon Nov 03, 2014 04:47 PM UTC by TeeEmCee
**Last Updated:** Wed Nov 25, 2015 11:17 AM UTC
**Owner:** nobody


Foxley wrote:
>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

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).


I asked for more information and got the following response:

>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.

<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>

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.


---

Sent from sourceforge.net because ohrrpgce at lists.motherhamster.org is subscribed to https://sourceforge.net/p/ohrrpgce/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/ohrrpgce/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20161031/26da1e6a/attachment.htm>


More information about the Ohrrpgce mailing list