Login Page - Create Account

Support Board


Date/Time: Fri, 04 Oct 2024 14:09:25 +0000



Copied shaded rectangle performance with OpenGL

View Count: 339

[2024-08-29 04:50:42]
User273277 - Posts: 50
I put a few shaded rectangles on a chart. Then I setup a blank chart, no bars no studies, and set it to copy the first chart.

Sierra is set to use OpenGL.

The first chart shows 0-11% 3D gpu usage. The second chart shows between 80-100% gpu depending how far I zoom out.

CPU is around 10%.

This becomes a problem with all my regular studies and multiple charts and copies.

Is there something I, or you, can do to reduce the gpu time taken by copied shaded rectangles?
Date Time Of Last Edit: 2024-08-31 22:10:49
image2024-08-28_23-19.png / V - Attached On 2024-08-29 03:25:37 UTC - Size: 4.37 KB - 52 views
image2024-08-28_23-21.png / V - Attached On 2024-08-29 03:25:40 UTC - Size: 5.79 KB - 49 views
[2024-08-29 05:06:56]
User273277 - Posts: 50
A few things I have tried:

First chart is normally set to 30 days to load for intraday chart data type. Second chart set to 7. I tried syncing them to both be 7 days. No difference.

The first chart is a 15 minute chart. The second chart is a 24 tick renko. I can't change this, but maybe there's another configuration that would give me the same time periods but be more efficient?

I tried setting the shading of the rectangles to 0, and 100%. This would not be usable for me but I tried. No difference.
[2024-08-30 14:59:52]
Sierra_Chart Engineering - Posts: 16549
Do you notice this performance issue when disabling OpenGL. You need to restart Sierra Chart.

If you are using 0% and 100% for the transparency level, then this means transparency is not the issue.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-08-31 22:10:25]
User273277 - Posts: 50
With OpenGL off and Sierra restarted, 3D GPU is at 2-4%.

CPU is around 19%.

This however makes the charts unusably slow to zoom and move the time slider.

This testiug is with just 2 charts open.

Nothing being drawn on the second chart except the copied shaded rectangles from the first chart.

The first chart, the source of the rectangles, works fine and GPU is under 11% when it's just this chart on the screen and OpenGL is on.

It's only when the second chart with the copied rectangles is visible on the screen and OpenGL is on, that the GPU holds at 80% +.
Date Time Of Last Edit: 2024-08-31 22:12:50
[2024-09-03 21:08:14]
Sierra_Chart Engineering - Posts: 16549
Make sure all of the highlight drawings are not using transparency. The solution is to simply not use transparency. You can use 0% or 100% for the transparency level for them. And you should not have any performance problems.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-09-03 21:28:47]
User273277 - Posts: 50
Thank you.

However please see my second post above where I tested setting transparency to 0 and 100 on the source chart, with no improvement to performance when the rectangles are copied to another chart.
Date Time Of Last Edit: 2024-09-03 21:29:06
[2024-09-03 21:38:12]
Sierra_Chart Engineering - Posts: 16549
Make sure there is no transparency enabled on any Chart Drawing anywhere or even with studies.

And it does not matter whether a drawing is copied to another chart or not. The origin of it is 100% irrelevant. It could not have any relevancy at all. You could draw the same drawing in the same location directly on the destination chart and the result will be the same.

A simple hollow rectangle drawing without transparency will use next to no CPU or GPU usage.

Transparency does cause higher CPU usage.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2024-09-03 21:40:02
[2024-09-16 00:04:20]
User273277 - Posts: 50
I need transparency enabled for these drawings to be of use. The question is the difference in GPU usage on the primary chart (nearly 0), vs the GPU usage on the secondary chart where the drawings are copied to (nearly 100%).

Are the drawings effectively being calculated/drawn twice when being copied between charts? This would explain the dramatic performance difference, as it looks like shader performance is not linear.

Can I just throw more GPU at the OpenGL shading function (vertex shaders?)?

Can the precision of the shaders be reduced to speed this up? (Not sure if this is even related)

Is there a metric to look for in GPU selection that will optimize for Sierra's OpenGL shading?
[2024-09-17 14:31:15]
Sierra_Chart Engineering - Posts: 16549
We are looking at, how we can improve performance with transparency operations, with OpenGL.

Any Chart Drawing, which is visible, is going to be drawn, and will consume processing time. So if a drawing is copied and there are two visible instances of it, then it needs to be drawn twice.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2024-09-17 14:32:08
[2024-09-17 15:59:00]
Sierra_Chart Engineering - Posts: 16549
The reason for the problem has been discovered and we are putting out a new release now.

There was an oversight regarding rectangle drawings where they were not clipped to the visible window.

This issue is not specific to copied drawings. It was a case where a rectangle drawing which is visible partially but substantially offscreen at the same time.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2024-09-17 16:01:10
[2024-09-17 16:03:17]
User273277 - Posts: 50
Nice catch!

Thank you for working on this and getting a fix out so quickly.
[2024-09-17 22:33:06]
Sierra_Chart Engineering - Posts: 16549
You can go ahead and update now. The new release is out. The problem should definitely be resolved.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-09-18 00:37:54]
User273277 - Posts: 50
I do see a big improvmenet of 8% GPU with 2 charts utilizing shaded rectangles, and 30% with 4 charts. Much improved from the 80-100% I was seeing before the 2678 update.
[2024-09-18 03:09:10]
Sierra_Chart Engineering - Posts: 16549
That is good.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account