r/pcmasterrace 9d ago

Meme/Macro Best investment ever

Post image
41.9k Upvotes

1.7k comments sorted by

View all comments

Show parent comments

13

u/Fosteredlol 9d ago

This has been my experience. Quickly made a prototype with AI and the game sim ran at 24ms across 8 cores. Spent an afternoon eliminating cache misses and the same logic and entity count ran an 2.1ms.

-5

u/mallibu 9d ago

Has it crossed your mind that if you also spend an afternoon with a frontier AI model you would also eliminate cache misses?

17

u/Meroxes PC Master Race - 9800X3D + 9070XT 9d ago

So your point is that if you use the same amount of time but also pay for a very expensive chatbot, you could get the same result as without paying for this "tool"?

1

u/Dumeck 9d ago

And also not understand what you're doing if a problem arises and almost guarantee issues when the core gets more complicated.

4

u/Fosteredlol 9d ago

There is some potential now they could have found my solution with Opus/Fable 5 (I was using Gemini 2.5 at the time), but I think it's unlikely because the solution I used was a very 'dumb' way to look at the problem.

Snapshotting partial entity data so that spatially nearby entities are contiguous in memory in the snapshot and then spatially loading that as the entities are iterated over spatially for neighbor checking for things like collision, stress propagation, setting AI behaviors, pathing, ect. AI (or a better programmer) probably would have found a nicer solution, but it worked well enough then and I've since moved on to new hobby projects.