MCPcopy Create free account
hub / github.com/HailToDodongo/pyrite64 / bytesToWidth

Function bytesToWidth

n64/engine/src/debug/overlay.cpp:51–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 constexpr float bytesToWidth(size_t bytes) {
52 double ratio = (double)bytes * (1.0 / (double)barRefBytes);
53 return (float)ratio * barWidth;
54 }
55
56 bool showCollMesh = false;
57 bool showColliders = false;

Callers 1

drawMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected