Author Topic: Is there any hardware to make the CPC run faster?  (Read 1651 times)

0 Members and 1 Guest are viewing this topic.

Offline banana

  • CPC664
  • ***
  • Posts: 109
  • Country: gr
    • Awards
This would come in handy for those slow zx spectrum and C64 conversion games.A change in MHz is what I mean, not a different processor as that would mean no backward compatibility.
like
0
No reactions

Offline roudoudou

  • 6128 Plus
  • ******
  • Posts: 1.154
  • Country: fr
    • urban exploration
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #1 on: 14:23, 18 June 21 »
it's called emulator  ;D
maybe some serious drug can slow your brain, so the game will look faster ?
like
0
No reactions
use RASM, the best assembler ever made :p

I will survive

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 17.181
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #2 on: 14:25, 18 June 21 »
This would come in handy for those slow zx spectrum and C64 conversion games.A change in MHz is what I mean, not a different processor as that would mean no backward compatibility.


There have been discussions about replacing the Z80 with a beefier version, you can look for them but the short answer is: no.
like
0
No reactions

Offline banana

  • CPC664
  • ***
  • Posts: 109
  • Country: gr
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #3 on: 14:26, 18 June 21 »
it's called emulator  ;D
maybe some serious drug can slow your brain, so the game will look faster ?
I guess that is a solution, and it's free, but still no hardware invention?What's the drug called  8) ?
like
0
No reactions

Offline banana

  • CPC664
  • ***
  • Posts: 109
  • Country: gr
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #4 on: 14:30, 18 June 21 »
Look at Bad dudes vs dragon ninja as an example, there are hundreds more. The game has nice graphics but is so slow that makes it almost unplayable.
« Last Edit: 14:34, 18 June 21 by banana »
like
0
No reactions

Offline roudoudou

  • 6128 Plus
  • ******
  • Posts: 1.154
  • Country: fr
    • urban exploration
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #5 on: 14:30, 18 June 21 »
I guess that is a solution, and it's free, but still no hardware invention?What's the drug called  8) ?
someone tried to speed up Z80 to 8MHz to as all chips are synchronous, Floppy disc controler will also run twice as fast => you cannot expect using floppies anymore
video controller also will run faster so you will have a nice stamp (or maybe black screen?)
and the music...
well, that's a bad idea...
ps: bad dudes is well optimized, it's cool to play even it's not as fast as arcade...
like
0
No reactions
use RASM, the best assembler ever made :p

I will survive


Offline roudoudou

  • 6128 Plus
  • ******
  • Posts: 1.154
  • Country: fr
    • urban exploration
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #7 on: 14:32, 18 June 21 »

anyway, spectrum display faster, ok, but we have COLORS  8)
like
0
No reactions
use RASM, the best assembler ever made :p

I will survive

Offline banana

  • CPC664
  • ***
  • Posts: 109
  • Country: gr
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #8 on: 14:38, 18 June 21 »
anyway, spectrum display faster, ok, but we have COLORS  8)
Yes, for sure. The worst conversions from the spectrum I have seen are on the MSX machines, those were simply terrible.
like
0
No reactions

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 17.181
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #9 on: 14:40, 18 June 21 »
Don't know what you guys are saying, I played Bad Dudes a lot back in the day and always enjoyed looking at the bad guys flying through the air in slow-mo.
like
0
No reactions

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 12.497
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #10 on: 15:56, 18 June 21 »
The problem with overclocking the CPC is that most of the hardware CPU, Sound, Graphics, Gate Array and Floppy all derive their clock from the same source. So it's extremely difficult to speed up the CPU without speeding up everything else. They are also synchronised with each other, so speeding just the CPU up causing problems in the synchronisation.

Bryce.
like
0
No reactions

Offline Shaun M. Neary

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.713
  • Country: ie
  • BASIC 1.0 - Ready
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #11 on: 16:04, 18 June 21 »
Look at Bad dudes vs dragon ninja as an example, there are hundreds more. The game has nice graphics but is so slow that makes it almost unplayable.

Huh? Dragonninja wasn't that bad in terms of speed. The main problem with that game was that the bosses were too easy to defeat. Kick, they jump over you, kick again, they jump over you.
Repeat until dead.

anyway, spectrum display faster, ok, but we have COLORS  8)

Please don't tell me we were still talking about Dragonninja here. That game was a shambolic mess on the Spectrum!
like
0
No reactions
Currently playing on: 2xCPC464, 1xCPC6128, 1x464Plus, 1x6128Plus, 2xGX4000. M4 board, ZMem 1MB and still forever playing Bruce Lee.
No cheats, snapshots or emulation. I play my games as they're intended to be played. What about you?

Offline banana

  • CPC664
  • ***
  • Posts: 109
  • Country: gr
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #12 on: 16:37, 18 June 21 »
I used a bad example of a slow game  :doh:
like
0
No reactions

Offline ajcasado

  • Supporter
  • CPC664
  • *
  • Posts: 91
  • Country: es
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #13 on: 16:44, 18 June 21 »
Maybe it's possible to switch the clock input of the Z80 between phi (mainboard 4MHz) and a synchronised higher frequency clock signal when the Z80 is not interfacing with memory or I/O devices. This would speed up some CPU T-cycles per instruction cycle.
like
0
No reactions
CPC 664

Empiezas a envejecer cuando dejas de aprender.
You start to get old when you stop learning.

Offline TotO

  • 6128 Plus
  • ******
  • Posts: 4.056
  • Country: fr
    • ?area=showdonations;u=4
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #14 on: 17:16, 18 June 21 »
To speed-up the CPC, you can use floppy disc instead of tape, on ROM programs. ;D
Well... I'm sorry that Amstrad do not improve the speed with the Plus range of computers.
like
0
No reactions
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 12.497
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #15 on: 17:41, 18 June 21 »
Maybe it's possible to switch the clock input of the Z80 between phi (mainboard 4MHz) and a synchronised higher frequency clock signal when the Z80 is not interfacing with memory or I/O devices. This would speed up some CPU T-cycles per instruction cycle.

I made a similar project using this method to speed up an Atari 800XL. I does get faster, but the results are firstly variable, ie: some programs get a bigger boost than others and secondly, the overall increase is minimal.

Bryce.
like
0
No reactions

Offline ajcasado

  • Supporter
  • CPC664
  • *
  • Posts: 91
  • Country: es
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #16 on: 17:59, 18 June 21 »
I made a similar project using this method to speed up an Atari 800XL. I does get faster, but the results are firstly variable, ie: some programs get a bigger boost than others and secondly, the overall increase is minimal.

Did you used a a faster CPU or just overclocked the stock one?.

With the CPC a 8MHz Z80 could be used, eventually with some overclocking, 20MHz using a CMOS Z80 but with some software incompatibility.

I guess than some experimenting with an emulator could be interesting.
like
0
No reactions
CPC 664

Empiezas a envejecer cuando dejas de aprender.
You start to get old when you stop learning.

Offline ajcasado

  • Supporter
  • CPC664
  • *
  • Posts: 91
  • Country: es
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #17 on: 18:06, 18 June 21 »
In fact the 6502C has in overall less cycles per instruction, so I guess that the efficiency of the method should be greater with the Z80.
like
0
No reactions
CPC 664

Empiezas a envejecer cuando dejas de aprender.
You start to get old when you stop learning.

Online eto

  • Supporter
  • 6128 Plus
  • *
  • Posts: 509
  • Country: de
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #18 on: 18:52, 18 June 21 »
In fact the 6502C has in overall less cycles per instruction, so I guess that the efficiency of the method should be greater with the Z80.


In theory yes, but not in the CPC, because of how CPU and RAM interact. I'm not 100% sure I am right, but as far as I understood so far and also know from the Atari ST which has a similar architecture regarding CPU/Display RAM, the CPU can access RAM only during those times, when the video chip doesn't access RAM. In the CPC, the Z80 can access RAM every 1µs. If the CPU has finished earlier, it will wait until it can access RAM again. So if you speed up the CPU by 2 or even 5 with a 20MHz CPU, the CPU would basically be faster but then just wait longer until it can do anything with the result of the calculation. The only difference would be, if the CPU executes a command that at 4MHz lasts longer than 1µs and then would take e.g. 8 or 12µs in a normal CPC. In that case a faster internal execution would have impact as it might be finished 1µs faster.

For the Atari ST there have been (and are) a few addons that support this, but unless a cache is involved, the speed improvement is very, very low, like 10 or 20%. For the CPC I would expect even less. And you would cause incompatibilities, as some games e.g. rely on exact execution of the commands and any command that is faster than expected can crash the program.
« Last Edit: 19:12, 18 June 21 by eto »
like
0
No reactions

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 12.497
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #19 on: 19:42, 18 June 21 »
Did you used a a faster CPU or just overclocked the stock one?.

With the CPC a 8MHz Z80 could be used, eventually with some overclocking, 20MHz using a CMOS Z80 but with some software incompatibility.

I guess than some experimenting with an emulator could be interesting.

Same CPU, the 6502 has massive overclocking potential.

Bryce.
like
0
No reactions

Offline XeNoMoRPH

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.173
  • Country: es
  • " ... in space no one , can hear you scream ... "
    • https://auamstrad.es/
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #20 on: 21:37, 18 June 21 »
I don't know if someone has already put this post.

https://www.cpcwiki.eu/index.php/6_MHz_CPC
like
0
No reactions
your amstrad news source in spanish language : https://auamstrad.es

Offline zhulien

  • 6128 Plus
  • ******
  • Posts: 917
  • Country: au
  • aka Vorax
    • 8bitology
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #21 on: 07:08, 24 June 21 »
Although not really faster, some people seem to think it is, you can put a jumper in the CPC (at least on my 664) that lets you switch between 50hz and 60hz.  It makes some programs appear to run faster - in reality they are interrupting more frequently with less time between interrupts but the z80 itself doesn't change speed.  I did have one demo that was quirky in the default 50hz that worked perfectly in 60hz, but cannot remember which one.
like
0
No reactions

Offline zhulien

  • 6128 Plus
  • ******
  • Posts: 917
  • Country: au
  • aka Vorax
    • 8bitology
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #22 on: 07:15, 24 June 21 »
There is another option and that is using the @revaldinho 's Tube project which gives your CPC the ability to do some things much faster using an additional CPU - but software musts be coded to support it.


I think this option has a huge potential but sadly not very much adopted in the CPC community yet.


Some potential uses for CPC's Tube - running emulators on the CPC, NES emulator? (ok, technically it's running from the PI but using the CPC joystick or keyboard)... using Linux on the CPC, fast compiling, fast 3d vector matrix translations, HDMI output for CPC, MP3 playback, mass storage (but not as fast as other current options) etc.
like
0
No reactions

Offline Sykobee (Briggsy)

  • 6128 Plus
  • ******
  • Posts: 847
  • Country: gb
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #23 on: 18:35, 24 June 21 »

Note that changes like this really mean you haven't got a CPC anymore, just something that Amstrad should have done with the CPC Plus range but didn't.


I don't know how viable it would be to take one of the FPGA Z80 implementations, and stick it on a Z80 compatible form factor, at 4MHz, looking to the rest of the system like a normal Z80 timing-wise, but internally redesigned with a full 16-bit single-cycle ALU (to speed up processing) and instruction cache (to reduce issues with slow main memory access, sorry games that use self-modifying code). It might end up looking more like an R800.


Most graphics routines use the 16-bit register pairs and instructions, so this would be the single best way to speed up the performance - although limited by the main memory access times for writes.


Obviously by the time you are doing this, you start thinking of implementing other firmware routines in hardware (firmware can be patched to call the new hardware function) to accelerate other common actions. Spectrum Next did this somewhat, with some custom Z80 instructions for common Spectrum routines.


There is a solution on the Amiga that interfaces an ARM SoC (Raspberry Pi) running a 68000 emulator to the native A500 motherboard with a small adapter board. It has compatibility issues still, but when it works it's like 1000x faster, so that's another option.
like
0
No reactions

Offline revaldinho

  • Supporter
  • CPC664
  • *
  • Posts: 119
  • Country: gb
    • Awards
Re: Is there any hardware to make the CPC run faster?
« Reply #24 on: 22:54, 24 June 21 »
Note that changes like this really mean you haven't got a CPC anymore, just something that Amstrad should have done with the CPC Plus range but didn't.

I don't know how viable it would be to take one of the FPGA Z80 implementations, and stick it on a Z80 compatible form factor, at 4MHz, looking to the rest of the system like a normal Z80 timing-wise, but internally redesigned with a full 16-bit single-cycle ALU (to speed up processing) and instruction cache (to reduce issues with slow main memory access, sorry games that use self-modifying code). It might end up looking more like an R800.

Most graphics routines use the 16-bit register pairs and instructions, so this would be the single best way to speed up the performance - although limited by the main memory access times for writes.


I've done something like this for the BBC Micro - a board which plugs into the 6502 socket and replaces the CPU with a WDC65816 (6502 compatible with a 16b mode) and a fast 512KByte RAM with a CPLD to implement all caching and memory remapping logic.


It works well, slowing down for access to host resources but otherwise running at full speed asynchronously to the host computer. The latest incarnation is stable at around 16MHz. Quite how much of that speed up you get is very dependent on how often you write to screen RAM (slow writes) and other peripheral locations. For BASIC programs like the sphere demo you really do get most of it (~7x), but for hugely IO bound tasks like being a host to an Acorn 2nd Processor the speed up might be just 50% or so. And of course it's no use at all for most games which will just run too fast, but things like chess programs or adventure games might appreciate the speed boost.


The main thing is though that it still feels like a BBC Micro. It's highly compatible. It's faster. It has more memory for BASIC (shadow mode) - not such an issue on the CPC. It offers more ROM slots and sideways RAM. Essentially though it does still feel like a Beeb.


I wonder about doing something similar for the CPC, but again this kind of acceleration is probably of no interest to gamers since you'd end up disabling it most of the time. Great for CP/M and BASIC programming of course but I feel the target market is shrinking there ...




like
0
No reactions