Thanks! I think the most challenging part of development is all the pathing and graph code. Many months of work were needed to figure out and implement the best solutions.
I am working full time. Haven't had to pivot away that I can think of!
Looks good, although IMO, something that looks this nice should be used sparingly. All the smoke movement is distracting as well when you're constantly moving around things moving towards you. My 2 cents!
Not saying you're wrong. I dont have any personal experience with Rust to genuinely agree/disagree. But this article made the rounds last year. I'll drop it here for you or anyone else who's curious:
There are mixed buildings (none included with the game at the moment, but you can build them inside the game). You can mix it up as much as you want. No underground floors though
Thanks for trying it out! After launch I plan on adding some happiness mechanisms that will be based on what the unit home offers (as well as what businesses are nearby, among other things)
This is a good idea but I dont think it will help much since all parts of the building/property will be used by units (there's some random destinations depending on their activity).
Multi threading is something I only use once I exhaust all other options, for many reasons
99% of my game is single threaded. The only part that isn't is the graph generation code for the road network.
IMO, multithreading should be the last thing you do. Beyond the normal reasons (state management, it's hard to do right, etc), the efficiency gains from multi threading are tiny compared to algorithm/data structure improvements. Also, it can make changing existing code complicated.
When a player adds/removes a road/path, how are you determining which agents are affected and who's paths should be recalculated
Every unit on the road will have to regenerate its path.
For buildings, I dont allow editing unless it's off market (thus units cannot access it).
Im working on a game called Metropolis 1998 - Steam.
Efficient pathfinding has been one of the most difficult challenges of creating this game. It's also one of the core mechanisms since units are going places all the time.
There was a bottleneck with the A* setup I was using for indoor pathing that limited the number of units processed without causing FPS stuttering.
This became an issue when I began batch-processing units to update their activity each in game minute. Hard to say the max number of units it could handle since it depends on building size and the units schedule (e.g. at work they move around less)
For this building (which is quite large), it came out to ~75 units per frame (@ 60FPS). <"worst case">
Typically 2%-6% of the population (when awake) will change their activity per in game minute. Thus every ~2,000 population ate up a frame. In a real city, this number is probably closer to ~10,000 (i.e. 500 processed units per frame).
So I spent a few days tinkering with the containers the indoor pathing code relied on and boosted the numbers to 400-600 per frame (normal case: 2K to 3K), then distributed the load throughout multiple frames if needed.
Rendering 100K units requires a lot of CPU cycles, so the second half of the video shows the setup running at (a bit unstable) > 60 FPS!
Im using a modified version of SFML for the graphics framework, and SQLite for data.
I dont have any industry experience to be sure about this, but I believe C++ is the most used language. https://www.learncpp.com is an amazing resource for the language. I'd start there before you figure out what kind of engine you want
Correct :)
Thanks! I think the most challenging part of development is all the pathing and graph code. Many months of work were needed to figure out and implement the best solutions.
I am working full time. Haven't had to pivot away that I can think of!
I dont have a blog or anything like that, sorry!
Hey everyone, I've been working on Metropolis 1998 for 4.5 years now, planning to launch end of year or early 2027.
I've been a solodev from the start, with a few very part tine contractors who do the art and buildings.
Making a game of this scale is a marathon. I started with an empty .cpp file + SFML and created the game and engine from there!
Looks good, although IMO, something that looks this nice should be used sparingly. All the smoke movement is distracting as well when you're constantly moving around things moving towards you. My 2 cents!
Not in the near future. Porting is something I'll look into during early access
No APIs. Built my own engine.
Not saying you're wrong. I dont have any personal experience with Rust to genuinely agree/disagree. But this article made the rounds last year. I'll drop it here for you or anyone else who's curious:
Leaving Rust gamedev after 3 years
Currently there is a global tick. At some point Im going to explore segmenting this though
C++
Side note, from what I've read, Rust is a really bad choice for game development
There are mixed buildings (none included with the game at the moment, but you can build them inside the game). You can mix it up as much as you want. No underground floors though
Correct!
Thanks! I've never tried SIMD before. It's something I want to look into, but it may have to wait until after launch. Looks fun though :P
That part is taken care of :). I generate a complete graph for the road network
Unfortunately no, I dont have time (for now)
Thanks for trying it out! After launch I plan on adding some happiness mechanisms that will be based on what the unit home offers (as well as what businesses are nearby, among other things)
Im using my own engine. I didn't change the a* algorithm, but rather how the data is stored (std::vector instead of hash tables)
Wow, sorry to keep you waiting so long haha
Yes, all the art the is hand pixeled. After launch I plan on adding 3D modeling into the mix since some sprites require tons of angles.
This is a good idea but I dont think it will help much since all parts of the building/property will be used by units (there's some random destinations depending on their activity).
Multi threading is something I only use once I exhaust all other options, for many reasons
Thanks :). Im using my own engine
No, unless you mean std:: haha
99% of my game is single threaded. The only part that isn't is the graph generation code for the road network.
IMO, multithreading should be the last thing you do. Beyond the normal reasons (state management, it's hard to do right, etc), the efficiency gains from multi threading are tiny compared to algorithm/data structure improvements. Also, it can make changing existing code complicated.
Every unit on the road will have to regenerate its path.
For buildings, I dont allow editing unless it's off market (thus units cannot access it).
Im working on a game called Metropolis 1998 - Steam.
Efficient pathfinding has been one of the most difficult challenges of creating this game. It's also one of the core mechanisms since units are going places all the time.
There was a bottleneck with the A* setup I was using for indoor pathing that limited the number of units processed without causing FPS stuttering.
This became an issue when I began batch-processing units to update their activity each in game minute. Hard to say the max number of units it could handle since it depends on building size and the units schedule (e.g. at work they move around less)
For this building (which is quite large), it came out to ~75 units per frame (@ 60FPS). <"worst case">
Typically 2%-6% of the population (when awake) will change their activity per in game minute. Thus every ~2,000 population ate up a frame. In a real city, this number is probably closer to ~10,000 (i.e. 500 processed units per frame).
So I spent a few days tinkering with the containers the indoor pathing code relied on and boosted the numbers to 400-600 per frame (normal case: 2K to 3K), then distributed the load throughout multiple frames if needed.
Rendering 100K units requires a lot of CPU cycles, so the second half of the video shows the setup running at (a bit unstable) > 60 FPS!
Haha, thanks. All the art is hand made, so there's no normals
:) Thank you!
Im using a modified version of SFML for the graphics framework, and SQLite for data.
I dont have any industry experience to be sure about this, but I believe C++ is the most used language. https://www.learncpp.com is an amazing resource for the language. I'd start there before you figure out what kind of engine you want