Don't Call NewImage Inside Update/Draw | Ebitengine

You should not call NewImage inside Update or Draw. Introduction Don't Call NewImage Frequently The Problem Fix #1: Cache the Images (A Quick Hack) Fix #2: Wait, There's DrawFilledRect Conclusion References Introduction Recently I've been writing a game with Ebitengine. After letting the game run f…