351 points · by Polylactic_acid · 6y ago · 103 comments
There's some other fun facts about the DS (its 3D hardware is scan line based, not frame buffer based! Which means you can't do post processing on it without some hacky tricks... can you tell it was from the team that made the PPU, rather than a modern GPU or even an SGI-derived one?), but that one is my favorite.
Edit: minor correction, the N64 supported AA, which is another reason jagged polygons are less common.
Also, you'll notice in the New Super Mario Bros example that many of the sprites were pre-rendered 3D and the 2D engine was just pulling bitmaps at that point.
So a bunch of options with all sorts of interesting trade-offs and it would be interesting to see breakdowns of specific games and how they used the trade-offs.
So did the DS: http://melonds.kuribo64.net/comments.php?id=32
Oh my. You really can tell this GPU was done by a 2D PPU team.
I still can’t believe what that thing was capable of with a honebrew cartridge. I had dev tools, emulators for old desktop computers, web browsers and all kinds of stuff on a machine with just 4mb of ram (and this was before smartphones so being able to have that in your pocket was still niche.)
I thought smartphones would be like homebrew except projects would be abandoned less often because people could make money with them. I don’t think I’ve ever been so disappointed in my life.
NDS development has always been something I wanted to explore. This article provides a nice excuse to get started.
Just to put things in perspective. DS could run a full 3D platformer like Super Mario 64 DS back in 2005 using only 32-bit ARM7 at 34 MHz. New PS5 specs: 8-core Zen 2 at 3.5GHz, 10 TFLOPs GPU, 16 GB GDDR6
Basically, I think modern mobile hardware is fine, it's just the software from Google & Apple that makes it often unusable & out of user control.
Thankfully there are people working on that & I'm sure they are looking for contributors. :)
The problem is that apps are just too big. Tinder is unusable.
I thought I could root it and install a custom Android, but I realize now that it's not as easy as installing Debian on a desktop.
If you combine capitalism with wirth's law, you end up with expensive hardware that you cannot use. It's the same problem with JavaScript and web page size.
Everything is bloated.
One thing my colleague (who was a bit more hardcore than me) was convinced of is that hand-coding interface code was faster than using Interface Builder. I want to believe; I can imagine that the IB interface was just an XML file that had to be read, parsed and its layout built up, whereas handcoded layouts is very dumb code that would compile easily and execute quickly. But at the same time, I want to believe Interface Builder would be converted to obj-c code and compiled as normal.
Anyway Apple had years of head start in terms of performance and user experience (= perceived speed) to Android, their technology decisions was one of the reasons.
And yet, thinking about it, it wasn't even as fast as I could be; because of how objective-C works, function calls are somewhat dynamic so every function call, the runtime has to look up what to call the function on. Later on (with Swift) they managed to add an optimization that could omit this check if they detected the target could not change.
I'm rambling a bit and speaking from memory here btw, take this comment with a grain of salt. I'm no computer scientist, just a developer.
(And Interface Builder files get compiled to a format that is then read out at runtime and deserializes the right things.)
It always makes me slightly resentful or sad about apps that are collections of web views but somehow 100+ MB.
Does it use eMMC storage, or is it new enough to be NVMe? Any pre-2016-ish smartphone is built with basically the guts of an SD card (or MultiMediaCard rather) for internal storage and is a ticking time-bomb with a limited number of write cycles. They'll get slower and slower and then eventually stop working completely. My NoteⅡ and then later my NoteⅣ both succumbed to this. I never owned one but I remember the Nexus 7 being especially notorious for dying this way. You can replace those chips with the right equipment but I've never tried.
At least in part, I expect this is because of the AppCompat library that Google recommends using. If you pull in the whole thing, as tutorials show, it adds a huge number of images (icons and such) that don't get trimmed during compilation (which they're supposed to, if unused) - these make up something like 95% of the size of an app I'd recently been working on. I'd only noticed it because this was a rework of one I'd made ~10 years ago, before AppCompat existed.
I can't help but wonder if some of the "optimizations" done by Google when you turn over your keys and let them compile the apk is just removing this extra bloat.
[0]: https://developer.android.com/training/constraint-layout
As an alternative you could root the device and disable (or remove) the bloat in the stock distribution, this often goes a long way towards getting a more usable device. This is what I did on those few devices which I've used on the stock distribution - remove as much bloat as possible, remove all social media cruft, etc. This can lead to surprising results like the battery lasting twice as long and with that giving new life to a tired old device.
Yes, I know you could play Rogue under an 8mhz-m68k mac perfectly, but bear in mind GBA cartridges and RAM are really tiny.
But hey. On input, I played Nethack under a PSP, underclocked to 25-50MHZ, the battery lasted a week and more.
Now I am trying to test which older machines could run Nethack 3.6.6. I guess a 2MB m68k Mac would be enough.
No, using telnet/ssh is cheating.
The PDA's have less RAM and they still had browsers and in some cases, even emulators.
Conventional wisdom says it's impossible to run in AGB Compatibility Mode and retain DS functionality, but I still wonder if it could be done.
Also given the ancient cryptography, I wonder if it's possible to crack DS Download Play and introduce a new "Wireless Multiboot" exploit that uses real DS hardware similar to the early exploratory attempts using "NDS WifiMe" before flashcards become commonplace. The hardware only has ~256 kilobytes of RAM (and doesn't even use a standard Wi-Fi stack if I recall correctly), but it would be SUPER COOL from the perspective of getting hardware to do something never thought possible.
One use-case for this hack I imagine is playing Zelda Four Swords Adventure played on a Wii / Wii U (via "Nintendont"), with the game patched to use Wi-Fi for the communication to the Gameboy Advance controllers rather than a Link Cable. The players won't need to have a flash card each, but could boot up the payload using DS Download Play on any DS variant (including DSi and 3DS).
It is! GBARunner2 is a DS homebrew hypervisor that can run (a lot of) GBA games in DS mode [1]. It can e.g. be used to run GBA games on the Nintendo DSi, which lacked the GBA slot and AGB mode, or run GBA games directly from a DS flashcard.
> and patch the GBA Link Cable serial comms to instead use the Nintendo DS's Wi-Fi connection.
It isn't - practically at least. There have been attempts and it works as a proof of concept with special builds of GBARunner2 [2]. Sadly the game logic in almost all GBA games does not appear to accept the huge added latency for wireless connections, compared to the almost nonexisting latency for a serial cable. This is also a problem for GBA emulators like mGBA, which only support game linking on the same computer and not e.g. on the network [3]. Games made only for the Link Cable (and not the niche Wireless Adapter) just can't deal with network latency.
[1]: https://wiki.gbatemp.net/wiki/GBARunner2 and https://github.com/Gericom/GBARunner2
Sounds like the easiest way to solve the problem you describe and play multiplayer Zelda Four Swords Adventure over the internet (without modifying the code itself) is for the "server" (Gamecube game) and the client (the Gameboy Advance console) to be physically closeby and then stream the (emulated) GBA and (emulated) Gamecube video output framebuffer across the internet using something like the SteamLink so that the 100ms of latency would not cause the Link Cable to timeout.
[1]: https://wiki.dolphin-emu.org/index.php/The_Legend_of_Zelda:_...
Nintendo's core philosophy for hardware has always been to use old hardware and develop one really unique feature with it, especially for its handhelds. N64 is an exception to this. The also tend to hold on to something from the previous generation, leading to some pretty strange architectures. They are fun to read about though, and there's something about this formula that seems to hold up over time better than the other consoles.
The switch, using an Nvidia SOC is a real departure from this, since it's using very standard hardware and its main new feature is a kind of convergance of the Wii U's components. It's a bit sad in a way, but at least Switch gets a lot more ports than previous generations.
https://www.blueoceanstrategy.com/teaching-materials/nintend...
I find it refreshing that Nintendo has such strong opinions about these types of things, even when it’s to their detriment.
This philosophy is a part of why their products always feel like “toys” and inspire all the feelings that come along with that.
They learned that being on the cutting edge does not help them sell more hardware or games, as the N64 and especially GameCube sold below expectations. They have not been on the cutting edge since then - nor were they really before. The Switch is pretty great because although it was not really on the cutting edge it had relatively up to date hardware at launch "for Nintendo" - especially compared to its 3DS and Wii U predecessors.
- Genesis was out but we were still mostly playing NES games.
- Playstation was out but we were still mostly playing SNES games.
- PSP was out but everyone stuck to GBA.
- I was on hiatus from video games when Wii happened, but I was aware that most my friends had one, even if you wouldn't know it, because ps and xbox were more popular with (the minority of) people who want to talk about video games all the time.
My guess is that Nintendo has a few key parts of their strategy: More casual gamers don't actually care about having the best graphics (corollary: more casual gamers won't spend an extra $100 on better graphics), you need something that feels new & novel to attract the attention of more casual gamers and motivate them to buy, and technical constraints foster the kind of creativity that does that. Perhaps even more so than clever hardware gimmicks.
They then bolted that to some pretty good video hardware but again it wasn't the kind of bitmap addressable blitter supported hardware that was out there on more advanced systems. It was still sprite/tile based stuff, with specific hardware support for common character-movement/scrolling/sprite/tile management, basically a more advanced version of what early 80s gaming systems had done.
Wiimmfi is similar to Xbox Live Project Insignia [2], and to a much lesser extent XLink Kai tunneling for local System Link over the internet. What a wonderful age we live in!
[1]: https://github.com/KaeruTeam/nds-constraint
[1] https://github.com/barronwaffles/dwc_network_server_emulator...
My first encounter with the DS’s multi-touch capability was in a homebrew drawing program, Colors! (https://www.gamebrew.org/wiki/Colors%21): I noticed that if I touched the screen with my finger at the same time as the stylus, the brush drew at the midpoint between my finger and the stylus. My second and last encounter with multi-touch was in the published game Hotel Dusk: Room 215. It had a puzzle where two switches were displayed on the touch screen, and the solution was to put two fingers on the touch screen and pull the switches at the same time. I tried dragging with just the stylus at the midpoint between the switches, and that didn’t activate it: I truly had to put both fingers on the screen for it to work.
My question: why wasn’t this capability of the Nintendo DS more widely used or advertised? Was there some technical limitation on the multi-touch feature that made it only work under certain conditions? Did it require some private API (that was somehow figured out by a third-party game developer and approved by Nintendo nonetheless)? Or was the only reason that most players didn’t have two styli, and developers didn’t want to encourage players to put their dirty fingers on the touch screen (which was, admittedly, prone to scratching)?
Checkout the MiSTer [1] [2] an FPGA-based system where the community are trying to create faithful reproductions to the original hardware in Hardware Description Languages (HDLs) like Verilog. This FPGA based approach is NOT emulation in software, but reproduction of the electrical logic of actual silicon like the CPU and DSP chips.
I'll mention flashcards exist, and so do reproduction cartridges (could be called "bootlegs" but the original cartridges are no longer manufactured so if advertised clearly nobody has much issue with reproductions).
That's not even getting into the world of Android-based emulation (and the myriad of phone holders + custom controller type products).
In some ways the future of video game preservation is bright (but in other ways we're still settling for good enough instead of perfect reproduction)
There are so many new NES games now it's impossible to stay on top of it all.
https://arstechnica.com/gaming/2019/05/28-years-later-hacker...
I do hope there's conservationists out there that have a way to "freeze" hardware like this in time, shield it from any kind of wear, corrosion, and idk, brittling of materials through time.
Many games are very enjoyable with modern touch controls -- Inamuza Eleven for instance.
Also another tangent, the game showcased in multiple photos there, Hotel Dusk Room 215, was one of my favorite DS games. I would've thought no one has heard about it, but here it is in an article about DS architecture. :)
But quite honestly, I think that "leader-follower", politics aside, is plainly a better term to describe these kinds of configurations.