3 ms·
OK, so someone is writing a city simulator/game, with millions of actors. Fine. They're not very far along yet; there don't seem to be any demo images. Yet th
by Animats 10y ago
OK, so someone is writing a city simulator/game, with millions of actors. Fine. They're not very far along yet; there don't seem to be any demo images. Yet they're obsessing on CPU cache management. This seems to be premature optimization.
Their big problem is making a procedural city generator that produces a convincing city at street level. There are lots of floorplan generators and things which produce vaguely reasonable buildings, but nothing good enough to make a video game grade driveable or walkable city down at street level. Unless they crack that problem, their game is going to suck.
- yetihehe 10y agoIf you need to do something which was never done because of efficiency problems, you need to think about how to do it before you start. It's called planning, not premature optimization. Just optimizing existing approaches won't do anything good here as author said in beginning.
- Dzugaru 10y ago> which was never done Highly doubt that. Oh, and when I see a phrase "millions of things interacting" and don't see a word "GPU" anywhere I feel strange. Just saying.
- majewsky 10y agoAssuming that he is talking about a city sim as a game, I can understand that he doesn't want to use the GPU for the simulation, since it will be occupied with the (even more expensive) rendering of the city.
- anselm_eickhoff 10y agoThat and that I really want to avoid having to debug GPGPU code for the main simulation. But I'm not saying it won't become GPGPU at some point!
- ggambetta 10y agoIt is a bit premature in a way; paraphrasing here, but "a million is not cool. You know what's cool? A billion" No matter how much you optimise CPU caches and memory allocators, at some point your application won't fit in a single machine, and you'll have to go distributed. Datacenters, not mainframes :)
- anselm_eickhoff 10y agoBut if you're already using message passing, this transition will be much more natural!
- lojack 10y agoThe youtube channel (https://www.youtube.com/user/theanzelm https://www.youtube.com/user/theanzelm) seems to have plenty of images.
- Animats 10y agoNot seeing anything there that looks like a street from street level. Mostly talking-head video.
- anoother 10y agoOn that note, you might find Introversion's (cancelled) 'Subversion' project interesting. Dev blog: http://www.introversion.co.uk/subversion/ http://www.introversion.co.uk/subversion/ Post 12 is especially relevant to the 'convincing city' discussion: http://forums.introversion.co.uk/viewtopic.php?t=41634 http://forums.introversion.co.uk/viewtopic.php?t=41634 Edit to add: Amazing to think that this was happening 8 years ago. I wonder what it would turn out like if they took another crack at it today.
- deleted 10y ago[deleted]
- anselm_eickhoff 10y ago(author here) others already addressed the point of premature optimization. It's about getting it kinda right from the start. Procedural building generation is indeed one of the other huge topics of the project and believable, unique street-level looks a main goal.