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.

Debugging

Home Forums Programming Debugging

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #17799
    Avatarloom
    Licensee

    Hi,

    do we care about this error in chrome console ?

    v3d.js:1 [Violation] Added non-passive event listener to a scroll-blocking ‘wheel’ event. Consider marking event handler as ‘passive’ to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

    just wondering if we could ignore it ?

    Cheers,
    Chris

    #17804
    Yuri KovelenovYuri Kovelenov
    Developer

    Hi,

    Can this error be seen in some of Verge3D demos as well?

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #17806
    Yuri KovelenovYuri Kovelenov
    Developer

    I see them now – you must have enabled Verbose level in Chrome console. Nevertheless, I think it is worth looking deeper into those warnings. Thanks for heads up!

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

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #19958
    Avatarmugga
    Newbie

    I also got this warnings in chrome and the wheel event doesnt work for me. Is there a workaround?

    Update:
    It is working but not when scrolling/zooming in webgl. How can I fire and event when zooming? The “each frame” function is producing to much overhead for me, I would like to execute some functions when zooming.

    • This reply was modified 8 months ago by Avatarmugga.
    #19967
    Yuri KovelenovYuri Kovelenov
    Developer

    The “each frame” function is producing to much overhead for me

    you can possibly only check the distance to the camera every frame, and perform other operations only if the distance changed

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #19972
    Avatarmugga
    Newbie

    Ah okay, yeah this should work.

    #25220
    Avatarweb
    Licensee

    I’m in the middle of trying to optimize performance for animation of geometries etc. And also came across the “non-passive event listener” warning and also “setTimeout handler took <N>ms”.

    Did you already worked on the event listeners optimization?

    #25233
    Yuri KovelenovYuri Kovelenov
    Developer

    Hi,

    these are ‘normal’ warnings which relate to blocking the main thread by 3D rendering.

    Here is some advice on boosting the rendering up
    https://www.soft8soft.com/docs/manual/en/introduction/Optimizing-WebGL-performance.html

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.