You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, importing a glTF file with a large image (eg using gltf::import) fails with the error Image(Limits(LimitError { kind: InsufficientMemory })).
This is because, AFAICT, there is a hard limit of 512MB that an allocator may use for images.
More specifically, the call stack looks something like this:
The solution seems to be to instead use a decoder with limits.
I am not sure what an ideal interface to expose this here would be. I think I would like something like image::Data::from_source_with_limits, maybe?
The text was updated successfully, but these errors were encountered:
Currently, importing a glTF file with a large image (eg using
gltf::import
) fails with the errorImage(Limits(LimitError { kind: InsufficientMemory }))
.This is because, AFAICT, there is a hard limit of 512MB that an allocator may use for images.
More specifically, the call stack looks something like this:
with
The solution seems to be to instead use a decoder with limits.
I am not sure what an ideal interface to expose this here would be. I think I would like something like
image::Data::from_source_with_limits
, maybe?The text was updated successfully, but these errors were encountered: