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
Most of the render code uses buffer pools to manage typed arrays. The code also provides a fallback path for non-pooled allocation. That's bad as it requires manually checking for the presence of buffer pools:
if (pool) {
var array = pool.request(size);
} else {
var array = new Float32Array(size);
}
Instead, two types of allocators should be provided, one which just news the typed arrays, and another which uses a pool of buffers. The code simplifies to:
var array = allocator.request(size)
The text was updated successfully, but these errors were encountered:
Most of the render code uses buffer pools to manage typed arrays. The code also provides a fallback path for non-pooled allocation. That's bad as it requires manually checking for the presence of buffer pools:
Instead, two types of allocators should be provided, one which just news the typed arrays, and another which uses a pool of buffers. The code simplifies to:
The text was updated successfully, but these errors were encountered: