Hacker News new | ask | show | jobs
by greggman65 16 days ago
The question is why? LLMs will write this stuff without three.js just fine.

See 4 examples I posted yesterday: https://news.ycombinator.com/item?id=50514583

Without three.js the LLMs are more free to write whatever is appropriate for the specific project, instead of having to work around three.js:s architectural decisions when they don't match the thing being made. They further don't need any of three.s infra.

Whether or not those examples are AAA, they are proof IMO that the LLMs can do it without the libraries AND they can do it better without the shackles. Take the GTA like one above, the LLM split the city in 128 triangle chunks and culls them all on the GPU, taking inspiration from Nanite. Any feature you want they will happily recreate in 1 or 2 prompts. And no, you don't need any special knowledge. You just need to ask the LLM to optimize over a few prompts and it will figure out solutions.

I know people will jump to three.js defense because it's well loved and a great library. At the same time, so many people are acknowledging that so many libraries in general are no longer needed. See shopify getting rid of middleware because the LLM doesn't needed it: https://shopify.engineering/back-to-native

It's the same with 3d libraries and game engines. Epic sees the writing on the wall. They can tell that there's much less need for Unreal today than ever and while Unreal is great and provides a ton of tools etc, every day LLMs get better at reproducing all of it, meaning they can see it has a shelf life. I think the same is true of most of these graphics libraries and game engines from the last 15 years.

3 comments

My answer to this is simple. Libraries are stores of knowledge / optimization in the end. Yes, an LLM could write everything from the OS up to the application, but that is wasteful in terms of tokens. If you want something be done fast that is not trivial, it makes sense to lean on a library that already does the basics well. And just built your unique aspect on top.

Who wants to re-write a glTF importer, a SSR algorithm, a UV unwrapped, a proper BRDF, etc. That can cost a lot of tokens. Might as well just bring that in and built on top of it your differentiator.

That said, inefficiencies in ThreeJS can come back to bite it long-term. It should aim to get simpler and faster.

I've written about this here: https://ben3d.ca/blog/coding-agents-underestimate-the-cost-o...

Even shorter answers:

If you do not use libraries LLMs will spent extraorbitant amount of tokens

> If you do not use libraries LLMs will spent extraorbitant amount of tokens

Which is a bit of a perverse incentive for LLMs to avoid library usage unless you tell them to. :)

I've found LLMs will reinvent the wheel in the form of doing manual things when a library already solves it well, and with all the bugs and edge cases that the library was originally created to solve. So you either had a simple enough case where it didn't matter, use a library, or have to iterate with the LLM until you've basically reproduced the original library in your own code.

Disclaimer: not a 3d-specific comment though, more of my general experience.

It's nice to see someone else saying this. I have been trying to convince my friends for several months that off-the-shelf engines are a booby trap for indies now compared to finding the right libraries and having your buddy Claude assemble them into a bespoke engine.

I think Unreal is safe for a while just by virtue of having such an ungodly large amount of tools crammed into it that AAA studios actually using those tools are still better off starting from UE5 that their new hires already know than scratch, but for indies, the ship has already sailed imo and most people just haven't noticed yet.

For reference, my hobby graveyard has 20 years worth of crummy self-written game engines running the gamut from baby's first SFML C++ asteroids clone to raycasting vulkan monstrosities in pure Rust. I fed Kimi a list of crates I hand-picked and we planned the engine, then Deepseek Flash did all the work in a couple evenings. By the end of week 2, I had a fixed point deterministic physics engine, networking + client prediction + test suite ensuring determinism, an audio pipeline, immediate and retained mode GUIs, an editor build from them, a hybrid ECS, controller support, a custom hot-reloadable scripting language made to my exact specifications for prototyping, and a whole crate worth of integrations I told the AI it could build to help itself.

All the things I wanted, nothing I didn't, performance screams, all the gamedev parts and knobs and features work exactly the way I want them to. Best part is I actually own this engine and will never have to pay anyone else a dime to use it or beg devs not to do X/Y/Z. Total cost? 13% of a $10 OpenCode subscription's usage for the month. Total features I asked for that the AI could not provide: 0. I would literally never go back to using off the shelf stuff now

have fun releasing a game on iOS, android, macos, linux and playstation with your custom engine
There's nothing special about those platforms that an llm can't handle, the dev process is exactly the same - just prompt for it. (And yes, including PS5, point them at the documentation and they'll happily add support)
the ps5 and xbox sdk’s are not public. even engines like godot don’t really support it…
That is exactly my point. My games are indie games, I'm never going to release a game on any of those platforms anyway. I don't need support for any of them, so my engine wastes nothing on them. "Steam-only" games aren't even remotely uncommon.
> My games are indie games, I'm never going to release a game on any of those platforms anyway

Speak for yourself, mate. You don't want to release your game on those platforms because of your own decision. Not because they are indie. Plenty of indie games release on all those platforms.

If I'm making a game on, say, unity, I just point my agent at the game and console SDK and say "port please". In your case, you're gonna have to spend a bunch of tokens just to have the agent read your code and the SDK, then a bunch more porting, a bunch more testing and develop-test loop. Hopefully you have a good AI plan to support that endeavor.

for consoles they won't even get access to the SDK to do it. i wonder if claude can reverse engineer it?
You need to enroll as a developer on that console, and you'll get access.
proprietary console SDKs are enforced by lawyers more than APIs. reverse-engineered SDKs are useful for homebrew (i.e. https://github.com/SvenGDK/SharpProspero for PS5) but that typically requires jailbreaking the console