code/__DEFINES/_macros.dm
calculateticks | Converts your ticks to proper tenths. |
---|---|
tcheck | Shorthand of checking and then sleeping a process based on world CPU. |
text_ref | Takes a datum as input, returns its ref string, or a cached version of it This allows us to cache \ref creation, which ensures it'll only ever happen once per datum, saving string tree time It is slightly less optimal then a []'d datum, but the cost is massively outweighed by the potential savings It will only work for datums mind, for datum reasons : because of the embedded typecheck |
Define Details
calculateticks
Converts your ticks to proper tenths.
tcheck
Shorthand of checking and then sleeping a process based on world CPU.
text_ref
Takes a datum as input, returns its ref string, or a cached version of it This allows us to cache \ref creation, which ensures it'll only ever happen once per datum, saving string tree time It is slightly less optimal then a []'d datum, but the cost is massively outweighed by the potential savings It will only work for datums mind, for datum reasons : because of the embedded typecheck