Repository navigation
cvcGL wasm demos: raise MAXIMUM_MEMORY to 4GB - #250
Merged
Merged
Conversation
Austin buildings' color/normal arrays hit a 140 MB vtkFloatArray during mesh assembly; the default MAXIMUM_MEMORY sometimes lands short of that once VTK's other buffers are in the heap and throws mid-scene. wasm32 addresses up to 4 GB — extend the growth ceiling so the full scene fits.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Austin buildings' color/normal arrays produce a ~140 MB vtkFloatArray; the default wasm heap ceiling can land short of it under VTK's other allocations. Bump -sMAXIMUM_MEMORY=4GB so wasm32 can grow into the full 4 GB address space.