slaylines / canvas-engines-comparison

Performance comparison of different canvas rendering engines.
https://benchmarks.slaylines.io
MIT License
786 stars 84 forks source link

Use StageGL for CreateJS #47

Open danzen opened 1 year ago

danzen commented 1 year ago

You could try using StageGL (GPU based) with CreateJS

this.stage = new createjs.StageGL("canvas");

and then you need to cache() the rectangles so they are bitmaps

rect.cache(0, 0, size, size); this.stage.addChild(rect);

gnykka commented 1 year ago

@danzen I didn't work with CreateJS so I'll need to read and learn to implement the example. If we have rectangles of different sizes will the cache do its thing?