Open boxdot opened 1 year ago
There is a simple optimization which can be done during drawing. In draw.rs, we often allocate new buffer (usually Vecs). Instead we could provide the buffers from the outside and by using v.clear(); v.extend(...) reuse the allocated memory.
draw.rs
v.clear(); v.extend(...)
There is a simple optimization which can be done during drawing. In
draw.rs
, we often allocate new buffer (usually Vecs). Instead we could provide the buffers from the outside and by usingv.clear(); v.extend(...)
reuse the allocated memory.