Re:Show HN: SimAirport – Our 'pivot' from web dev
by neuronexmachina on Friday October 06, 2017 @12:58AM
(#15414536)
If you don't mind my asking, which parts of the agent logic tend to be the profiling hot spots when you have several thousand of them? Do you end up running into a combinatorial explosion somewhere?
Re:Show HN: SimAirport – Our 'pivot' from web dev
by sitepodmatt on Thursday October 05, 2017 @08:52PM
(#15413705)
Do you use a thread per agent? What does an agent map to closer to the wire?
Right now, players with higher-end computers are reporting that they're able to push ~3k or so "pax" (passenger agents) before framerates start to get choppy.
When we receive save game files with bugs to look into, and we load them up and see 4-5k+ pax, we cringe a bit (and it's even worse w/ all our logging on, etc). ;-)
As far as details go, the algorithm for passenger needs/desires/selection is pretty neat -- it uses "delta need scoring", it's quite a robust approach & also a decently-scalable system.