TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Discrete event traffic simulation, laggy heads, and ghosts

23 点作者 dabreegster超过 3 年前

2 条评论

dabreegster超过 3 年前
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!
kfarr超过 3 年前
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 未加载