threejs-particles
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseParticles and Large Data
粒子与大数据
Use the project's installed versions and existing architecture. These instructions supplement the user's task; they do not authorize unrelated changes or external actions.
Define particle count, lifetime, spawn rate, interaction, and target devices before choosing Points, instanced geometry, or a GPU simulation. Choose representation based on appearance and measured bottlenecks; many transparent pixels can cost more than many vertices.
Allocate fixed-capacity buffers, recycle slots, and update typed arrays without per-frame object churn. Use deterministic seeds when reproducibility or visual tests matter. Keep application identifiers independent of reused buffer slots.
Budget point size and transparent overdraw. Point-size limits vary by device; use quads when larger sprites are necessary. Sort or approximate transparency intentionally. For GPU deformation, maintain conservative bounds and matching interaction behavior.
For GPU simulation, define ping-pong resources, initial conditions, precision requirements, and backend support. Reset both simulation state and presentation time. Avoid unnecessary readbacks; if CPU interaction is needed, use coarse proxies or a deliberate sampling strategy.
For point-cloud datasets, stream spatial chunks, cull by chunk, and adjust detail to projected size. Preserve coordinate origins and units rather than uploading huge world coordinates blindly.
Verify count changes, maximum lifetime, resizing, reset reproducibility, sustained memory use, mobile fill rate, and fallback behavior without the compute path.
使用项目已安装的版本和现有架构。这些说明是对用户任务的补充;它们不授权无关更改或外部操作。
在选择Points、实例化几何体或GPU模拟之前,先定义粒子数量、生命周期、生成速率、交互和目标设备。根据外观和测量到的瓶颈选择表示方式;许多透明像素的成本可能高于许多顶点。
分配固定容量的缓冲区,回收槽位,并更新类型化数组,避免每帧对象混用。在可重现性或视觉测试重要时使用确定性种子。保持应用标识符独立于复用的缓冲区槽位。
预算点大小和透明过度绘制。点大小限制因设备而异;当需要较大精灵时使用四边形。有意地对透明度进行排序或近似处理。对于GPU变形,保持保守边界和匹配的交互行为。
对于GPU模拟,定义乒乓资源、初始条件、精度要求和后端支持。重置模拟状态和呈现时间。避免不必要的回读;如果需要CPU交互,使用粗略代理或深思熟虑的采样策略。
对于点云数据集,流式传输空间块,按块剔除,并根据投影大小调整细节。保留坐标原点和单位,而不是盲目上传巨大的世界坐标。
验证计数变化、最大生命周期、调整大小、重置可重现性、持续内存使用、移动端填充率以及在没有计算路径时的回退行为。
API reference
API参考
Consult the official documentation for exact signatures and revision-specific behavior. If documentation access is unavailable, inspect installed types/source and state any remaining uncertainty.
请查阅官方文档了解确切签名和特定版本的差异。如果无法访问文档,请检查已安装的类型/源代码,并说明任何剩余的不确定性。