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.

How to solve the problem that verge3d web application memory usage has been increasing?

Home Forums General Questions How to solve the problem that verge3d web application memory usage has been increasing?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #74922

    Hello everyone,
    I have completed the web application project, but when I open the project page for a long time, the browser shows that the memory usage keeps increasing and eventually causes the page to crash. How do I solve the crash problem caused by the page increment? :-( :-(

    This is my application network address: https://www.suk.fit/eae3/

    Attachments:
    You must be logged in to view attached files.
    #74925

    Hi,

    can it be that the application keeps creating new objects or textures in a loop?

    Chief 3D Verger | LinkedIn | Twitter

    #74928

    Thank you, but there is no operation in the project, only a circular animation sequence frame :-(

    #74933
    kdv
    Participant

    Your v3d scene generates a huge amount of geometry buffers.

    but there is no operation in the project

    Are your really sure? :scratch: updateTextObj is a culprit. this function, if called every frame (like in your app), generates a lot of geometries.

    registerEveryFrame(function() {
      Height_value = getObjTransform('移动层_ctrl', false, 'position', 'z') - 0.3;
      Function('app', 'v3d', 'puzzles', 'VARS', 'PROC', (('let value=VARS[\'Height_value\'] * 1000;' + '\n' +
      'VARS[\'Height_value\']=value.toFixed(0);')))(appInstance, v3d, PL, VARS, PROC);
      updateTextObj('Text', Height_value);
      updateTextObj('Text.001', Height_value);
    });

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #74949

    Ouch! Yes, I remember, there is indeed a text update object in the scene! But how do I fix it? :cry:

    #74950
    kdv
    Participant

    Get rid of it.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #74982

    However, I need to calculate the rising height of the machine in real time and display it on the interface screen on the side. If I delete it, I will not be able to meet the customer’s demand, so is there any other way to achieve it besides deleting it? :cry:

    #75064
    kdv
    Participant

    300$

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

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