We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Performance info – System Material – MeshDepthMaterial – 14.8ms

Home Forums General Questions Performance info – System Material – MeshDepthMaterial – 14.8ms

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #75885
    adamabr
    Customer

    Hi!

    When printing the performance info I get the following as the most expensive material to render:

    System Material - MeshDepthMaterial - 14.8ms

    It is many times slower than any other material. The next material down has a rendering time of 1.1 ms.

    My question is: What is this really?

    I found this link to Verge3D documentation which is very similar to the ThreeJS documentation. However, I still don’t understand what to change in my scene to improve this.

    One test I did was to use the code snippet given here, to change all materials to basic ones.

    v3d.apps[0].scene.traverse(function(obj) {
        obj.material = new v3d.MeshBasicMaterial({
            color: new v3d.Color(Math.random(), Math.random(), Math.random())
        });
    });

    The MeshDepthMaterial is still taking very long to render (similar time if not longer).

    Any thoughts?

    Thanks,
    Adam

    #75951

    Hi Adam,

    This is a so called ‘system’ material which Verge3D automatically creates when it renders depth-based effects, such as shadows, AO, etc. The depth buffer covers the entire screen so it is quite heavy to render. If it slows down your rendering, you can try switching off shadows.

    Chief 3D Verger | LinkedIn | Twitter

    #76052
    adamabr
    Customer

    Thank you Yuri! Good to know!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.