jojoba

Members
  • Content count

    3
  • Joined

  • Last visited

  1. Ah, thank you for the clear explanation. Now I understand what you mean by chunking. This helps so much!!
  2. Thanks Ivan for responding so fast! I tried var graphics = new PIXI.Graphics(true) and it bumped up my framerate to 45fps, which is better! Regarding your second comment, about adding points in chunks, I'm not sure I understand entirely. I am updating my data at 60Hz (remove the first element, and append a new element) and then in a requestanimationframe, am using a PIXI.Graphics to lineto and moveto the line for each point in my data for each line, and then call render. Where would the chunking occur exactly? Thanks for all of your help! I very much appreciate it.
  3. Greetings! I love pixijs! Amazing stuff! I'm currently attempting to plot about 30 lines, each containing about 2500 points scrolling right to left (where once a point goes off the screen to the left, a new point is appended on the right). Think a whole bunch of streaming time series charts. I've been able to plot them out, creating a top level PIXI.Container to contain all the lines, and then for each line, creating a PIXI.Graphics object that I addChild to the top level PIXI.Container, setting the line style and then in the render loop going thru each line's 2500 points and doing the moveto lineto fun. It works! However my framerate peaks at around 40fps, which is still nice, but hoping for a 60fps. Note: I do the line moveto and lineto for each line before I call the render on the top level PIXI.Container, so hopefully that's forcing all the draw work to happen in one frame. Does anyone happen to know if there any optimizations that I could leverage to speed this up? Thank you kindly for any help you can offer. Cheers!