Page 1 of 4

Neo Geo CPU Overclocking?

Posted: Wed Nov 25, 2020 4:32 pm
by rgn
Some really good NEO-GEO games (like Metal Slug or Shock Troopers series) are suffering from slowdowns... Is it possible to overclock the NEO-GEO core to make 68000 CPU 2x faster like some MAME emulators can do? How much work is required to do that? Something like Turbo mode of SNES core

Re: Neo Geo CPU Overclocking?

Posted: Wed Nov 25, 2020 5:01 pm
by KremlingKuthroat19
Great question! Metal Slug 2 is an outstanding game and even while playing the optimized hack of Metal Slug 2 Turbo, the game still has significant slowdown. I can't help you when it comes to the feasibility of a Turbo CPU mode for the NeoGeo core, but I certainly second your motion! If possible, a Turbo mode on the NeoGeo core would be a gamechanger.

Re: Neo Geo CPU Overclocking?

Posted: Thu Nov 26, 2020 6:23 am
by Coffea
A turbo mode if possible would be a very welcome addition.

Re: Neo Geo CPU Overclocking?

Posted: Thu Nov 26, 2020 9:06 am
by Alkadian
A turbo mode would be awesome indeed!

Re: Neo Geo CPU Overclocking?

Posted: Thu Dec 17, 2020 11:34 am
by Cyril1980
Hi there,

Here is a modified NeoGeo_MiSTer core updated so that most components have a double clock speed ( MC68000 will run at 24MHz ).

This nearly eliminates all slow downs in Metal Slug 2 :D.

This is a quick and dirty hack while waiting for a better implementation from one of our expert FPGA developers.

I have attached the .rbf file as well as the modified source code ( .patch file ) if anyone is interested in checking the modifications I have done.
The source code has been forked from the official github at release 20200928.

Be aware that this core does only work on a handful of games, for the same reason an overclocked MVS hardware would: the LSPC ( GPU ) is not overclocked to keep the video synchronization and that may result in video glitches depending on how the game was programmed at the first place.

So please install this .rbf file alongside the official one and use it only on specific games.

Re: Neo Geo CPU Overclocking?

Posted: Thu Dec 17, 2020 12:47 pm
by Alkadian
@Cyril1980
That's awesome, many thanks for that! I can't wait to check it out! :mrgreen:

Re: Neo Geo CPU Overclocking?

Posted: Thu Dec 17, 2020 2:42 pm
by Cyril1980
A different patch, this time with only the CPU overclocked to 24MHz.

It seems to remove some subtle visual glitches in Metal Slug 2. Not sure if this affects the performance negatively compared to the previous patch (which overclocks more components).

Re: Neo Geo CPU Overclocking?

Posted: Fri Dec 18, 2020 1:54 pm
by lroby74
Just a question, but on original Neogeo console Metal Slug 2 suffers of these slowdowns?

Re: Neo Geo CPU Overclocking?

Posted: Fri Dec 18, 2020 1:59 pm
by rhester72
@lroby74 very much so

Re: Neo Geo CPU Overclocking?

Posted: Fri Dec 18, 2020 2:04 pm
by Cyril1980
lroby74 wrote: Fri Dec 18, 2020 1:54 pm Just a question, but on original Neogeo console Metal Slug 2 suffers of these slowdowns?
Hi. Yes, Metal Slug 2 is well known for its terrible slowdowns (some people like them though). Multiple other games are impacted as well, like Storm Troopers 2 for example.

Take a look at the following video, shot from real hardware: https://youtu.be/VY9oFmTF_PM.

Re: Neo Geo CPU Overclocking?

Posted: Fri Dec 18, 2020 3:20 pm
by lroby74
Cyril1980 wrote: Fri Dec 18, 2020 2:04 pm Take a look at the following video, shot from real hardware: https://youtu.be/VY9oFmTF_PM.
I've just seen video.. it's very visible! :(

Re: Neo Geo CPU Overclocking?

Posted: Fri Dec 18, 2020 5:01 pm
by zakk4223
There's a metal slug 2 turbo patch floating about on the internet: some of the problem is an error in the game's code that can be fixed.
I believe it is in mame as mslug2t.
I'm not sure if it is in the various darksoft packs
Edit: It's in the mister romset.xml as 'Metal Slug 2 (Turbo Hack)'

Re: Neo Geo CPU Overclocking?

Posted: Fri Dec 18, 2020 5:33 pm
by Cyril1980
zakk4223 wrote: Fri Dec 18, 2020 5:01 pm There's a metal slug 2 turbo patch floating about on the internet: some of the problem is an error in the game's code that can be fixed.
I believe it is in mame as mslug2t.
I'm not sure if it is in the various darksoft packs
Edit: It's in the mister romset.xml as 'Metal Slug 2 (Turbo Hack)'
Partially fixed, sadly. There are still slowdowns with it...

Re: Neo Geo CPU Overclocking?

Posted: Fri Dec 18, 2020 6:09 pm
by Aspie
Thanks for this Cyril. Metal Slug mission 5 when there are loads of soldiers on screen trying to jump on your tank, this version certainly makes a difference with no slow down.

Re: Neo Geo CPU Overclocking?

Posted: Fri Dec 18, 2020 8:14 pm
by KremlingKuthroat19
Absolutely brilliant work. From what I can tell this doesn't seem to affect any other games negatively, meaning everything runs much smoother and optimized. Metal Slug 2 with this CPU overclock and using the Turbo ROM hack removes 90% of the slowdown. Essentially, the game is much more enjoyable now.

Is there a way you can add this to the main repo of the official core? This feature is a gamechanger and I just want everyone to be able to experience it with ease.

Re: Neo Geo CPU Overclocking?

Posted: Fri Dec 18, 2020 9:52 pm
by Cyril1980
KremlingKuthroat19 wrote: Fri Dec 18, 2020 8:14 pm Absolutely brilliant work. From what I can tell this doesn't seem to affect any other games negatively, meaning everything runs much smoother and optimized. Metal Slug 2 with this CPU overclock and using the Turbo ROM hack removes 90% of the slowdown. Essentially, the game is much more enjoyable now.

Is there a way you can add this to the main repo of the official core? This feature is a gamechanger and I just want everyone to be able to experience it with ease.
It is really a hack, it would not be great to include this in the current state into the main repo IMHO.
The best would probably be to track down the clock signals inside the LSPC and also overclock those that do not alter the video synchronization.
This would require a developer with very good understanding of the neogeo internals I suppose.
But thanks a lot for your super positive feedback!

Re: Neo Geo CPU Overclocking?

Posted: Fri Dec 18, 2020 11:01 pm
by KremlingKuthroat19
As you saw in my other thread about Windjammers, there are some issues that arise when using the CPU overclock hack.

However, Metal Slug 2 was such a better experience and is my favorite Neo Geo game so it'd be really cool to get this officially added to the core, but it'd need to be implemented correctly so that game compatibility isn't affected.

Are there any other games that have slowdown issues besides the Metal Slug series that any of you are aware of? Regardless, maybe Furtek or Jotego could look to see if this could be implemented as a side project. It'd be really cool and would be the cherry on top for this core as it's pretty amazing as is.

Re: Neo Geo CPU Overclocking?

Posted: Sun Dec 20, 2020 11:52 am
by Alkadian
Cyril1980 wrote: Thu Dec 17, 2020 2:42 pm A different patch, this time with only the CPU overclocked to 24MHz.

It seems to remove some subtle visual glitches in Metal Slug 2. Not sure if this affects the performance negatively compared to the previous patch (which overclocks more components).
@Cyril1980,
I have finally managed to try your patch. It's fantastic! Many thanks for that. I have experienced no slow down at all with MSL2 which is one of my favourite games of all times! Well done! :D

Re: Neo Geo CPU Overclocking?

Posted: Mon Dec 21, 2020 4:57 pm
by rgn
@Cyril1980 I've tried you patch and it works awesome with Metal Slug games. Doesn't work for Shock Troopers tho, but it is not a big deal. Thank you so much!

Re: Neo Geo CPU Overclocking?

Posted: Tue Dec 22, 2020 6:07 pm
by Atohmdiy
Excellent indeed, also try it in metal slug 2 and it's so much better. Thank you !

Re: Neo Geo CPU Overclocking?

Posted: Tue Dec 22, 2020 8:33 pm
by rgn
Atohmdiy wrote: Tue Dec 22, 2020 6:07 pm Excellent indeed, also try it in metal slug 2 and it's so much better. Thank you !
yeah, I've just beaten this game. Gameplay totally changed, nice and smooth. Love it

Re: Neo Geo CPU Overclocking?

Posted: Fri Jan 01, 2021 12:26 pm
by Jinxz
To be honest I am completely lost here... I've been running emulators since 20 years and just a short while ago I moved to FPGA only because I've been surrounded by people in my community that moved beyond emulation and started using FPGA and convincing me of its pure way of playing the good old games. Not because it is easy but because the hard work setting it up leads to the 1:1 experience I once had.
I played Metal Slug when it came out on the Neo Geo back in the day and it had slowdowns...

Now 24 years later we moved passed emulation and we're on a forum because we want the 1:1 experience and there is talk about how shitty the slowdown in Metal Slug is? Didn't you play the game back in the day? If yes, and you still want to "turbo boost" so that you're not bothered with the 1:1 expierence, please buy an 5K pc with a 3090 and an 8K monitor and run an emulator.

My 2 cents :D

Re: Neo Geo CPU Overclocking?

Posted: Fri Jan 01, 2021 2:22 pm
by Cyril1980
Jinxz wrote: Fri Jan 01, 2021 12:26 pm To be honest I am completely lost here... I've been running emulators since 20 years and just a short while ago I moved to FPGA only because I've been surrounded by people in my community that moved beyond emulation and started using FPGA and convincing me of its pure way of playing the good old games. Not because it is easy but because the hard work setting it up leads to the 1:1 experience I once had.
I played Metal Slug when it came out on the Neo Geo back in the day and it had slowdowns...

Now 24 years later we moved passed emulation and we're on a forum because we want the 1:1 experience and there is talk about how shitty the slowdown in Metal Slug is? Didn't you play the game back in the day? If yes, and you still want to "turbo boost" so that you're not bothered with the 1:1 expierence, please buy an 5K pc with a 3090 and an 8K monitor and run an emulator.

My 2 cents :D
Hi.

We play on FPGA for different reasons.

My own reason is input lag. If emulators could emulate without adding multiple frames of input lag and destroy the original experience, I would certainly play on raspberry pi. But this is not the case as of today. And please do not come up with the retroarch hack to shave up frames of lag through fast forwarding, this is really not great. Ever tried that on Tetris for example? It’s awful.

That’s my 2 cents.

Re: Neo Geo CPU Overclocking?

Posted: Fri Jan 01, 2021 3:28 pm
by KremlingKuthroat19
Cyril1980 wrote: Fri Jan 01, 2021 12:26 pm Hi.

We play on FPGA for different reasons.

My own reason is input lag. If emulators could emulate without adding multiple frames of input lag and destroy the original experience, I would certainly play on raspberry pi. But this is not the case as of today. And please do not come up with the retroarch hack to shave up frames of lag through fast forwarding, this is really not great. Ever tried that on Tetris for example? It’s awful.

That’s my 2 cents.
That's exactly why I'm here too. Input lag and playing old games as close to authentically as possible on a modern TV under one platform.

Adding a turbo feature is simply an option. One that you can choose to use or choose not to use if you so please. It's always better to have options. If you want an authentic experience then you don't need to use a turbo feature, if it's ever added.

The GBA core has fast forward, rewind, and save state support. It also has a turbo feature, and a 2X resolution feature. Should we remove those options too because it's not authentic? No because they're options that you can ignore if you don't like them.

If the game's timings are off-kilter and running too fast then the turbo feature becomes a hindrance, but in the case of minimizing frame rate dips to give the game a reliable framerate, I think that a turbo feature is a great option.

I'm no expert on CPU clock speeds and whatnot, but if a turbo feature could focus on just keeping the framerate from dipping and minimize increasing timings in various games, then it'd be ideal.

Re: Neo Geo CPU Overclocking?

Posted: Mon Jan 04, 2021 10:59 pm
by rgn
Jinxz wrote: Fri Jan 01, 2021 12:26 pm To be honest I am completely lost here...
And you're still lost. You don't get the whole idea of FPGA. It is not about 1:1 experience, it is about 1:1 accuracy of hardware replication. You've been using emulators for 20 years? Are you sure you are the right person to talk about "1:1 experience"? 1:1 experience is about having an old console and an old TV.
Why don't you blame filters, turbo modes, extra sprites in other cores then?

I love MiSTer. We now have an accurate console replicas in one box with all the advantages of modern emulators, i.e. hdmi output, scanlines, turbo CPUs, extra sprites and cheat codes. If you don't like any of that - just don't use these features...

Re: Neo Geo CPU Overclocking?

Posted: Tue Jan 05, 2021 11:45 am
by kathleen
@Jimxz
I won't say that your statement is wrong because it is your point of view and I respect it, but I totally disagree with.
It is a chance that we have the Mister which allows us to run games or apps on machines which are not findable anymore or if they are, at a horrible price, it is a chance that we can play games from 70-80-90's for most of them on CRT or LCD, And it is a great chance that the devs have been working hard to enhanced the results either by proposing filters, different speeds, turbos etc. They are always options that you can activate or deactivate, see this like a bonus. If I do not like a TV series I do not watch it full stop. Same here if you do no want turbo mode, simply do not use it. But think that what is maybe useless for you is more that useful for others. I can tell you that since I'm dealing with the Mister, any new core, option, enhancement that I saw have all a big sense to be.

Re: Neo Geo CPU Overclocking?

Posted: Tue Jan 05, 2021 8:21 pm
by t9999clint
I would love to have this implemented as a toggleable option for the official NEOGEO core.

As long as it's not enabled by default than it doesn't matter if it breaks compatibility/accuracy. This is the same as the sprite limit hack on other cores, cool option but I want it off by default.

Re: Neo Geo CPU Overclocking?

Posted: Fri Jan 08, 2021 8:42 pm
by MottZilla
Jinxz wrote: Fri Jan 01, 2021 12:26 pm To be honest I am completely lost here... I've been running emulators since 20 years and just a short while ago I moved to FPGA only because I've been surrounded by people in my community that moved beyond emulation and started using FPGA and convincing me of its pure way of playing the good old games. Not because it is easy but because the hard work setting it up leads to the 1:1 experience I once had.
I played Metal Slug when it came out on the Neo Geo back in the day and it had slowdowns...

Now 24 years later we moved passed emulation and we're on a forum because we want the 1:1 experience and there is talk about how shitty the slowdown in Metal Slug is? Didn't you play the game back in the day? If yes, and you still want to "turbo boost" so that you're not bothered with the 1:1 expierence, please buy an 5K pc with a 3090 and an 8K monitor and run an emulator.

My 2 cents :D
People would tinker with and overclock original systems too. Wanting to have the option on a FPGA system isn't that strange. I have played a lot of NeoGeo on a real MVS system. Usually the slowdown isn't bothersome but Metal Slug 2 is some top tier slowdown. Sure there is Metal Slug X which isn't as bad in that aspect but it would be nice if Metal Slug 2 didn't have to suffer so much when it's clearly possible to do something about it.

Re: Neo Geo CPU Overclocking?

Posted: Tue Jan 12, 2021 5:20 pm
by msimplay
Jinxz wrote: Fri Jan 01, 2021 12:26 pm To be honest I am completely lost here... I've been running emulators since 20 years and just a short while ago I moved to FPGA only because I've been surrounded by people in my community that moved beyond emulation and started using FPGA and convincing me of its pure way of playing the good old games. Not because it is easy but because the hard work setting it up leads to the 1:1 experience I once had.
I played Metal Slug when it came out on the Neo Geo back in the day and it had slowdowns...

Now 24 years later we moved passed emulation and we're on a forum because we want the 1:1 experience and there is talk about how shitty the slowdown in Metal Slug is? Didn't you play the game back in the day? If yes, and you still want to "turbo boost" so that you're not bothered with the 1:1 expierence, please buy an 5K pc with a 3090 and an 8K monitor and run an emulator.

My 2 cents :D
Input lag is the biggest problem with emulators 5K pc won't do anything to correct this unless the specific emulator supports frames in advance which is relatively new and not many emulators have it

Re: Neo Geo CPU Overclocking?

Posted: Tue Jan 12, 2021 5:44 pm
by antibolo
Why would you ever play Metal Slug 2 when Metal Slug X exists?