TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Discrete event traffic simulation, laggy heads, and ghosts

23 pointsby dabreegsterover 3 years ago

2 comments

dabreegsterover 3 years ago
Have you ever wondered how a traffic simulator like A&#x2F;B Street works? Simulating thousands of trips through a city faster than real-time can&#x27;t be done in 0.1 second increments. This article explains how to model vehicles and pedestrians using discrete event simulation instead.<p>This is the first deep-dive article into how A&#x2F;B Street works. More coming soon!
kfarrover 3 years ago
Thanks Dustin for the awesome writeup! Event-based also seems easier to animate in a 3D engine (pseudocode is simply &quot;move that entity x units in y seconds&quot;) compared to constantly updating positions based on the simulation which is more akin to relatively complicated multiplayer gaming challenges to keep multiple entities in sync.
评论 #28554562 未加载