*rubber duck thread* Using the Sega CD subcpu in mode 1 is very doable but the larger problem is: what kind of tasks can we hand off to it, and are they asynchronous?

We can't run code directly off the cart from the subcpu. We can't simply make the faster cpu run the game. So it makes more sense that we'd have subroutines running on the subcpu to accelerate common operations that can be called from the MD main cpu.
But we run into a problem here. First is defining what "common operations" would really be. Since the subcpu is another 68k with a roughly 50% higher clock, it wouldn't make much sense to run very small or atomic operations on it. There is overhead in passing arguments...
... because it has to be done in shared memory. Overhead could kill the gains. We'd get more benefit from a larger, more complex function to really take advantage of that higher clock speed. This adds another layer to the problem, synchronicity.
If the MD cpu has to block (stop and wait for a result from the subcpu) we're losing a lot of potential throughput. The effect is similar the other way around in that we also waste resources on the subcpu waiting for a command from the MD.
(BTW this is why using the dual SH2s on the Saturn wasn't super popular, as it requires a similar semaphore setup. The game would have to be carefully crafted to utilize it at the planning stages.)
If you can set up a task that runs asynchronously, that is, both CPUs working away, then that's ideal. It's just that for a lot of games, this isn't really feasible or useful. Most game loops on this old hardware are essentially single threaded and each step is done in order...
...every time, for every frame, and if there isn't time to do it all? Slowdowns. This isn't true of every game of the era, but it's true the vast majority of the time. So ultimately, this makes the entire approach not attractive for rom hacks. Much like a Saturn game...
...you'd have to arrange the game loop as such to not waste time and resources. To do certain things asynchronously. Nearly impossible for a rom hack. But what about homebrew and new games going forward? There is a bit of promise here but still some caveats.
The best reason to use the subcpu is to get access to the cd hardware features: the disc drive, the PCM, the additional RAM, the ASIC graphics scaling features. Using it to accelerate CPU bound operations is probably not worthwhile.
What if you designed a game to use resources carefully, though? You're still a bit hampered by the fact that the two CPUs can't run the same code out of the same memory, so no clever threading tricks. Also at this point you may as well be making a a Sega CD game!
To this end I'm experimenting with creating a small library, intended for homebrew, but similar to MSU-MD, that will allow the user to play PCM, CDDA, and (hopefully!) use the scaler. I don't know if this will mature and it depends on how useful it ultimately is.

More from For later read

@snip96581187 @Daoyu15 @lab_leak @walkaboutrick @ydeigin @Ayjchan @franciscodeasis @TheSeeker268 @angie_rasmussen Clearly, because as I have been saying for 8 months now, DTRA and DARPA have been using Ecohealth and UC Davis to collect novel pathogens for gain of function work back in the USA. I have documented this in many threads which I will post here just to annoy everyone.

@Daoyu15 @lab_leak @walkaboutrick @ydeigin @Ayjchan @franciscodeasis @TheSeeker268 @angie_rasmussen


@Daoyu15 @lab_leak @walkaboutrick @ydeigin @Ayjchan @franciscodeasis @TheSeeker268 @angie_rasmussen


@Daoyu15 @lab_leak @walkaboutrick @ydeigin @Ayjchan @franciscodeasis @TheSeeker268 @angie_rasmussen


@Daoyu15 @lab_leak @walkaboutrick @ydeigin @Ayjchan @franciscodeasis @TheSeeker268 @angie_rasmussen
Daily Bookmarks to GAVNet 02/12/2021

Quantum causal loops

https://t.co/emX8OxKPl0

#loops #quantum

Large-scale commodity farming accelerating climate change in the Amazon

https://t.co/v3gA7OTP9E

#ClimateChange #forest #farm

Collapsed glaciers increase Third Pole uncertainties: Downstream lakes may merge within a decade

https://t.co/huAma56KeB

#glacier #lakes #ClimateChange

From trash to treasure: Silicon waste finds new use in Li-ion batteries

https://t.co/TkxKFDQMC6

#batteries #treasure #silicon #trash

You May Also Like

@EricTopol @NBA @StephenKissler @yhgrad B.1.1.7 reveals clearly that SARS-CoV-2 is reverting to its original pre-outbreak condition, i.e. adapted to transgenic hACE2 mice (either Baric's BALB/c ones or others used at WIV labs during chimeric bat coronavirus experiments aimed at developing a pan betacoronavirus vaccine)

@NBA @StephenKissler @yhgrad 1. From Day 1, SARS-COV-2 was very well adapted to humans .....and transgenic hACE2 Mice


@NBA @StephenKissler @yhgrad 2. High Probability of serial passaging in Transgenic Mice expressing hACE2 in genesis of SARS-COV-2


@NBA @StephenKissler @yhgrad B.1.1.7 has an unusually large number of genetic changes, ... found to date in mouse-adapted SARS-CoV2 and is also seen in ferret infections.
https://t.co/9Z4oJmkcKj


@NBA @StephenKissler @yhgrad We adapted a clinical isolate of SARS-CoV-2 by serial passaging in the ... Thus, this mouse-adapted strain and associated challenge model should be ... (B) SARS-CoV-2 genomic RNA loads in mouse lung homogenates at P0 to P6.
https://t.co/I90OOCJg7o