Skip to content

Commit

Permalink
refactor(chunk): delete MAX_VERTEX_COUNT from PrimitiveChunkManager
Browse files Browse the repository at this point in the history
  • Loading branch information
singlecoder committed Jul 26, 2024
1 parent e6e90d6 commit 92b7069
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/core/src/RenderPipeline/PrimitiveChunkManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@ import { SubPrimitiveChunk } from "./SubPrimitiveChunk";
* @internal
*/
export class PrimitiveChunkManager {
/** The maximum number of vertex. */
static MAX_VERTEX_COUNT = 4096;

primitiveChunks = new Array<PrimitiveChunk>();

constructor(
public engine: Engine,
public maxVertexCount = PrimitiveChunkManager.MAX_VERTEX_COUNT
public maxVertexCount = 4096
) {}

allocateSubChunk(vertexCount: number): SubPrimitiveChunk {
Expand Down

0 comments on commit 92b7069

Please sign in to comment.