Recommended Posts

Hello! Does anyone have time to lend a hand with some optimisation please?

I've been trying to get some dynamic ring shapes to look good and respond well, and performance seems OK on PC's (I've tested on 3 or 4 PC's with varying specs).

On Macs (iMac, recent macbook pro and a mac mini) the CPU shoots up to 99% in Safari, so I'm obviously doing something wrong.
Even with texture reflection and refraction turned off and lower detail it's still very jumpy and slow.

I updated chrome on the mac, which seemed to help and gave much better performance - but it's still far from the performance of a PC.
I have a feeling that Safari might just have a bad implementation of WebGL. The basic playground examples run really slowly too.

I'm using a Lathe to create the ring, and I'm aware of the latheTesselation, which shouldn't be too high.
The API says that the Lathe can be set to "updatable", and I've tried to use code to update it, but the 2 code examples that I tested just didn't work.
I think this is because the update can only move existing points, and not replace them.

Any time I want to update the ring parameters I just dispose of it and recreate it.

Any tips are well appreciated - And sorry about the shoddy code!!

Share this post

Link to post
Share on other sites


first you should look if the version of the safari browser really supports WebGL.

Then to optimise the performance you should generally know how to

- merge meshes to reduce the 'drawing calls'

- use instances or clones when possible (plz learn about the differences)

- clean up the scene: dispose meshes WITH their materials and also their textures.

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

  • Recently Browsing   0 members

    No registered users viewing this page.