<div><div class="gmail_quote">On Wed, Apr 6, 2011 at 2:31 AM, Roger Bramon Feixas <span dir="ltr"><<a href="mailto:rogerbramon@gmail.com">rogerbramon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5"><div class="gmail_quote"><div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse;color:rgb(34, 34, 34)">Hi,<div><br></div><div>I'm developing on Mac OS X and I recently updated my VTK version from 5.0.4 to 5.6. On Mac Os X, the frame rate of a 2D render window is drastically reduced when <span style="background-color:rgb(255, 189, 93);color:rgb(34, 34, 34);background-repeat:initial initial">vtkCornerAnnotation</span> is set to on. I also noticed that from VTK 5.2 the vtkTextActor implementation uses textures instead of OpenGL sentences but the current implementation of <span style="background-color:rgb(255, 189, 93);color:rgb(34, 34, 34);background-repeat:initial initial">vtkCornerAnnotation</span> uses vtkActor2D instead of vtkTextActor therefore it doesn't take the benefit of using textures. I changed <span style="background-color:rgb(255, 189, 93);color:rgb(34, 34, 34);background-repeat:initial initial">vtkCornerAnnotation</span> implementation in order to test the performance of using textures and the result is really interesting. The frame rate increases from 6 frames/s to 60 frames/s which is the same frame rate when <span style="background-color:rgb(255, 189, 93);color:rgb(34, 34, 34);background-repeat:initial initial">vtkCornerAnnotation</span> isn't used.</div>



<div><br></div><div>I attach a zip which includes the implementation (even thought it isn't a nice implementation because I just did the minimum changes to be able to use vtkTextActor), the patch file, and a pdf file which is a summary of my test results done on Windows XP and Mac OS X. On Windows, if we just analyze the frame rate, we could conclude that it isn't necessary to change the implementation to use vtkTextActor, however, we could reduce a lot the CPU usage.</div>



<div><br></div><div>I would like to know your opinion about it, and, perhaps, someone could test it on Linux, or with ATI graphics card or on Windows with dual core processor (I test it with quad core processor).</div><div>



<br></div><div>Thanks for your attention.</div><div><br></div><font color="#888888"><div>Roger</div></font></span></div></div></div></div></div></blockquote><div><br></div><meta http-equiv="content-type" content="text/html; charset=utf-8">Hi Roger,<div>
<br></div><div>I think your patch would be better received if you pushed it to Gerrit:</div><div><br></div><div><a href="http://www.itk.org/Wiki/VTK/Git/Simple#Publishing_a_Topic_for_Review_.28Optional.29">http://www.itk.org/Wiki/VTK/Git/Simple#Publishing_a_Topic_for_Review_.28Optional.29</a></div>
<div><a href="http://www.itk.org/Wiki/VTK/Git/Simple#Publishing_a_Topic_for_Review_.28Optional.29"></a><br></div><div>David</div></div></div>