Skip to content
TREN
Atlıhan Harita

LCC for Web User Manual · API Reference

LCCObject::checkRenderNextFrame

Chapter 06.1 / 07Manual version v0.6.4English

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()

This chapter is from the official XGRIDS user manual. Official source (opens in a new tab) · Updated:

XGRIDS Türkiye

We're With You During Setup and in the Field

Atlıhan Harita provides training and technical support for device setup, firmware updates, software use, and field applications. Send us your question and our specialist will get back to you.

+90 216 546 0804