Currently when drawing textures, we copy and create a new texture every frame as we are not keeping track of pre-existing textures. While easy to get things initially rendering, this is extremely inefficient, wasteful and prevents even small game examples from really being developed.
To see the impact of this you can run the 53_top_down example game. It only consists of a small map, but the FPS absolutely tanks. Running on my M3 Pro I only get ~40 FPS.
Currently when drawing textures, we copy and create a new texture every frame as we are not keeping track of pre-existing textures. While easy to get things initially rendering, this is extremely inefficient, wasteful and prevents even small game examples from really being developed.
To see the impact of this you can run the
53_top_downexample game. It only consists of a small map, but the FPS absolutely tanks. Running on my M3 Pro I only get ~40 FPS.