Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: abispac on September 01, 2009, 04:45:28 pm

Title: Mame using 100% cpu when using hyperspin )fixed, bug found)
Post by: abispac on September 01, 2009, 04:45:28 pm
i found a similar post but with no solution, ill explain as simple as posible.
when i launch a game from hyperspin in mame , the controllers stop responding normal and they become slow, if i launch same game from comand promnt, it runs great and no controller problem, i use autolaucn in hyperspin, but i discovered that really dosnt matter, problem still there. If i use triplebuffer in mame i dont get the controller problem alot but i still notice a bit of a problem..
im using a p4 computer 2.4 with 1.5gb ram on a nvidia fx5200 128 agp card...mame .132 iwas using the same setup on similar computer espcs... thanks for any help.
Update i found that when using mame with hyperspin mame uses 100% cpu and when i run mame from command prompt mame uses only 27% cpu... any ideas? someone?
Title: Re: Controls not responding when using hyperspin
Post by: GaryMcT on September 01, 2009, 07:28:44 pm
I had the same problem and stopped using hyperspin as a result.  The behavior reminds me of when you tell the D3D driver that you don't mind buffering up a ton of frames, so the graphics is always behind.
Title: Re: Controls not responding when using hyperspin
Post by: abispac on September 01, 2009, 07:42:39 pm
well, the weird part is that this only happens on this computer, that compared to the other one, it bassacly the same computer, same video card,more ram , the only diference its the motherboard...
Title: Re: Controls not responding when using hyperspin
Post by: GaryMcT on September 01, 2009, 07:52:39 pm
Could have different behavior with different drivers.  If there are any settings in Hyperspin for vsync, buffering frames, etc, you might want to mess with them.  Also, check the control panel for your video driver and make sure there isn't something there.
Title: Re: Mame using 100% cpu when using hyperspin
Post by: abispac on September 02, 2009, 01:53:58 am
weird thing, i erased the mame.ini file and everything works like a charm, so it must to be something in the mame .ini file that makes mame use 100% cpu when hyperspin its running, ill see if i can came up with the problem...
Title: Re: Mame using 100% cpu when using hyperspin
Post by: headkaze on September 02, 2009, 11:57:57 am
Perhaps it's a video setting? It can be d3d, ddraw or gdi
Title: Re: Mame using 100% cpu when using hyperspin )fixed, bug found)
Post by: abispac on September 02, 2009, 02:07:28 pm
i found the problem, and a posible bug in mame, i found that on certain cpus, like the one im using roght now, if i set the sleep option in mame.ini to 0 wich is no, and use hyperspin as a front end, something goes wrong and causes mame to use 100 cpu, i tested mame from 127 to 132 and all gave the same result. now settinbg the slepp option to its default wich is 1, lets mame runs on a normal way, and this only happens when mame its using hyperspin, launching mame form command prompt with sleep option at 0, mame works just fine, so it has to do something betwen the sleep option conflictin with hyperspin. thanks for the attention.
Title: Re: Mame using 100% cpu when using hyperspin )fixed, bug found)
Post by: GaryMcT on September 02, 2009, 02:17:55 pm
Maybe HyperSpin is still using CPU/processing in put when Mame is running?
Title: Re: Mame using 100% cpu when using hyperspin )fixed, bug found)
Post by: zmartin34 on September 02, 2009, 10:27:20 pm
So when it pegs you guys at 100% do any games run well (I would assume not)? The reason for this question is because I'm running HS FE and have never noticed any problems although I've never checked my cpu% while emulating 'inside' of HS.

Is there a shortcut key for mame to show cpu usage while running a game?
Title: Re: Mame using 100% cpu when using hyperspin )fixed, bug found)
Post by: GaryMcT on September 02, 2009, 10:30:38 pm
HS really needs to put itself to sleep when Mame is running.
Title: Re: Mame using 100% cpu when using hyperspin )fixed, bug found)
Post by: headkaze on September 04, 2009, 01:42:09 am
Maybe you could use an app like process (http://www.beyondlogic.org/solutions/processutil/processutil.htm) to set HS's process priority to low before Mame is launched and back to normal upon return. It may not be possible to use Sleep() in AS3 but I'd be suprised if HS doesn't already sleep while Mame is running.
Title: Re: Mame using 100% cpu when using hyperspin )fixed, bug found)
Post by: abispac on September 04, 2009, 03:03:44 pm
i fixed the problem by just let the default option in mame , and yes, games where not slow, only the controllers where not responding, and what i did was hit alt ctrl del and cheked at the task manager and thats where  i saw mame was using 100 cpu
Title: Re: Mame using 100% cpu when using hyperspin )fixed, bug found)
Post by: GaryMcT on September 04, 2009, 03:29:17 pm
Big giant fail on HyperSpin's part for you having to fix it this way. :)  Awesome that you figured it out though!
Title: Re: Mame using 100% cpu when using hyperspin )fixed, bug found)
Post by: abispac on September 05, 2009, 03:15:50 pm
have you tried in your system?
Title: Re: Mame using 100% cpu when using hyperspin )fixed, bug found)
Post by: GaryMcT on September 05, 2009, 03:23:54 pm
No. I switched to GameEx until I get around to coding a frontend for myself.
Title: Re: Mame using 100% cpu when using hyperspin )fixed, bug found)
Post by: abispac on September 05, 2009, 07:49:50 pm
good for you, good luck, hope you make somenthing interesting  :cheers:
Title: Re: Mame using 100% cpu when using hyperspin )fixed, bug found)
Post by: GaryMcT on September 05, 2009, 08:23:44 pm
good for you, good luck, hope you make somenthing interesting  :cheers:

Thanks!  I'll put out whatever I end up with, although I'm going to focus on making it work for me first without too much concern for making it configurable.