Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Mame using 100% cpu when using hyperspin )fixed, bug found)  (Read 6043 times)

0 Members and 1 Guest are viewing this topic.

abispac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1625
  • Last login:Today at 05:44:18 pm
Mame using 100% cpu when using hyperspin )fixed, bug found)
« 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?
« Last Edit: September 02, 2009, 02:02:50 pm by abispac »

GaryMcT

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 745
  • Last login:September 24, 2014, 11:19:27 am
    • GaryMcT's arcade blog
Re: Controls not responding when using hyperspin
« Reply #1 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.
My blog on learning how to develop FPGA versions of arcade boards: http://garymct.blogspot.com


abispac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1625
  • Last login:Today at 05:44:18 pm
Re: Controls not responding when using hyperspin
« Reply #2 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...

GaryMcT

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 745
  • Last login:September 24, 2014, 11:19:27 am
    • GaryMcT's arcade blog
Re: Controls not responding when using hyperspin
« Reply #3 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.
My blog on learning how to develop FPGA versions of arcade boards: http://garymct.blogspot.com


abispac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1625
  • Last login:Today at 05:44:18 pm
Re: Mame using 100% cpu when using hyperspin
« Reply #4 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...

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame using 100% cpu when using hyperspin
« Reply #5 on: September 02, 2009, 11:57:57 am »
Perhaps it's a video setting? It can be d3d, ddraw or gdi

abispac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1625
  • Last login:Today at 05:44:18 pm
Re: Mame using 100% cpu when using hyperspin )fixed, bug found)
« Reply #6 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.

GaryMcT

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 745
  • Last login:September 24, 2014, 11:19:27 am
    • GaryMcT's arcade blog
Re: Mame using 100% cpu when using hyperspin )fixed, bug found)
« Reply #7 on: September 02, 2009, 02:17:55 pm »
Maybe HyperSpin is still using CPU/processing in put when Mame is running?
My blog on learning how to develop FPGA versions of arcade boards: http://garymct.blogspot.com


zmartin34

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 120
  • Last login:December 26, 2011, 09:22:42 pm
Re: Mame using 100% cpu when using hyperspin )fixed, bug found)
« Reply #8 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?

GaryMcT

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 745
  • Last login:September 24, 2014, 11:19:27 am
    • GaryMcT's arcade blog
Re: Mame using 100% cpu when using hyperspin )fixed, bug found)
« Reply #9 on: September 02, 2009, 10:30:38 pm »
HS really needs to put itself to sleep when Mame is running.
My blog on learning how to develop FPGA versions of arcade boards: http://garymct.blogspot.com


headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame using 100% cpu when using hyperspin )fixed, bug found)
« Reply #10 on: September 04, 2009, 01:42:09 am »
Maybe you could use an app like process 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.

abispac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1625
  • Last login:Today at 05:44:18 pm
Re: Mame using 100% cpu when using hyperspin )fixed, bug found)
« Reply #11 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

GaryMcT

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 745
  • Last login:September 24, 2014, 11:19:27 am
    • GaryMcT's arcade blog
Re: Mame using 100% cpu when using hyperspin )fixed, bug found)
« Reply #12 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!
My blog on learning how to develop FPGA versions of arcade boards: http://garymct.blogspot.com


abispac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1625
  • Last login:Today at 05:44:18 pm
Re: Mame using 100% cpu when using hyperspin )fixed, bug found)
« Reply #13 on: September 05, 2009, 03:15:50 pm »
have you tried in your system?

GaryMcT

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 745
  • Last login:September 24, 2014, 11:19:27 am
    • GaryMcT's arcade blog
Re: Mame using 100% cpu when using hyperspin )fixed, bug found)
« Reply #14 on: September 05, 2009, 03:23:54 pm »
No. I switched to GameEx until I get around to coding a frontend for myself.
My blog on learning how to develop FPGA versions of arcade boards: http://garymct.blogspot.com


abispac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1625
  • Last login:Today at 05:44:18 pm
Re: Mame using 100% cpu when using hyperspin )fixed, bug found)
« Reply #15 on: September 05, 2009, 07:49:50 pm »
good for you, good luck, hope you make somenthing interesting  :cheers:

GaryMcT

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 745
  • Last login:September 24, 2014, 11:19:27 am
    • GaryMcT's arcade blog
Re: Mame using 100% cpu when using hyperspin )fixed, bug found)
« Reply #16 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.
My blog on learning how to develop FPGA versions of arcade boards: http://garymct.blogspot.com