hhyyrylainen / Leviathan

Leviathan Game Engine
Other
17 stars 8 forks source link

Enforce a strict material id order for performance #51

Open hhyyrylainen opened 4 years ago

hhyyrylainen commented 4 years ago

It should be possible to always require that a lower material ID forms pairs with higher IDs. This makes it possible to only check one way around for the material pair in physics callbacks, hopefully giving some performance increases.