Skip to content

Per-instance AABB cache + Collision_computeBBox optimisations#151

Open
cobaltgit wants to merge 9 commits into
ButterscotchRunner:mainfrom
cobaltgit:aabb-cache
Open

Per-instance AABB cache + Collision_computeBBox optimisations#151
cobaltgit wants to merge 9 commits into
ButterscotchRunner:mainfrom
cobaltgit:aabb-cache

Conversation

@cobaltgit

@cobaltgit cobaltgit commented May 22, 2026

Copy link
Copy Markdown
Contributor

Caches bounding boxes per instance, heavily reduces the amount of repetitive computing required for games with a high number of instances or rotated bounding boxes

Optimisation suggested by Claude Sonnet 4.6

cobaltgit added 2 commits May 22, 2026 13:44
skips a lot of repetitive computation for bounding boxes
Comment thread src/collision.h Outdated
@cobaltgit cobaltgit changed the title Per-instance AABB cache Per-instance AABB cache + Collision_computeBBox optimisations May 24, 2026
@cobaltgit

Copy link
Copy Markdown
Contributor Author

Are we meant to keep int64_t for single-precision float platforms (i.e. PS2) here?

@cobaltgit

Copy link
Copy Markdown
Contributor Author

In the banker's round function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants