Jump to content

Renderer very slow on Graphic.clear()


Recommended Posts



I have been doing tests with PixiJS because I have seen good results in the examples. When I have make a code with 400 objects, the renderer is very slow.


These are the lines:

            graphics.mousedown = graphics.touchstart = function(evt) {                this.clear();                renderer.render(stage); // slooooowww            };

I have uploaded a JsFiddle example of the code: http://jsfiddle.net/rnr8277a/. I think I am doing something bad.


Very thanks!

Link to comment
Share on other sites

First, thanks you very much for the answer.


I have seen in other computer and it works correctly. I use autoDetectRenderer which launches WebGLRenderer. It's fine but in the bad computer with 400 objects is very slow, in the good computer around 2500 ~ is slow too.


Then, do you suggest use textures? I thought that Graphics was the more fastest.


For other hand, with WebGL the lines are pixelated, why?:








Thanks for the help!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...