Skip to content

Fast World.contactMaterials lookup#287

Open
touho wants to merge 1 commit intoschteppe:masterfrom
touho:master
Open

Fast World.contactMaterials lookup#287
touho wants to merge 1 commit intoschteppe:masterfrom
touho:master

Conversation

@touho
Copy link
Copy Markdown

@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
Copy Markdown

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.

1 participant