Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Separate threads for indicators / UI

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Separate threads for indicators / UI

    A suggestion for maybe NT 7 (which is supposed to provide full multi-core support):

    Try to separate indicator calculations and UI thread. The indicators should not be calculated in the UI thread.

    I noticed the crosshair lags when using many or complex indicators (a bunch of WMAs for example). So I assume the indicators are being calculated in the UI thread, or at least, the drawing and calculations are being processed in the same thread.

    So two separate threads would be nice. The UI should always respond instantly, no matter how many complex indicators are being calculated.

    #2
    Thanks for your suggestion. We'll add it to the list of future considerations.

    Comment


      #3
      Just an addition due to http://www.ninjatrader-support.com/v...486#post30486:

      Not only indicators should be calculated in another thread. The rendering itself should be performed in another thread, too. Maybe indicator by indicator. Only the actual drawing (not rendering!) to the UI should happen in the UI thread.

      This way the UI should always respond, no matter how complex the calculations/rendering might be.

      Comment


        #4
        >> The rendering itself should be performed in another thread, too
        Please consult the MS documentation to learn that ANY UI processing/drawing needs to run in the app's main thread.

        Comment


          #5
          Originally posted by NinjaTrader_Dierk View Post
          >> The rendering itself should be performed in another thread, too
          Please consult the MS documentation to learn that ANY UI processing/drawing needs to run in the app's main thread.
          That's why I wrote:
          Only the actual drawing (not rendering!) to the UI should happen in the UI thread.

          Any time-consuming processing should not be performed in the UI thread to avoid blocking.

          The actual chart could be rendered asynchronously and should be cached. The UI should only repaint the cached chart.
          Last edited by Currywurst; 03-04-2008, 03:49 PM.

          Comment


            #6
            Thanks for your suggestion. We'll add it to the list of future considerations.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by pmachiraju, 11-01-2023, 04:46 AM
            8 responses
            149 views
            0 likes
            Last Post rehmans
            by rehmans
             
            Started by mattbsea, Today, 05:44 PM
            0 responses
            5 views
            0 likes
            Last Post mattbsea  
            Started by RideMe, 04-07-2024, 04:54 PM
            6 responses
            33 views
            0 likes
            Last Post RideMe
            by RideMe
             
            Started by tkaboris, Today, 05:13 PM
            0 responses
            5 views
            0 likes
            Last Post tkaboris  
            Started by GussJ, 03-04-2020, 03:11 PM
            16 responses
            3,283 views
            0 likes
            Last Post Leafcutter  
            Working...
            X