Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fast World.contactMaterials lookup #287

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

touho
Copy link

@touho touho commented Mar 11, 2017

Store ContactMaterials in faster hash map instead of array to lookup ContactMaterials quickly from material id's.

Is it a problem that existing array property has changed type? Or should there be a map from hash to contactMaterials index?

…ContactMaterials quickly from material id's.
@ghost
Copy link

ghost commented Mar 16, 2017

we should do this with shapes counter and tupledictionary as well, there is hash based on some bit operations, but it is limited to UINT16 range, what if you have more shapes? (destructible terrain/polygon clipping runtime)

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.

None yet

1 participant