@rings-webgpu/core 1.0.48 → 1.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rings.es.js +164 -164
- package/dist/rings.es.js.map +3 -3
- package/dist/rings.es.max.js +7 -6
- package/dist/rings.umd.js +162 -162
- package/dist/rings.umd.js.map +3 -3
- package/dist/rings.umd.max.js +7 -6
- package/dist/types/loader/parser/ply/PlyStreamParser.d.ts +2 -1
- package/package.json +1 -1
package/dist/rings.es.max.js
CHANGED
|
@@ -42326,7 +42326,7 @@ class PostProcessingComponent extends ComponentBase {
|
|
|
42326
42326
|
}
|
|
42327
42327
|
}
|
|
42328
42328
|
|
|
42329
|
-
const version = "1.0.
|
|
42329
|
+
const version = "1.0.50";
|
|
42330
42330
|
|
|
42331
42331
|
class Engine3D {
|
|
42332
42332
|
/**
|
|
@@ -62162,8 +62162,10 @@ class PlyStreamParser {
|
|
|
62162
62162
|
_cancelled = false;
|
|
62163
62163
|
// Async processing state
|
|
62164
62164
|
_parseTimeoutId = null;
|
|
62165
|
-
|
|
62165
|
+
static sVerticesPerChunk = 1e7;
|
|
62166
62166
|
// Number of vertices to process per chunk
|
|
62167
|
+
static sMaxProcessingTime = 5;
|
|
62168
|
+
// Maximum processing time per chunk (ms) to avoid blocking
|
|
62167
62169
|
_useIdleCallback = typeof requestIdleCallback !== "undefined";
|
|
62168
62170
|
constructor(onHeaderParsed, onSplatParsed, batchSize = 1e3) {
|
|
62169
62171
|
this._onHeaderParsed = onHeaderParsed;
|
|
@@ -62385,7 +62387,6 @@ class PlyStreamParser {
|
|
|
62385
62387
|
const has = (n) => this._properties.find((p) => p.name === n) != null;
|
|
62386
62388
|
const propIndex = (n) => this._properties.findIndex((p) => p.name === n);
|
|
62387
62389
|
const startTime = performance.now();
|
|
62388
|
-
const maxProcessingTime = 5;
|
|
62389
62390
|
let processedInThisChunk = 0;
|
|
62390
62391
|
while (this._processedVertices < vertexCount && !this._cancelled) {
|
|
62391
62392
|
const v = this._processedVertices;
|
|
@@ -62463,9 +62464,9 @@ class PlyStreamParser {
|
|
|
62463
62464
|
this._scheduleNextChunk();
|
|
62464
62465
|
return;
|
|
62465
62466
|
}
|
|
62466
|
-
if (processedInThisChunk >=
|
|
62467
|
+
if (processedInThisChunk >= PlyStreamParser.sVerticesPerChunk) {
|
|
62467
62468
|
const elapsed = performance.now() - startTime;
|
|
62468
|
-
if (elapsed >
|
|
62469
|
+
if (elapsed > PlyStreamParser.sMaxProcessingTime) {
|
|
62469
62470
|
this._scheduleNextChunk();
|
|
62470
62471
|
return;
|
|
62471
62472
|
}
|
|
@@ -62554,7 +62555,7 @@ class StreamingGaussianSplatParser extends ParserBase {
|
|
|
62554
62555
|
_streamParser = null;
|
|
62555
62556
|
_streamingRenderer = null;
|
|
62556
62557
|
_rendererObject = null;
|
|
62557
|
-
_chunksPerBatch =
|
|
62558
|
+
_chunksPerBatch = 1e4;
|
|
62558
62559
|
// Number of splats to process per batch
|
|
62559
62560
|
_headerParsed = false;
|
|
62560
62561
|
_onHeaderParsed = null;
|