<br>In late march I added logic to count the pixels that each cell covers. Both that and the visible vertex selection add fields to the internal data structure for hits. I suspect that might be the problem. I&#39;ll take some benchmarks on a Microsoft build too see how bad the slowdown is then try to come up with a fix. But I probably ca not get to it till late this week.
<br><br>thanks for the feedback,<br>Dave DeMarle<br><br><br><div><span class="gmail_quote">On 7/16/07, <b class="gmail_sendername">Lim, Theodore</b> &lt;<a href="mailto:T.Lim@hw.ac.uk">T.Lim@hw.ac.uk</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<div>
<div dir="ltr">
<div dir="ltr"><font color="#000000" face="Arial" size="2">Hi Dave,</font></div>
<div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Arial" size="2">I updated my CVS edition last Friday 
(13/07/07), so the version that was facing performance issues was 1.20. my OS is 
WinXP Pro, Ver. 2002 SP2.0, processor is Intel Xeon 3.2 Ghz.</font></div>
<div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Arial" size="2">I&#39;ve just downloaded 
the&nbsp;vtkVisibleCellSelector (v 1.15, cvs date:&nbsp;Mar 27) along with 
vtkSelection (v 1.10, cvs date: Mar 31), vtkExtractSelection (v 1.15, cvs date: 
Apr 2), vtkExtractSelectedIds (v <a href="http://1.17.2.1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">1.17.2.1</a>, cvs date: May 9) and 
vtkKdTreeSelector (v 1.3, cvs date: Apr 16). </font></div>
<div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Arial" size="2">These files were used to replaced the 
current CVS version to complete the compilation.</font></div>
<div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Arial" size="2">I&#39;ve tested the new libraries and they work 
alot faster although it is still not as fast as the previous edition i was 
using. Unfortunately, i do not have the old version anymore and i&#39;m not sure 
which associated files have been altered. </font></div>
<div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Arial" size="2">The version that was extremely fast was the 
CVS edition downloaded on March 24, 2007.</font></div>
<div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Arial" size="2">Cheers, </font></div>
<div dir="ltr"><font face="Arial" size="2">Theo.</font></div></div>
<div dir="ltr"><br>
<hr>
<font face="Tahoma" size="2"><b>From:</b> vtkusers-bounces+t.lim=<a href="mailto:hw.ac.uk@vtk.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">hw.ac.uk@vtk.org</a> on 
behalf of David E DeMarle<br><b>Sent:</b> Mon 16/07/2007 15:18<br><b>To:</b> 
Lim, Theodore <br><b>Cc:</b> vtk-users<br><b>Subject:</b> Re: [vtkusers] 
vtkVisibleCellSelector performance<br></font><br></div><div><span class="e" id="q_113cf815c20a9322_1">
<div>What version of VTK/Graphics/vtkVisibleCellSelector.cxx do you 
have?<br><br>I added logic on July 9th (rev 1.17) to make it possible to return 
the selected vertices of each selected cell. We noticed that was causing a 
significant slowdown so on July 16th (rev 1.20) I committed a change that fixed 
the slowdown - or so I thought.<br><br>If you are using rev 1.20, let me know 
what OS you are using and I&#39;ll take a look.<br><br>thanks,<br>Dave 
DeMarle<br><br>
<div><span class="gmail_quote">On 7/16/07, <b class="gmail_sendername">Lim, 
Theodore</b> &lt;<a href="mailto:T.Lim@hw.ac.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">T.Lim@hw.ac.uk</a>&gt; 
wrote:</span> 
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
  <div>
  <div dir="ltr">
  <div dir="ltr"><font color="#000000" face="Arial" size="2">Hi,</font></div>
  <div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
  <div dir="ltr"><font face="Arial" size="2">I am facing performance issues when using 
  the latest CVS version of vtkVisibleCellSelector. I have not changed any of my 
  own code and also in the test example, the speed of the CVS version is very 
  slow. The vtk provided test example used to be blazingly fast, but now it 
  takes more than twice the time.</font></div>
  <div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
  <div dir="ltr"><font face="Arial" size="2">The problem seems to in the <font size="2">function - ComputeSelectedIds().</font></font></div>
  <div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
  <div dir="ltr"><font face="Arial" size="2">Any ideas?</font></div>
  <div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
  <div dir="ltr"><font face="Arial" size="2">Cheers, </font></div>
  <div dir="ltr"><font face="Arial" size="2">Theo.</font></div></div></div><br>_______________________________________________<br>This 
  is the private VTK discussion list.<br>Please keep messages on-topic. Check 
  the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to 
  subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.vtk.org/mailman/listinfo/vtkusers</a><br><br></blockquote>
</div><br></div></span></div></div></blockquote></div><br>