Skip to content

Optimize texture loading #4

@kaidesu

Description

@kaidesu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions