Skip to content

Conversation

@JeroMiya
Copy link
Contributor

The oddity you may notice in these bindings is the use of struct fields in place of the fixed sized OSVR_SkeletonJointReport arrays in the native code. Using struct fields eliminates the GC pressure from marshaling that array into a managed array (which has to be allocated and garbage collected).

However, this is a common pattern you see in many performance critical .net-native bindings. For example, XNA matrices are defined not with arrays but with public fields for each cell.

Don't merge until the OSVR-Core skeleton branch is merged:
https://github.com/OSVR/OSVR-Core/tree/skeleton

…f arrays. This ensures that the skeleton interface does not introduce GC pressure when used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants