Skip to content

Measure mod channel reads and entity event latency - #182

Open
viktor-ferenczi wants to merge 3 commits into
codex/cluster-grid-reference-lifetimefrom
codex/cluster-mod-channel-latency
Open

viktor-ferenczi wants to merge 3 commits into
codex/cluster-grid-reference-lifetimefrom
codex/cluster-mod-channel-latency

Conversation

@viktor-ferenczi

Copy link
Copy Markdown
Contributor

Measure entity reads and an explicit cross-node event relay through the existing v1 Workshop mod channel. The fixture switches a real battery on and off, reads eight real block names, and checks every returned value and event sequence.

One exclusive Linux run on cluster 0.3.32 used a World Authority and two simulation processes on the same host. Each row summarizes 16 samples. The two getter controls amortize 16,384 accesses per sample.

Operation Median Maximum
Native block name on owner 19.24 ns/read 471.15 ns/read
Value from saved local snapshot 0.86 ns/read 0.88 ns/read
One block name, authoritative owner route 16.64 ms 37.33 ms
One block name, previously resolved node 16.64 ms 33.14 ms
Eight block names, one request and reply 16.64 ms 16.71 ms
Setter to native event callback 12.95 µs 650.8 µs
Setter to remote event receiver 1.94 ms 1.99 ms

The two cached-node sequences of eight separate reads took 149.80 ms and 133.32 ms from first request to last reply. The initial owner lookup took 16.81 ms. All 16 native callbacks ran inside the setter, and the remote mod received each alternating value once and in order. One-way intervals include both game-thread scheduling and channel transport. Server load, node phase and inter-host networking can change these figures.

Raw UTC timestamps, package commit, unique grid ownership and observed values are attachment 2505 on SE-1845.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant