# Bloom selective animate performance

**URL:** <https://discourse.threejs.org/t/bloom-selective-animate-performance/34783>\
**Category:** Questions\
**Tags:** bloom\
**Created:** [February 11, 2022, 10:28pm UTC](https://discourse.threejs.org/t/bloom-selective-animate-performance/34783 "2022-02-11T22:28:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![espace3d](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/espace3d/32/26134_2.png) [@espace3d](https://discourse.threejs.org/u/espace3d)\
**Post date:** [February 11, 2022, 10:28pm UTC](https://discourse.threejs.org/t/bloom-selective-animate-performance/34783/1 "2022-02-11T22:28:13Z")

</div>

Hi,

I success to implement these example : [three.js webgl - postprocessing - unreal bloom selective](https://threejs.org/examples/webgl_postprocessing_unreal_bloom_selective)

with my snippet with enemies who must turn on themselves :  
https://codepen.io/ogames/embed/preview/KKyqoow?default-tabs=js%2Cresult&height=300&host=https%3A%2F%2Fcodepen.io&slug-hash=KKyqoow

The problem I face is that my enemies must have a rotation. The rotation happens but the performance is not great at all. (FPS is big but there are lags). What should I change to improve my rendering?

Thanks in advance for your help.

---

<div class="post-metadata">

**Author:** ![abdelshok](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/abdelshok/32/14389_2.png) [@abdelshok](https://discourse.threejs.org/u/abdelshok)\
**Post date:** [September 1, 2022, 1:40am UTC](https://discourse.threejs.org/t/bloom-selective-animate-performance/34783/2 "2022-09-01T01:40:04Z")

</div>

Hi, have you found any solution? Running into a similar issue as of recently when combining rotations and bloomPass - performance drops.

---

<div class="post-metadata">

**Author:** ![espace3d](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/espace3d/32/26134_2.png) [@espace3d](https://discourse.threejs.org/u/espace3d)\
**Post date:** [September 1, 2022, 5:24pm UTC](https://discourse.threejs.org/t/bloom-selective-animate-performance/34783/3 "2022-09-01T17:24:35Z")

</div>

Hi,  
No sorry

---

<div class="post-metadata">

**Author:** ![Chaser\_Code](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/chaser_code/32/20199_2.png) [@Chaser\_Code](https://discourse.threejs.org/u/Chaser_Code)\
**Post date:** [September 1, 2022, 5:28pm UTC](https://discourse.threejs.org/t/bloom-selective-animate-performance/34783/4 "2022-09-01T17:28:36Z")

</div>

60 fps without lags. Videocard loaded 49%, CPU 25%

---

<div class="post-metadata">

**Author:** ![mjurczyk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mjurczyk/32/10995_2.png) [@mjurczyk](https://discourse.threejs.org/u/mjurczyk)\
**Post date:** [September 1, 2022, 5:30pm UTC](https://discourse.threejs.org/t/bloom-selective-animate-performance/34783/5 "2022-09-01T17:30:18Z")

</div>

It does seem to fun at stable, max fps 🤔 Do demos like [this one](https://threejs.org/examples/#webgl_animation_keyframes) have a good, stable performance for you? Does the bloom performance become stable when you disable rotations, but just move the camera around?

Since it’s a postprocessing effect applied to a flat image, not to the 3D scene - bloom doesn’t really “see” transformations in the scene. So regardless whether there are animations on the scene or not - bloom should behave the same way.

---

<div class="post-metadata">

**Author:** ![drcmda](https://avatars.discourse-cdn.com/v4/letter/d/91b2a8/32.png) [@drcmda](https://discourse.threejs.org/u/drcmda)\
**Post date:** [September 1, 2022, 11:19pm UTC](https://discourse.threejs.org/t/bloom-selective-animate-performance/34783/6 "2022-09-01T23:19:56Z")

</div>

@espace3d @abdelshok you guys are using bloom pass wrong. there is no need for any of this code, you don’t need to render twice, copy shaders, traverse the scene, use layers, etc. that threejs example is causing so much confusion i don’t know why it still stands. bloom is selective by default, you control what glows by the emissionIntensity prop on your materials. with this you won’t run into performance problems.

this post [Struggling with gltf and lighting](https://discourse.threejs.org/t/struggling-with-gltf-and-lighting/39564)
