Skip to content
This repository was archived by the owner on Jun 28, 2026. It is now read-only.
This repository was archived by the owner on Jun 28, 2026. It is now read-only.

Investigate skipping Box2Rotated.CalcBoundingBox calculations #38

Description

@metalgearsloth
Image

So I have this benchmark where Rotation == Angle.Zero is at the top.

It's kind of a judgment call as to whether there's significantly more rotated Box2Rotateds than normal ones. The ideal case being 300% faster but the worst case being 15% slower, but it really depends how often each one occurs in relation to one another.

Stuff like EntityLookup is probably 0 rotation most of the time, same with sprite drawing, but then overlay calculations or other stuff done in world terms is likely rotated?

I'll try to get some debug count at some point to know how many are being done but without some level of surety better to leave it I think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions