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 love2code2trade, 04-17-2024, 01:45 PM
            4 responses
            31 views
            0 likes
            Last Post love2code2trade  
            Started by cls71, Today, 04:45 AM
            2 responses
            10 views
            0 likes
            Last Post eDanny
            by eDanny
             
            Started by proptrade13, Today, 11:06 AM
            0 responses
            2 views
            0 likes
            Last Post proptrade13  
            Started by kulwinder73, Today, 10:31 AM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_Erick  
            Started by RookieTrader, Today, 09:37 AM
            3 responses
            15 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X