Skip to content

Ticks v Milliseconds #70

@bricksphd

Description

@bricksphd

In the assets repo, agents have their arrival encoded as a tick, e.g.
https://github.com/crowdedjs/assets/blob/c0841be5261f3762533a3a8c143a398b7f963619/arrivals/arrivalHospital.js#L4

Agents are spawned in crowd-setup based on their .startMSec attribute,
https://github.com/crowdedjs/crowd-setup/blob/12257fe45d6ad6abd108d7acfdcebd7c8d27184a/index.js#L75

The conversion from ticks to milliseconds take place in the agent constructors, e.g.

this.startMSec = agent.arrivalTick * 25; // We simulate 25 fps

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions