• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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

  • NinjaTrader_JoshG
    replied
    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.

    Leave a comment:


  • 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

Latest Posts

Collapse

Topics Statistics Last Post
Started by Mykro, Today, 09:48 AM
0 responses
2 views
0 likes
Last Post Mykro
by Mykro
 
Started by authenticx, Yesterday, 09:56 PM
2 responses
5 views
0 likes
Last Post bltdavid  
Started by tgn55, Today, 09:36 AM
0 responses
2 views
0 likes
Last Post tgn55
by tgn55
 
Started by javieref, Today, 09:05 AM
0 responses
4 views
0 likes
Last Post javieref  
Started by Newtrader101, Today, 08:51 AM
4 responses
23 views
0 likes
Last Post Newtrader101  
Working...
X