Skip to content
Discussion options

You must be logged in to vote

The HeightFieldShapeSettings is only used during HeightFieldShape construction. Afterwards it can be destroyed. You can do this offline and use SaveBinaryState / sRestoreFromBinaryState to serialize and restore the optimized heightfield. That way you'd totally avoid extra allocations and extra CPU overhead. Note that these last 2 functions are currently not exported to the JS runtime but they could be.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by AlexAPPi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #268 on October 20, 2025 19:35.