# Rendering Mode is there a Retained Option?

**URL:** <https://forum.babylonjs.com/t/rendering-mode-is-there-a-retained-option/14407>\
**Category:** Questions\
**Created:** [September 24, 2020, 11:35am UTC](https://forum.babylonjs.com/t/rendering-mode-is-there-a-retained-option/14407 "2020-09-24T11:35:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Platin21](https://avatars.discourse-cdn.com/v4/letter/p/ed655f/32.png) [@Platin21](https://forum.babylonjs.com/u/Platin21)\
**Post date:** [September 24, 2020, 11:35am UTC](https://forum.babylonjs.com/t/rendering-mode-is-there-a-retained-option/14407/1 "2020-09-24T11:35:30Z")

</div>

Hello Fellow BabylonJS Devleopers,

I currently work on a 3d view for some models, now i got all of them loaded but on mobile the performance is terrible so i did wonder if it’s possible to only re-render when a user interaction happens?  
As i do not really make a game i don’t have things running async to the rest.

Is there such a mode and if so how can i activate it?  
(Basically binding the re-rendering on resize and the camera controls)

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [September 24, 2020, 1:23pm UTC](https://forum.babylonjs.com/t/rendering-mode-is-there-a-retained-option/14407/2 "2020-09-24T13:23:30Z")

</div>

You can stop the engine render loop and then use a time out (with checks on activity) to do a frame rendering.

> **[Babylon.js Playground](https://playground.babylonjs.com/#0ISF6I)**

  
In this PG, I render only every 100ms

---

<div class="post-metadata">

**Author:** ![Platin21](https://avatars.discourse-cdn.com/v4/letter/p/ed655f/32.png) [@Platin21](https://forum.babylonjs.com/u/Platin21)\
**Post date:** [September 29, 2020, 8:44am UTC](https://forum.babylonjs.com/t/rendering-mode-is-there-a-retained-option/14407/3 "2020-09-29T08:44:13Z")

</div>

Yeah that seems to be what i would want. Only thing is that i render a certain time at normal speed.  
Mhh not sure how i can use the default handlers for the camera but still support swiping.

E.g it’s easy to sort of trigger a render event when it’s done via buttons but pretty hard when it’s done via mouse/touch…

---

<div class="post-metadata">

**Author:** ![Platin21](https://avatars.discourse-cdn.com/v4/letter/p/ed655f/32.png) [@Platin21](https://forum.babylonjs.com/u/Platin21)\
**Post date:** [October 1, 2020, 9:53am UTC](https://forum.babylonjs.com/t/rendering-mode-is-there-a-retained-option/14407/4 "2020-10-01T09:53:52Z")

</div>

Any solution for this kind of thing??  
I mean for now the buttons are working but it’s definitly non optimal for mobile.

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [October 1, 2020, 10:19am UTC](https://forum.babylonjs.com/t/rendering-mode-is-there-a-retained-option/14407/5 "2020-10-01T10:19:20Z")

</div>

you can modulate the time between two frames depending on heuristics…like the camera angles velocity

[https://playground.babylonjs.com/#0ISF6I#1](https://playground.babylonjs.com/#0ISF6I#1)

Or you can use the pointer event to refresh at 60Hz when a finger is touching the screen.
