Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

ninjatrader 8 graphics vs ninjatrader 7 graphics

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

    ninjatrader 8 graphics vs ninjatrader 7 graphics

    Is the NT8 version of graphics more intense than the NT7 version. I created an indicator with rectangles and the NT8 version almost locks up and the NT7 version has no issues

    If it is a graphical issue is there a way to minimize graphic usage on 8 for the cpu

    this is on Draw.Rectangle

    DrawRecatangle on NT7 has no issues.

    Exact same algorithm

    #2
    Hello ballboy11,

    Are you custom rendering the rectangle or are you using Draw.Rectangle()?

    If you are custom rendering and using the same code, then you would not be using SharpDX to draw the rectangle, is this correct?


    With NinjaTrader 8, drawing is done with DirectX on the graphic card GPU (instead of on the CPU). Graphic cards are much faster at rendering than the CPU.

    What kind of graphic card is in your computer?

    I can also look in your trace file to ensure that the computer is doing hardware rendering instead of software rendering.
    When hardware rending you would find the line:
    2017-09-20 06:58:05:989 DirectXRenderingHW

    If you would like me to review your log and trace, please send an email to platformsupport [at] ninjatrader [dot] com. In the email please include a link to this forum thread.

    Are you testing this in a blank workspace with no other workspaces open and with no indicators applied to the chart except for the test script?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      No on Rendering being used. It is just the test code no other work spaces
      Last edited by ballboy11; 09-20-2017, 01:44 PM.

      Comment


        #4
        does ninjatrader 8 have a switch to tell the system to use the cpu instead of the gpu?

        Comment


          #5
          Hello ballboy11,

          You are custom rendering in OnRender but you are using the same code you used in NinjaTrader 7?

          There is not a switch to change between hardware and software rendering. NinjaTrader will use hardware rendering if your computer supports it.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            All I do is on NT8 is Draw.Rectangle(?,?,?);

            Comment


              #7
              so are there issues with computers will little or no graphic cards ?

              Comment


                #8
                Originally posted by ballboy11 View Post
                so are there issues with computers will little or no graphic cards ?
                Define what is little or no graphic card.

                Only no graphic card is like windows server,. VMs,etc.

                Comment


                  #9
                  Hello ballboy11,

                  Please send an email to platformsupport [at] ninjatrader [dot] com. In the email please include a link to this forum thread.
                  Chelsea B.NinjaTrader Customer Service

                  Comment


                    #10
                    Lists and performance

                    I was wondering if lists that containing large amounts of data slow down performance on an NT chart.

                    I am doing a test on 2 dataseries

                    60 days lookback 1 minute chart. NQ and CL.

                    After loading 2 of my lists I don't need then unless I change parameters.
                    How do you dispose a list?

                    Secondly does NT save loaded data so if i look back 60 days it doesn't take forever

                    Comment


                      #11
                      Hello ballboy11,

                      A list can take a large amount of memory depending on how many objects are in the list.

                      The entire platform will become slow if the application runs out of available memory.

                      The entire platform will become slow if the CPU is being over utilized. (If software rendering all rending will be done on the CPU causing the CPU usage to go up considerably)

                      However, if no objects are being drawn on the chart, and the system is not out of memory, and the CPU is not over utilized, I would not expect items loaded in memory such as lists to slow the performance of a chart being drawn.

                      A C# System.Collections.Generic.List object is not an IDisposable object. This means when you want to dispose of it, stop using it and eventually it be will cleaned up by the garbage collector. This is general C# and is not specific to NinjaScript.

                      Historical data is cached locally on a computer. If it has been downloaded, that data will be read from the cache instead of downloaded from the server.
                      Last edited by NinjaTrader_ChelseaB; 09-21-2017, 08:55 AM.
                      Chelsea B.NinjaTrader Customer Service

                      Comment


                        #12
                        Thankyou for all your help

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Kaledus, Today, 01:29 PM
                        1 response
                        6 views
                        0 likes
                        Last Post NinjaTrader_Jesse  
                        Started by frankthearm, Yesterday, 09:08 AM
                        13 responses
                        45 views
                        0 likes
                        Last Post frankthearm  
                        Started by PaulMohn, Today, 12:36 PM
                        2 responses
                        16 views
                        0 likes
                        Last Post PaulMohn  
                        Started by Conceptzx, 10-11-2022, 06:38 AM
                        2 responses
                        55 views
                        0 likes
                        Last Post PhillT
                        by PhillT
                         
                        Started by yertle, Yesterday, 08:38 AM
                        8 responses
                        37 views
                        0 likes
                        Last Post ryjoga
                        by ryjoga
                         
                        Working...
                        X