Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5361

DiscardCtrl slow as molasses

$
0
0

Hello all,

In the past I had problems with the profiler. Since it now works in CVI2013 (thanks for fixing it), I'm using it to check out a program that takes forever to initialize. It draws some arrows into a temporary canvas and then copies them into a picture ring.

 

The drawing is slow, but I guess that's to be expected (yeah, CanvasStartBatchDraw, etc), but what I find surprising is that DiscardCtrl on said  canvas takes forever: it's called 90 times and takes 17 seconds total. Running in debug or release mode doesn't change much (only 1s difference).

 

So, is that normal, and can I optimize it ?

Thanks.


Viewing all articles
Browse latest Browse all 5361

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>