Quantcast
Channel: Pixi.js Latest Topics
Viewing all articles
Browse latest Browse all 3978

Very slow CanvasRenderer performance for just 3 sprites

$
0
0

I'm trying to draw 3 'tetris blocks' on the screen, but as you can see, the performance is quite bad. I get around 3 frames per second on my machine.

I created a codepen example to demonstrate the effect.

What I do is create one Base texture (i.e. a tilemap) and then create 3 sprites from that base texture, and adding it to the stage. That should be fast, right?

Is there anything obvious that I'm missing?

Thanks!


Viewing all articles
Browse latest Browse all 3978

Trending Articles