# High CPU usage when using custom icons on TreeView component

**URL:** <https://forum.inductiveautomation.com/t/high-cpu-usage-when-using-custom-icons-on-treeview-component/2285>\
**Category:** Ignition\
**Created:** [October 21, 2010, 6:58pm UTC](https://forum.inductiveautomation.com/t/high-cpu-usage-when-using-custom-icons-on-treeview-component/2285 "2010-10-21T18:58:19Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![vahterto](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@vahterto](https://forum.inductiveautomation.com/u/vahterto)\
**Post date:** [October 21, 2010, 6:58pm UTC](https://forum.inductiveautomation.com/t/high-cpu-usage-when-using-custom-icons-on-treeview-component/2285/1 "2010-10-21T18:58:19Z")

</div>

Hi

We found out that when using something else than default icon on tree view it gets huge CPU usage.  
Tried different icons but it seems to be problem allways if use something else than “default”.  
Now we changed those back to default but would be nice to use own icons.

Br  
Tommi Vahtera  
THT Control Oy

---

<div class="post-metadata">

**Author:** ![Oriol](https://avatars.discourse-cdn.com/v4/letter/o/7cd45c/32.png) [@Oriol](https://forum.inductiveautomation.com/u/Oriol)\
**Post date:** [October 22, 2010, 8:00am UTC](https://forum.inductiveautomation.com/t/high-cpu-usage-when-using-custom-icons-on-treeview-component/2285/2 "2010-10-22T08:00:43Z")

</div>

Hi.

I have the same problem with tree view icons. When I assign another path icon on the icon’s properties of tree view, different from by default, CPU’s load is increased a lot.

Is there anyway to solve that?

Thanks.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [October 22, 2010, 4:30pm UTC](https://forum.inductiveautomation.com/t/high-cpu-usage-when-using-custom-icons-on-treeview-component/2285/3 "2010-10-22T16:30:02Z")

</div>

Is your tree view’s data polling? If so, turn it off to see if the CPU spike goes away. I think it might be the fact that it is refreshing quickly. We will look into it some more here.

---

<div class="post-metadata">

**Author:** ![vahterto](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@vahterto](https://forum.inductiveautomation.com/u/vahterto)\
**Post date:** [October 22, 2010, 6:33pm UTC](https://forum.inductiveautomation.com/t/high-cpu-usage-when-using-custom-icons-on-treeview-component/2285/4 "2010-10-22T18:33:23Z")

</div>

Hi

We are using now static dataset, so I thing it is not polling at all?  
But we will change this in near future based on query, but in there also we need polling because we want make dynamic tree view. Of course polling can be slow.

Br  
Tommi Vahtera  
THT Control Oy

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [October 22, 2010, 6:41pm UTC](https://forum.inductiveautomation.com/t/high-cpu-usage-when-using-custom-icons-on-treeview-component/2285/5 "2010-10-22T18:41:34Z")

</div>

Does it stay at high CPU or is it just a spike?

---

<div class="post-metadata">

**Author:** ![vahterto](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@vahterto](https://forum.inductiveautomation.com/u/vahterto)\
**Post date:** [October 22, 2010, 6:52pm UTC](https://forum.inductiveautomation.com/t/high-cpu-usage-when-using-custom-icons-on-treeview-component/2285/6 "2010-10-22T18:52:48Z")

</div>

It stays all time.  
I tested this on windows,linux and iMac.  
Every machine gets 50% CPU instead normal 3-5%.

I find this problem because I wonder why processor blower was running max all the time.

I thing you should see this easily if you drop Tree view and change dataset icon something else than default.

I just downloaded newest beta, i will test it also.

Yes it occurs in 7.1.7 also. I just made new window, drop treeview and change default icon to some symbol, in vista machine goes 99% cpu, (of course Vista loves CPU:))

Br  
Tommi

---

<div class="post-metadata">

**Author:** ![vahterto](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@vahterto](https://forum.inductiveautomation.com/u/vahterto)\
**Post date:** [October 22, 2010, 7:03pm UTC](https://forum.inductiveautomation.com/t/high-cpu-usage-when-using-custom-icons-on-treeview-component/2285/7 "2010-10-22T19:03:03Z")

</div>

Here is screen captures before and after.

Br  
Tommi

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/0d3e4128a368330e49b28c7ff85dda9ecc8a9b56.jpg)  
  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/ecc277a6a3a7234bbf6e74c67001d7e18ee1558a.jpg)

---

<div class="post-metadata">

**Author:** ![Oriol](https://avatars.discourse-cdn.com/v4/letter/o/7cd45c/32.png) [@Oriol](https://forum.inductiveautomation.com/u/Oriol)\
**Post date:** [October 25, 2010, 7:35am UTC](https://forum.inductiveautomation.com/t/high-cpu-usage-when-using-custom-icons-on-treeview-component/2285/8 "2010-10-25T07:35:55Z")

</div>

Hi,

The CPU’s load doesn’t change depending the dataset. It is only changing when you decide to change the icons.  
In my case, I have a query in an off poll mode, and it’s just executed when I have to refresh the information inside of it. But not often.

Thanks.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [November 4, 2010, 8:46pm UTC](https://forum.inductiveautomation.com/t/high-cpu-usage-when-using-custom-icons-on-treeview-component/2285/9 "2010-11-04T20:46:38Z")

</div>

Wow this is a weird one. Thanks for reporting it - I’ve made a ticket for it to get investigated further.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [November 18, 2010, 12:12am UTC](https://forum.inductiveautomation.com/t/high-cpu-usage-when-using-custom-icons-on-treeview-component/2285/10 "2010-11-18T00:12:51Z")

</div>

This has been fixed for 7.1.8
