Jump to content

Slow rendering when images are added


lucy
 Share

Recommended Posts

Hi,

I need to be able to frequently add and remove objects with around 2000 on the screen at any given time. I tried doing this by both blitter.create() and game.physics.add.image(). In both cases, I am able to add 2000 images. For Blitter, the frame rate is around 30 fps with 2000 images, and for regular it's closer to 20. When the images are added all at once, it takes about 15-30 seconds to load. If I add an image every 100ms, the frame rate goes down to around 5 fps. Another version in Phaser 2 didn't have this problem. Do you know what might be causing this or how to fix it?

Thanks in advance!!

Link to comment
Share on other sites

On 7/6/2018 at 11:16 PM, samme said:

It works well. The issue isn't when there are many images, but when there are many but they are also being added frequently.

 

12 hours ago, rich said:

How large are the images? How large is the canvas? What devices are you testing on? etc etc etc.

The canvas is 600x800px, the images are 64px squared. The device I am testing on is Linux with Chrome web browser.

 

10 hours ago, HugoMM said:

seems blitters doesn't has depth control?

What does this mean?

Link to comment
Share on other sites

1 hour ago, lucy said:

It works well. The issue isn't when there are many images, but when there are many but they are also being added frequently.

If you hold down the mouse button, that example will add more than a thousand objects per second.

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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