Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 05:28:36 +0000



Post From: What is Sierra Chart Working On

[2024-09-10 13:28:11]
Sierra_Chart Engineering - Posts: 17145
Back in 2021, Sierra Chart released our own implementation of timers rather than relying on the operating system.

Users were reporting higher CPU usage, and less responsive user interface in that release. Rather than spending more time on it, we just reverted the changes and set the project aside.

We think the reason for the issue back then was that the WM_TIMER message code which we were not using, we were using our own custom message code, is considered a lower priority message, and other messages are removed from the queue first. This results, in a lower amount of chart updates and a more responsive user interface. Whereas with our own timer implementation, there was more frequent chart updates according to the chart update interval.

We have again implemented our own version of timers rather than using the operating system, which is a huge resource reduction. We now use the WM_TIMER message. So this will result in lower resource usage, and should be the same updating rate of charts. We are going to be putting this out in version 2675 today. Should be out in about an hour.

The main objective is minimizing reliance on the Operating system resource usage. The whole concept of resources in the Windows operating system, is nonsensical. The operating system should have no trouble at all, with timers or windows. The way windows and timers are handled in Windows, is totally inefficient and pure garbage. There is no other way to describe this. An example of the gross inefficiency of Windows, is in the Sierra Chart Trade Window which eventually we are going to replace, this is the next project. Look at the count of User objects in the Windows task manager when you open the Trade Window. It goes up dramatically. Windows is terribly inefficient.

When you update to this version if you happen to notice higher CPU usage, know that it is not using higher CPU usage due to inefficiency, the exact opposite, there is greater efficiency. What you would be seeing is more frequent updating of charts according to your Chart Update Interval and you should increase the Chart Update Interval to reduce CPU usage. Now whether you would see a difference or not we are not sure but we are just putting this note out.


Chart Update Interval settings:
Chart Settings: Chart Update Interval in Milliseconds (Chart >> Chart Settings >> Display >> Chart Update Interval menu) (Chart Specific)

General Settings Window: Chart Update Interval (Global Settings >> General Settings >> General >> Update Intervals) (Global)

There is also this one for Quote Boards:
General Settings Window: Quote Board Update Interval (Global Settings >> General Settings >> General >> Update Intervals)

It is recommended to set the global Chart Update Interval, to a higher number like 500 ms. And for charts and Trading DOMs where you need more frequent updates, set the chart specific one lower on those:
Chart Settings: Chart Update Interval in Milliseconds (Chart >> Chart Settings >> Display >> Chart Update Interval menu)
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-12 09:16:23