Skip to main content

LCC for Web Manual · v0.6.3 · Page 11 of 68

LCCObject::checkRenderNextFrame

Queries whether the next frame needs to be rendered.

This method enables on-demand rendering, reducing unnecessary rendering overhead.

Version Requirement

SDK v0.5.0+

Engine Support

Three.js

API

LCCObject::checkRenderNextFrame(): boolean

Parameters

None

Return Value

boolean — true indicates the next frame needs rendering; false indicates it does not.

Usage Example

function render() {
    LCCRender.update();

    // Check whether the SDK needs to render
    if (lccObject.checkRenderNextFrame()) {
        lccObject.clearRenderNextFrame();

        // Render the scene
        renderer.render(scene, camera);
    }
}

function animate() {
    renderer.setAnimationLoop(() => {
        render();
    });
}

animate();

Notes

  • Must be used together with clearRenderNextFrame() to clear the internal state after rendering is complete.
  • LCCObject::clearRenderNextFrame()

XGRIDS documentation, reproduced as published and captured on October 27, 2026. Read this page on docs.xgrids.com

Stuck on a Step?

QRC supports every scanner and software seat it sells. Send us the page you are on and we will walk you through it.

Contact Us
Request a Quote