stateful being<p><span class="h-card" translate="no"><a href="https://mastodon.gamedev.place/@slembcke" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>slembcke</span></a></span> hahaha dw. here's some more profiling screenshots. the biggest spike at the top, the one that looks thin in beforepic and quite thick in afterpic, well that's the one that didnt change at all, lol. everything around it was trimmed down imagine how much</p><p>the whole render loop was peppered with memory allocations, mainly from String cloning and `format!` invocations. moved all that to a tiny handful of preallocated buffers</p><p><a href="https://mastodon.social/tags/rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rust</span></a> <a href="https://mastodon.social/tags/profiler" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>profiler</span></a> <a href="https://mastodon.social/tags/flamegraph" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>flamegraph</span></a> <a href="https://mastodon.social/tags/beforeafter" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>beforeafter</span></a></p>