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: GroovyMame Slows Down  (Read 7291 times)

0 Members and 1 Guest are viewing this topic.

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
GroovyMame Slows Down
« on: January 13, 2014, 06:05:54 pm »
Have noticed that GM will slow down to 66% for no apparent reason and the a minute later go back to 100%. I have attached a log file any ideas??

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7463
  • Last login:July 19, 2025, 04:03:33 am
  • Quote me with care
Re: GroovyMame Slows Down
« Reply #1 on: January 13, 2014, 06:11:09 pm »
Are you using -frame_delay?

BTW, what about this?: http://forum.arcadecontrols.com/index.php/topic,137042.0.html
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: GroovyMame Slows Down
« Reply #2 on: January 13, 2014, 07:17:06 pm »
No, Frame Delay is disabled

Regarding the other problem i uninstalled and installed the latest drivers for my GFX card and the problem went away

Sledge

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 500
  • Last login:July 24, 2025, 09:26:13 pm
Re: GroovyMame Slows Down
« Reply #3 on: January 14, 2014, 04:07:27 am »
while on the subject of frame delay..
What's best practice?
Have it turned on globally? or only for games that need it?
« Last Edit: January 14, 2014, 04:16:36 am by Sledge »

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: GroovyMame Slows Down
« Reply #4 on: January 15, 2014, 01:46:34 pm »
Any ideas?

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7463
  • Last login:July 19, 2025, 04:03:33 am
  • Quote me with care
Re: GroovyMame Slows Down
« Reply #5 on: January 15, 2014, 01:49:32 pm »
Hi lettuce,

So when it slows down you only see the percentage going down or you notice it in game play/sound etc.?
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: GroovyMame Slows Down
« Reply #6 on: January 15, 2014, 04:16:39 pm »
Yeah the game and audio slow right down, as if its going in slow motion

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7463
  • Last login:July 19, 2025, 04:03:33 am
  • Quote me with care
Re: GroovyMame Slows Down
« Reply #7 on: January 15, 2014, 04:34:46 pm »
Well that's quite odd. Is this a general problem with all games? Maybe there's some background process that could be stealing CPU from us? I'd start task manager so you can monitor your CPU cores work load.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: GroovyMame Slows Down
« Reply #8 on: January 15, 2014, 07:38:11 pm »
Well here the odd thing, if i Alt TAB out of MAME when its going slow and Alt TAB back into MAME then its runs fine again

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7463
  • Last login:July 19, 2025, 04:03:33 am
  • Quote me with care
Re: GroovyMame Slows Down
« Reply #9 on: January 17, 2014, 04:08:20 pm »
while on the subject of frame delay..
What's best practice?
Have it turned on globally? or only for games that need it?

I'd recommend adding this option game by game. This is actually not an option for the average user, it's quite experimental, it's better to understand how it actually works if you're using it. That's why it's disabled by default.

Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7463
  • Last login:July 19, 2025, 04:03:33 am
  • Quote me with care
Re: GroovyMame Slows Down
« Reply #10 on: January 17, 2014, 04:09:51 pm »
Well here the odd thing, if i Alt TAB out of MAME when its going slow and Alt TAB back into MAME then its runs fine again

I've never seen anything like that...

Did you check the task manager?
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

Sledge

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 500
  • Last login:July 24, 2025, 09:26:13 pm
Re: GroovyMame Slows Down
« Reply #11 on: January 18, 2014, 08:24:33 am »
while on the subject of frame delay..
What's best practice?
Have it turned on globally? or only for games that need it?

I'd recommend adding this option game by game. This is actually not an option for the average user, it's quite experimental, it's better to understand how it actually works if you're using it. That's why it's disabled by default.
is there a way to have it enable only for interlaced games?
maybe interlaced.ini or something?

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: GroovyMame Slows Down
« Reply #12 on: January 19, 2014, 05:47:45 am »
Well here the odd thing, if i Alt TAB out of MAME when its going slow and Alt TAB back into MAME then its runs fine again

I've never seen anything like that...

Did you check the task manager?

As soon as I alt + tab out of GM I can hear the audio run at stupidly fast speed, it just seems if you get out of zgM then the problem stops

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7463
  • Last login:July 19, 2025, 04:03:33 am
  • Quote me with care
Re: GroovyMame Slows Down
« Reply #13 on: January 19, 2014, 06:24:39 am »
As soon as I alt + tab out of GM I can hear the audio run at stupidly fast speed, it just seems if you get out of zgM then the problem stops

That's irrelevant, you're just dettaching MAME from v-sync so it goes crazy fast. As I said, you need to check in task manager for CPU issues. Something must be sucking your CPU, any antivirus?
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: GroovyMame Slows Down
« Reply #14 on: January 25, 2014, 04:26:38 pm »
Heres a vid showing the problem Calamity and also shows the task manager...

http://www.youtube.com/watch?v=fx0jxX7NRhs&feature=youtu.be

There appears to be no other pogram knicking cpu cycles at all, infact GM is only using 18% CPU power.

Odd think i have noticed that one time it was doing this, i hit the Print Screen button and as soon as i did that the game speed up back to normal speed....very odd!

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7463
  • Last login:July 19, 2025, 04:03:33 am
  • Quote me with care
Re: GroovyMame Slows Down
« Reply #15 on: January 25, 2014, 04:28:42 pm »
It says 'private video'.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: GroovyMame Slows Down
« Reply #16 on: January 25, 2014, 07:00:30 pm »
Ah sorry, try now

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7463
  • Last login:July 19, 2025, 04:03:33 am
  • Quote me with care
Re: GroovyMame Slows Down
« Reply #17 on: January 25, 2014, 08:12:45 pm »
I wonder if the problem exists with hlsl off.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: GroovyMame Slows Down
« Reply #18 on: January 26, 2014, 04:12:42 am »
I can try, doesn't happen all the time however. What is your thinking behind HLSL causing the issue?

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7463
  • Last login:July 19, 2025, 04:03:33 am
  • Quote me with care
Re: GroovyMame Slows Down
« Reply #19 on: January 26, 2014, 06:15:09 am »
I was thinking it could be due to GPU overheating, caused by HLSL intensive rendering.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: GroovyMame Slows Down
« Reply #20 on: January 26, 2014, 08:07:42 am »
Nah i doubt that very much, i have a after market cooler on my GPU and even playing games like Crysis 3 on high setting the temp never goes above 52c. But if that was the cause what would explain why when i pressed 'print screen' did it stop it and go back to the correct speed??
« Last Edit: January 26, 2014, 08:10:04 am by lettuce »

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7463
  • Last login:July 19, 2025, 04:03:33 am
  • Quote me with care
Re: GroovyMame Slows Down
« Reply #21 on: January 28, 2014, 05:17:30 pm »
You have only three possible sources of slow down:

- CPU not capable (discarded)
- GPU not capable (discarded)
- Badly reported vsync signals. Missing one out of three retraces will cause GM run at 66% (exactly what your seeing). Vsync has worked flawlessly all this time and nothing relevant has been changed lately so I suspect about your video drivers.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: GroovyMame Slows Down
« Reply #22 on: January 31, 2014, 04:32:51 pm »
Its definitely related to HLSL. I disabled HSLS and didn't get a single slow down. So the question is why is HLSL settings causing this issue?

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7463
  • Last login:July 19, 2025, 04:03:33 am
  • Quote me with care
Re: GroovyMame Slows Down
« Reply #23 on: January 31, 2014, 04:56:28 pm »
Its definitely related to HLSL. I disabled HSLS and didn't get a single slow down. So the question is why is HLSL settings causing this issue?

Because at some point the GPU is overloaded so that one out of three frames takes more than 16.67 ms to get rendered, so its corresponding retrace signal is missed, and it has to wait for the next one. This issue would be masked if you run with vsync off, as the average speed would still be 100%. But vsync requires that every single frame is rendered within its time slice.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: GroovyMame Slows Down
« Reply #24 on: January 31, 2014, 05:01:42 pm »
Hmm well i have a Nvidia 7970 3GB, i would think that card would be more than capable of running HLSL......well infact i know it is as i have never had this problem before and have only noticed it in 0.152

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7463
  • Last login:July 19, 2025, 04:03:33 am
  • Quote me with care
Re: GroovyMame Slows Down
« Reply #25 on: January 31, 2014, 05:35:00 pm »
I'm not saying your card is not capable, indeed it shouldn't necessarily be a GPU problem. But for me, it is crystal clear that the issue is that for 1 out of 3 frames, this is what happens:

CPU time + GPU time > 16.67 ms

Of course if you use HLSL, then GPU time is bigger, so it's more likely you'll see the problem.

Trust me on this, there's no black magic here.

So why would you see this problem with 0.152 and not before? They change stuff in MAME all the time, maybe now that driver eats more CPU, maybe HLSL now eats more GPU... But I know the stuff I touch for the GM patch and I'm 99.9% sure the problem is not GM related.

PD: BTW, try if enabling multithreading makes any difference.
« Last Edit: January 31, 2014, 05:49:26 pm by Calamity »
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi