# Implement rendering behaivor like 3js

**URL:** <https://forum.babylonjs.com/t/implement-rendering-behaivor-like-3js/26360>\
**Category:** Questions\
**Created:** [December 30, 2021, 3:27am UTC](https://forum.babylonjs.com/t/implement-rendering-behaivor-like-3js/26360 "2021-12-30T03:27:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![007](https://avatars.discourse-cdn.com/v4/letter/0/a4c791/32.png) [@007](https://forum.babylonjs.com/u/007)\
**Post date:** [December 30, 2021, 3:27am UTC](https://forum.babylonjs.com/t/implement-rendering-behaivor-like-3js/26360/1 "2021-12-30T03:27:16Z")

</div>

Hi,  
In 3js, it seems there is a mechanism to detect if the frame has changed or not.  
In this [three example](https://threejs.org/examples/#webgl_clipping_intersection), If no changes( no animations, no use interaction), the GPU will stop rendering (GPU usage is 0)

But in bjs, the GPU is runing all the time, no matter the frame is changed or not.  
Even in this simple [babylon example](https://playground.babylonjs.com/), the GPU usage is always more than 10% in my laptop.

Any way to implement this mechanism in bjs?

---

<div class="post-metadata">

**Author:** ![JohnK](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johnk/32/26764_2.png) [@JohnK](https://forum.babylonjs.com/u/JohnK)\
**Post date:** [December 30, 2021, 12:49pm UTC](https://forum.babylonjs.com/t/implement-rendering-behaivor-like-3js/26360/2 "2021-12-30T12:49:33Z")

</div>

Check the following

> [@Power saving mode](https://forum.babylonjs.com/t/power-saving-mode/23406):
>
> Hi! If you didn’t know yet, you can save power and help save our planet earth_africa by stopping the render loop if the user is idle for example. It’s not applicable in all situations obviously. In my scene I just need to update the shadows (I’m doing it every 5 minutes) if there is no user interaction. Simply call engine.stopRenderLoop() to stop and engine.runRenderLoop(() =\> { scene.render() }) to start. And it’s a quite good idea to detach the mouse from your canvas when stopping the re…

> [@\[SOLVED\] Possibility to pause rendering without removing render loops](https://forum.babylonjs.com/t/solved-possibility-to-pause-rendering-without-removing-render-loops/5921):
>
> Hi, Was wondering if its possible to fully stop rendering loop if nothing is changing on the screen. Checked code for the Engine and found this function, that stop rendering if focus is lost. public \_renderLoop(): void { if (!this.\_contextWasLost) { var shouldRender = true; if (!this.renderEvenInBackground && this.\_windowIsBackground) { shouldRender = false; } if (shouldRender) { // Start new frame …
