Comment on What are some of the best optimizations you applied to your code?

TheKracken@lemmy.world ⁨1⁩ ⁨year⁩ ago

Was working on a game where we drew a fake audio graph to a black texture. The code originally cleared this texture every frame by drawing each pixel black before drawing the audio wave again. I cached the pixels we drew the audio wave to and only changed those back to black saving a huge amount of time.

source
Sort:hotnewtop