Sign in to follow this  
Poko

too many draws, need some help

Recommended Posts

Hi everyone, I'm actually working on an app using phaser. I receive inputs from a device and i need to draw the last 200 points received each frame. I looked all day trying various solutions with bitmapdata and render textures but i couldn't find any way to draw all thoose points at once, each time i check with the firfox's canvas inspector i get to 202 drawings with something like 800 calls, i'm totally lost. Could any one help me? Thank you in advance!

Share this post


Link to post
Share on other sites

Thanks for your answer, but i totally forgot to precise that i'm working on CANVAS mode, the app is running with ionic cordova and WebGL had really poor performances. Anny suggestions?

Share this post


Link to post
Share on other sites

You do not precise how you are drawing individual points. If one by one with something like RenderTexture.RenderXY(), then points are not batched. Instead create group, put points into it and then draw whole group at once.

I had similar problem in past, here is detailed post:

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.