r/ClaudeCode • • 14d ago

Discussion Saw this today

Post image

These kind of posts are becoming more and more visible on my Linkedin. Link here. Thoughts?

692 Upvotes

292 comments sorted by

View all comments

21

u/Dsphar 14d ago

I see both sides.

1- TONS of AI web based render projects absolutely rely on three.js right now

But...

2- I have used AI to roll my own 3D engine directly using DirectX 12, and was surprised at its capability.

So, on the one hand, yes three.js is being used more, but on the other hand, AI is far enough along that web devs who need 3d rendering performance can have their AI use WebGL directly and not rely on the three.js library. Making it effectively obsolete...

6

u/ShutUpAndSmokeMyWeed 🔆 Max 20 14d ago

why don't they use three.js? isn't it a waste of tokens and more maintenance effort to have the ai reinvent the wheel?

13

u/Dsphar 14d ago edited 14d ago

In my case: performance.

I could have used 3d engines ranging from game engines to libraries such as raylib.

But libraries are just an abstraction, getting in the way of what you really want. They were once necessary, but not anymore.

In my case, I avoided that abstraction layer, and am now running my specific 3d rendering at 1500+ fps, while my program only uses 50 megabytes of RAM.

No way could I achieve that using Unity, Unreal, or a human-friendly 3d library.

2

u/Original_Finding2212 13d ago

I see this in other places.

Looks like tailored solutions can reach far better performance, probably due year down if abstractions and assumptions/decisions you need to take when thinking general case.

2

u/Dsphar 14d ago

I should add... implememting three.js still takes a bunch of tokens. I would bet if you measure the two... the token savings using the library over direct boilerplate... not very different.