Skip to main content

tile_bytes

Function tile_bytes 

Source
pub fn tile_bytes(cfg: &TileConfig, cost: &TileCost) -> u64
Expand description

Heap one tile of this config holds while it runs, for a network of this cost (ModelSpec::tile_cost): its patch, rounded up to the network’s divisor as tile_patch_size does, times the network’s bytes per patch voxel. u64, because p³ · bytes overflows a 32-bit usize for large patches.