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
removing the zipping that's done in xeokit-convert - see here
make xeokit-convert mark each new XKT it creates as version 11
Create a new ParserV11.js parsing strategy for XKTLoaderPlugin, identical to ParserV10.js, but with unzipping removed.
be sure to register the new parser strategy with the plugin - see here
This will create larger XKT files, but they will load faster into the Viewer, since it won't have to unzip their data. It will also consume less memory in the browser while loading.
Caveat
Let's start by removing Zipping for everything except for the ID strings.
It may make sense to keep zipping in place for the ID strings in the XKT format though.
Or, we may want to pack the strings into an arraybuffer, unzipped, or something like that.
Also we may want to just to use numbers for the IDs of the meshes and geometries, and only use strings for the model object IDs. The IDs meshes and geometries are only local to the model, so it's kind of wasteful to make those strings.
The text was updated successfully, but these errors were encountered:
Create a new XKT format, v11.
In this format, remove zip compression.
xeokit-convert
- see herexeokit-convert
mark each new XKT it creates as version 11ParserV11.js
parsing strategy forXKTLoaderPlugin
, identical toParserV10.js
, but with unzipping removed.This will create larger XKT files, but they will load faster into the Viewer, since it won't have to unzip their data. It will also consume less memory in the browser while loading.
Caveat
Let's start by removing Zipping for everything except for the ID strings.
It may make sense to keep zipping in place for the ID strings in the XKT format though.
Or, we may want to pack the strings into an arraybuffer, unzipped, or something like that.
Also we may want to just to use numbers for the IDs of the meshes and geometries, and only use strings for the model object IDs. The IDs meshes and geometries are only local to the model, so it's kind of wasteful to make those strings.
The text was updated successfully, but these errors were encountered: