Hacker Newsnew | past | comments | ask | show | jobs | submit | phoboslab's commentslogin

Like the DMEM, you can replace the IMEM at any time. In this case, when you're done with processing a block of music, you can DMA the code for 3d transforms or anything else to the RSP.

Libdragon handles this transparently for you with a queue[1].

[1] https://libdragon.dev/ref/rspq_8h.html


Good point! Replaced the video.


Agreed! I used it to build the maps for my 13kb Quake demake[1]. Compared to q3radiant that I used back in the day, Trenchbroom is just so much more pleasant to work with. In hindsight it seems totally obvious that _this_ is the way a map editor should work.

[1] https://phoboslab.org/log/2021/09/q1k3-making-of


Interesting, and cool project by the way!


That[1] was James Lambert, who was also responsible for Portal 64[2] and is now developing a completely new N64 game. His Youtube channel is worth a follow.

[1] https://www.youtube.com/watch?v=ha3fDU-1wHk

[2] https://www.youtube.com/watch?v=sAkSHzR-P7M


Related to this, every ROM needs a "boot loader" that has to be signed and is verified by the lockout chip.

Nintendo's boot code is under copyright and thus cannot be used. So the boot code distributed with Libdragon is signed by finding a hash collision with a brute force tool running on the GPU[1]. Fun stuff!

[1] https://github.com/DragonMinded/libdragon/tree/trunk/boot#bu...


The “development” version of that is even crazier: it's a very tiny signed bootloader that does nothing but copies the “real” bootloader into memory, then trampolines into it, such that even developing your own IPL3 doesn't require having to re-brute-force the signature for every build.

And on top of that, libdragon's IPL3 doesn't just blindly copy the first megabyte of ROM code into RDRAM like the official Nintendo one does, but actually expects the ROM data after it to be a full-blown ELF executable, which it parses out and copies pieces of to the specified places.

Pretty slick stuff.


They might be able to get around it with an affirmative defense in court, but they obviously don't want to, lest they lose.

But it's legal to use the Sony and Nintendo trademarks in a similar way. The court ruled that since they are checked by the console, there was no way not to use them, and Nintendo lost their protection by doing so.


All geometry is rendered as textured polygons. The raycasting step only determines visibility.

But yes, the N64 isn't particularly well suited for this type of game (or anything 2D, really). I didn't know that when I started the project.


Yes. The game was mostly developed with an original N64.

The cartridges from Modretro only work on NTSC N64s, though. I'm told the next production run should work on PAL, too.


I just looked at the invoice for my current PC parts that I bought in April 2016: I paid 177 EUR (~203 USD) for 32GB (DDR4-2800).

It's kinda sad when you grow up in a period of rapid hardware development and now see 10 years going by with RAM $/GB prices staying roughly the same.


Well, I've experienced both to some degree in the past. The previous long time with very similar hardware performance was when PCs were exorbitantly expensive and commodore 64 was the main "home computer" (at least in my country) over the latter 80s and early 90s.

That period of time had some benefits. Programmers learned to squeeze absolutely everything out of that hardware.

Perhaps writing software for today's hardware is again becoming the norm rather than being horribly inefficient and simply waiting for CPU/GPU power to double in 18 months.

I was lucky. I built my am5 7950x Ryzen pc with 2x48gb ddr5 2 years ago. I just bought 4x48gb kit a month ago with an idea to build another home server with the old 2*48gb kit.

Today my old g.skill 2x48gb kit costs Double what I paid for the 4x48gb.

Furthermore I bought two used rtx3090 (for AI) back then. A week ago I bought a third one for the same price... ,(for vram in my server).


Olds remember the years around '95 when RAM stayed the exact same price per megabyte for what seemed a decade.


I paid about GBP 20K for the 192MB RAM in a Sun SPARC 5 workstation in 1995. That’s maybe $27K USD in 1995 dollars. Gulp.


There is or was a website that would let you plug in an Apple computer, and then tell you what you'd be worth if instead you'd bought Apple stock.

I put my G4 PowerBook into it once, and then vowed never to look at it again.


> It's kinda sad when you grow up in a period of rapid hardware development and now see 10 years going by with RAM $/GB prices staying roughly the same.

But you’re cherry picking prices from a notable period of high prices (right now).

If you had run this comparison a few months ago or if you looked at averages, the same RAM would be much cheaper now.

We’re just consuming a lot of DRAM in general.


Aside, $203 USD back then would be about $276 USD after inflation. Not a primary effect, but contributory.


I think that goes to show that official inflation benchmarks are not very practical / useful in terms of buckets of things that people actually buy or desire. If the bucket that measured inflation included computer parts (GPUs?), food and housing - i.e. all that the thing that a geek really needs inflation would be wayy higher...


> If the bucket that measured inflation included computer parts (GPUs?), food and housing - i.e. all that the thing that a geek really needs inflation would be wayy higher...

A house is $500,000

A GPU is $500

You could put GPUs into the inflation bucket and it wouldn’t change anything. Inflation trackers count cost of living and things you pay monthly, not one time luxury expenses every 4 years that geeks buy for entertainment.


Also we’re likely comparing RAMs at different speeds and memory bandwidth.


Also need to account for the dollar decline vs other currencies (which yes is possibly somewhat factored into dollar inflation so you'd have to do the inflation calculation in Euros then convert to dollars accounting for the decline in value).


I bought a bunch of hard drives in 2021 (16TB Seagate Exos) that are now $50-$100 more expensive. It's depressing.


If the sticker price stayed the same since 2016, it got about 35% cheaper due to inflation.



How are you doing this? Do you have a blog going over the work or a Github page? Just curious, it's an interesting project.


The WebGL game was build with my 2D game engine "Impact", which I previously ported to C[1]. The game has a 3d view, but logic still mostly works in 2 dimensions on a flat ground. The N64 version "just" needed a different rendering and sound backend.

[1] https://phoboslab.org/log/2024/08/high_impact


So you're writing the game in C and targeting the N64? Utilizing your custom Impact game engine, which is also written in C?

Do you flash the game to a custom cartridge for testing?


Updated the readme. Thanks!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: