Skip to content

Commit eda0ca8

Browse files
committed
Use GLenum value and limit batch size to 256
1 parent fad0d33 commit eda0ca8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/renderer/webgl/pipelines/RopePipeline.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
var Class = require('../../../utils/Class');
8+
var GetFastValue = require('../../../utils/object/GetFastValue');
89
var MultiPipeline = require('./MultiPipeline');
910

1011
/**
@@ -52,7 +53,9 @@ var RopePipeline = new Class({
5253

5354
function RopePipeline (config)
5455
{
55-
config.topology = config.game.renderer.gl.TRIANGLE_STRIP;
56+
// GLenum 5 = TRIANGLE_STRIP
57+
config.topology = 5;
58+
config.batchSize = GetFastValue(config, 'batchSize', 256);
5659

5760
MultiPipeline.call(this, config);
5861
}

0 commit comments

Comments
 (0)