This is called compute dispatching and is super common. I have done a whole bunch of DSP implementations where you use a CUDA or AVX kernel depending on availability. Or you dispatch to standard library or even Python kernel otherwise.
I would argue that if your games are already performant on the platforms you care about that you would get diminishing returns. The only reason to experiment with specialist asm would be for your own experience and enrichment which is a perfectly reasonable reason to pursue it.
It’s probably not worth comparing to an OS where even shaving a few cycles off of code that runs all the time on millions of computers across the world would end up with significant impact.
It’s good to know when Reddit moderators see the light and help transition their communities over before Reddit interferes. !piracy is another example of that.
Does your game crawl? Have you identified this code as the bottleneck? Are you certain that asm will give you a meaningful performance increase, and that your issue doesn’t lie with your approach to the problem? Sure, I guess. You said your game runs fine though, so this probably doesn’t apply.
Is your game fast already? If you don’t want to do it, don’t.
Writing asm by hand is almost always a waste of time. There are only a few times where it’s actually necessary, and unless you’re writing a bootloader and running your game on bare metal, I can’t imagine why it’d be necessary. But you know your code better than anyone else here, so you should know whether it’s needed or not more than any of us do.
To begin with, you’re apparently targeting the Z80, which I haven’t seen used for games in the wild… probably in my entire life? Maybe an arcade machine I played on once used it, but I can’t think of any other times. If your targets need custom assembly, then you should already know that. We don’t know your targets.
I was just using a feature of the z80 as an example and thank you for your help and if anyone wants to add that functionality in their game to increase performance they can.
I recently picked up MCC on Deck for the nostalgia. It’s been at least 15 years since I played the original and I don’t think I played any of the sequels.
MCC is weird on Deck - you have to install the games through the Steam DLC menu, not the “install games here like the instructions say” inside of MCC.
I was super pissed I needed a Microsoft account to play, and that the login screen glitched repeatedly, but I eventually got in.
This is what I love to see niche instances that specialise in an area rather than trying to be another generalist / reddit. At this stage you’ll prob need to fight discoverability issues. Cheering for ya.
Posting on r/Silksong helps a lot. We’ve been in contact with many moderators all across Reddit, trying to get them to join us, but that is still developing.
bin.pol.social
Gorące