Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Performance question for a drawing objetc is better to change it or remove it)

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

    Performance question for a drawing objetc is better to change it or remove it)

    Scenario:

    I have a drawing object (a rectangle in this case) that is constantly redrawn when the instrument price changes. Currently I delete the rectangle then redraw it so no baggage collects on the constantly redrawn object. This rectangle is redrawn a lot.

    Question:

    Am I causing more overhead by removing it and then redrawing a new object instead of just changing the attributes of the existing drawing object or is it negligible?

    Cheers

    #2
    Hello ct,
    Thanks for your post.

    It would not make a difference to the performance of the platform if you deleted an object before drawing another rectangle or if you simply changed the existing rectangle.
    Josh G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Vikuno1, 11-28-2023, 11:42 PM
    15 responses
    357 views
    1 like
    Last Post PaulMohn  
    Started by PaulMohn, Yesterday, 02:06 AM
    3 responses
    12 views
    0 likes
    Last Post PaulMohn  
    Started by gertrudeabrams, Today, 12:33 AM
    0 responses
    3 views
    0 likes
    Last Post gertrudeabrams  
    Started by NJA_MC, 01-03-2021, 10:34 PM
    11 responses
    150 views
    0 likes
    Last Post wzgy0920  
    Started by sidlercom80, 10-28-2023, 08:49 AM
    173 responses
    2,367 views
    0 likes
    Last Post jeronymite  
    Working...
    X