10. Finding performance
Erik de Boer
0:00 / 0:00
10. Finding performance
142 просмотра · 3 недели назад
Erik de Boer
24 подписчика
142 просмотра · 3 недели назад
350 vehicles simulation per level is the max I guess. Every car brakes like u learned in driving school: check what's ahead, slow down in time. Right of way follows the real Dutch traffic rules, with a "fine, I've waited long enough" rule to avoid deadlocks. Cars should never clip, the game knows where routes cross and checks every car's rectangle for overlap. And to keep hundreds of cars at 60 fps, they only look at their neighbours, nap when stopped, and stop thinking when off-screen. it turns my iphone 12 on fire, but iphone 15+ should be fine. I wont bug you with algortihms i've stolen from AI. I'm still curious how cities skylines solves tese traffic problems..
If someone has some suggestions, please lead me the way.