Skip to content

Conversation

@vuonojenmustaturska
Copy link
Contributor

This implements timers that are ticked from byond via /world/Tick(), there being roughly 5 ticks a decisecond. Dividing the input by tick_lag might provide better "deciseconds as expected by byond" api.

Might make sense to throw this stuff in the same file with real-time timers because they share a lot of code, and just make real-time vs. byond-time an argument for the timer functions (or macros).

@ZeWaka
Copy link
Member

ZeWaka commented Oct 11, 2025

Hmm yeah it probably makes sense to have maybe a core timer file and then a real time and a byond one with the args and extra bits.

@vuonojenmustaturska vuonojenmustaturska marked this pull request as ready for review October 11, 2025 19:46
@vuonojenmustaturska
Copy link
Contributor Author

the rand dependency is basically what v4 uuids use if you use fast-rng feature, the custom uuid generation is a mix of what the uuid crate does with v4 and v8 generations, with the first byte forced for our convenience

@vuonojenmustaturska
Copy link
Contributor Author

We're not actually limited to UUID ids, the helpers just come out of the box, so maybe our own ID type might be worth considering

@ZeWaka ZeWaka merged commit 841acce into goonstation:main Oct 15, 2025
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.

2 participants