Jump to content

Difference in FPS between Firfox and Google Chrome


Dad72
 Share

Recommended Posts

I used the 'sprites' to make the grass. I must have 1800 sprites on the stage. I note a large difference in FPS between firfox and Google Chrome.
On Chrome, I have 40/41 fps
On Firfox i have 25/27 fps

on firfox, my fps, quickly drop. If I removed the sprites, my fps goes back has 60 on firfox and on chrome. I think that there is a performance problem with the sprites. If i put 4000 sprites, my scene lag, the fps are very low.

Link to comment
Share on other sites

1800 sprites is also apparently much?

 

Therefore, there is nothing in Babylon which permettes to make the herbs on a field in large quantity? The grass allows you to make the scene more realistic. This brings a touch of nature. It is disappointing not to be able to put grass in large quantity.

Are there solutions to put large amount of grass?

Link to comment
Share on other sites

There would be a solution to make large expanse of grass with the sprites. With isvisvible. To hide the herbs at a certain distance from the camera by placing isvisible on false. This would allow a lot of grass. Only 1000 could see, the rest would not be rendered as a camera does not track.

 

This would be has add with the request of here, or you forget to answer me:

 

http://www.html5gamedevs.com/topic/3946-pickinfo-on-the-sprites-pickedsprite/

Link to comment
Share on other sites

I find the solution.

with google chrome, if I put the object to false isvisible to hide objects far from the camera the FPS remains acceptable.

By contrast with Firefox it must add visibility 0 in addition isvisible false for the FPS is acceptable, otherwise, the FPS are a 16.

 

thus:

 

Google Chrome :

mesh.isvisible = false;

 

Firfox :

mesh.isvisible = false;

+

mesh.visilility = 0;

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