We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
B3DMLoaderBase和I3DMLoaderBase中使用buffer.slice对原有内存的拷贝 以对FeatureTable的构造为例其中一段代码
B3DMLoaderBase
I3DMLoaderBase
buffer.slice
const featureTableStart = 28; const featureTableBuffer = buffer.slice( featureTableStart, featureTableStart + featureTableJSONByteLength + featureTableBinaryByteLength, ); const featureTable = new FeatureTable( featureTableBuffer, 0, featureTableJSONByteLength, featureTableBinaryByteLength, );
该部分会产生额外的内存开销
在3DTiles的大规模数据渲染实践中内存是非常宝贵的系统资源,引用一小段cesium 106版本对于featureTable的处理
let featureTableJson; if (featureTableJsonByteLength === 0) { featureTableJson = { BATCH_LENGTH: defaultValue(batchLength, 0), }; } else { featureTableJson = getJsonFromTypedArray( uint8Array, byteOffset, featureTableJsonByteLength ); byteOffset += featureTableJsonByteLength; } const featureTableBinary = new Uint8Array( arrayBuffer, byteOffset, featureTableBinaryByteLength ); byteOffset += featureTableBinaryByteLength;
其中arraybuffer是直接来自下载数据
The text was updated successfully, but these errors were encountered:
fix(loader): fix unnecessary copy Orillusion#233
7f10e13
fix(loader): fix unnecessary copy #233 (#235)
7ad1581
fix unnecessary copy
No branches or pull requests
Bug描述
B3DMLoaderBase
和I3DMLoaderBase
中使用buffer.slice
对原有内存的拷贝以对FeatureTable的构造为例其中一段代码
该部分会产生额外的内存开销
在3DTiles的大规模数据渲染实践中内存是非常宝贵的系统资源,引用一小段cesium 106版本对于featureTable的处理
其中arraybuffer是直接来自下载数据
The text was updated successfully, but these errors were encountered: