<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:BMWTypeLight;
        panose-1:2 11 3 4 2 2 2 2 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=DE-CH link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Utkarsh!<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thank you very much for your help. You made my day. Indeed, all
PV versions from PV3.10 are much faster when the flag view.UseOffscreenRendering=1
is set. &nbsp;Now, I am down to roughly 85s instead of the 595s reported in my
first email for all versions 3.10.1, 3.12.0 and 3.14.1.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I will rerun our benchmark with MESA on my guinea pig computer
and I will share the results on this forum. This is of interest for me since I need
to check the parallel efficiency between all versions as well, which will help me
decide if I remain with MESA rendering or not.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Cheers,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Frank.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> Utkarsh Ayachit
[mailto:utkarsh.ayachit@kitware.com] <br>
<b>Sent:</b> Donnerstag, 12. April 2012 15:53<br>
<b>To:</b> Albina, Frank<br>
<b>Cc:</b> Berk Geveci; paraview@paraview.org<br>
<b>Subject:</b> Re: [Paraview] Rendering performance issue?<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Frank,<o:p></o:p></p>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal>Couple of things to note before share my results:<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal>* When&nbsp;UseOffscreenRenderingForScreenshots is true,
ParaView switches to &quot;offscreen rendering&quot; mode for capturing the
view and then switches back to onscreen mode after the capture. VTK (since
before PAraView 3.8) recreates the window and context everytime one switches
from onscreen to offscreen. Recreating context implies the display lists need
to be recreated, among other things.
When&nbsp;UseOffscreenRenderingForScreenshots is 1, I indeed see the windows
being created and destroyed for all versions of ParaView (3.8.1, 3.10.1,
3.12.0, 3.14.1).<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal>* From ParaView 3.10 on wards, you can additionally set
view.UseOffscreenRendering=1 to avoid the re-creating and destruction of
windows and you'll see similar times
whether&nbsp;UseOffscreenRenderingForScreenshots is ON or OFF. (Except 3.8,
since 3.8 doesn't have&nbsp;UseOffscreenRendering flag).<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal>Using the official binaries on a NVidia Quadro 2000, I see
the following (where offscreen_mode == &quot;UseOffscreenRenderingForScreenshots=1
and&nbsp;UseOffscreenRendering=1 (for PV &gt;3.8.1)&quot; ) and onscreen_mode
==
&quot;UseOffscreenRendering=0,&nbsp;UseOffscreenRenderingForScreenshots=0&quot;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal>Version &nbsp; &nbsp; offscreen_mode &nbsp;onscreen_mode<o:p></o:p></p>

</div>

<div>

<div>

<p class=MsoNormal>3.8.1 &nbsp; &nbsp; &nbsp; &nbsp; 110.97* &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 26.18<o:p></o:p></p>

</div>

</div>

<div>

<p class=MsoNormal>3.10.1 &nbsp; &nbsp; &nbsp; &nbsp;10.26 &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;9.65<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>3.12.0 &nbsp; &nbsp; &nbsp; &nbsp;10.45 &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;9.76<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>3.14.1 &nbsp; &nbsp; &nbsp; &nbsp;10.67 &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;9.99<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal>Again, note that 3.8.1 offscree_mode timings include the
context creation/deletion time and since there's no easy way to avoid that in
3.8.1, we should take those with a pinch of salt.<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'>Utkarsh<o:p></o:p></p>

<div>

<p class=MsoNormal>On Wed, Apr 11, 2012 at 10:48 AM, Albina, Frank &lt;<a
href="mailto:frank.albina@sauber-motorsport.com">frank.albina@sauber-motorsport.com</a>&gt;
wrote:<o:p></o:p></p>

<div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Dear Berk!</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thank you very much for the reply. </span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><br>
Actually, I have been able to narrow down the issue I am having by using the
enclosed script, which uses the paraview.simple.Sphere source to perform basic
rendering. The output looks like this:</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><img
border=0 width=394 height=369 id="_x0000_i1025"
src="cid:image001.jpg@01CD19A8.03F9B8F0" alt="spheres--phi=0--theta=0.jpg"></span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Until now, all rendering I performed was done with MESA and I
have been running the rendering scripts by setting
renderView.UseOffscreenRenderingForScreenshots=1. Now, the interesting bit is
that running OpenGL with this flag set to 1 does not make a big difference for
my compiled version of ParaView 3.8.1 but it does for all subsequent versions.
This is summarized in the table below, which gives the time spent in performing
rendering and dumping the screenshots to file on my test HW:</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=769
 style='width:577.0pt;border-collapse:collapse'>
 <tr style='min-height:14.25pt'>
  <td width=307 nowrap valign=bottom style='width:230.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'></td>
  <td width=107 nowrap valign=bottom style='width:80.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  style='font-size:11.0pt;font-family:"BMWTypeLight","sans-serif"'>ParaView
  3.8.1</span><o:p></o:p></p>
  </td>
  <td width=119 nowrap valign=bottom style='width:89.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  style='font-size:11.0pt;font-family:"BMWTypeLight","sans-serif"'>ParaView-3.10.1</span><o:p></o:p></p>
  </td>
  <td width=119 nowrap valign=bottom style='width:89.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  style='font-size:11.0pt;font-family:"BMWTypeLight","sans-serif"'>ParaView-3.12.0</span><o:p></o:p></p>
  </td>
  <td width=119 nowrap valign=bottom style='width:89.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  style='font-size:11.0pt;font-family:"BMWTypeLight","sans-serif"'>ParaView-3.14.1</span><o:p></o:p></p>
  </td>
 </tr>
 <tr style='min-height:14.25pt'>
  <td width=307 nowrap valign=bottom style='width:230.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  style='font-size:11.0pt;font-family:"BMWTypeLight","sans-serif"'>UseOffscreenRenderingForScreenshots=1</span><o:p></o:p></p>
  </td>
  <td width=107 nowrap valign=bottom style='width:80.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:center'><span style='font-size:11.0pt;font-family:"BMWTypeLight","sans-serif"'>50.68</span><o:p></o:p></p>
  </td>
  <td width=119 nowrap valign=bottom style='width:89.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:center'><span style='font-size:11.0pt;font-family:"BMWTypeLight","sans-serif"'>327.39</span><o:p></o:p></p>
  </td>
  <td width=119 nowrap valign=bottom style='width:89.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:center'><span style='font-size:11.0pt;font-family:"BMWTypeLight","sans-serif"'>322.7</span><o:p></o:p></p>
  </td>
  <td width=119 nowrap valign=bottom style='width:89.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:center'><span style='font-size:11.0pt;font-family:"BMWTypeLight","sans-serif"'>324.77</span><o:p></o:p></p>
  </td>
 </tr>
 <tr style='min-height:14.25pt'>
  <td width=307 nowrap valign=bottom style='width:230.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  style='font-size:11.0pt;font-family:"BMWTypeLight","sans-serif"'>UseOffscreenRenderingForScreenshots=0</span><o:p></o:p></p>
  </td>
  <td width=107 nowrap valign=bottom style='width:80.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:center'><span style='font-size:11.0pt;font-family:"BMWTypeLight","sans-serif"'>41.21</span><o:p></o:p></p>
  </td>
  <td width=119 nowrap valign=bottom style='width:89.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:center'><span style='font-size:11.0pt;font-family:"BMWTypeLight","sans-serif"'>43.94</span><o:p></o:p></p>
  </td>
  <td width=119 nowrap valign=bottom style='width:89.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:center'><span style='font-size:11.0pt;font-family:"BMWTypeLight","sans-serif"'>38.66</span><o:p></o:p></p>
  </td>
  <td width=119 nowrap valign=bottom style='width:89.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:center'><span style='font-size:11.0pt;font-family:"BMWTypeLight","sans-serif"'>38.62</span><o:p></o:p></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>For all the tests performed, I have been using pvbatch
renderSpheres.py. I could recover for all PV versions 3.10.1, 3.12.0 and 3.14.1
the same rendering time as with UseOffscreenRenderingForScreenshots=1 by
running pvbatch --use-offscreen-rendering renderSpheres.py, which is allegedly
not supposed to work unless one uses software rendering. Is there any reason
why I should not set the flag UseOffscreenRenderingForScreenshots &nbsp;to
&nbsp;1 when running PV compiled against OpenGL in batch?</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Also, with UseOffscreenRenderingForScreenshots=1, for each
screenshot, a rendering window opens and closes every time, wherea with
UseOffscreenRenderingForScreenshots=0, the rendering window stays open the
whole time and rendering is much faster.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Also , out of curiosity, I have recompiled today morning the PV
versions 3.8.1 &amp; 3.14.1 without MPI support and with the same Qt, Python
and gcc version (resp 4.6.4, 2.7.2, 4.5.3). Now the results are the following: </span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=532
 style='width:399.0pt;border-collapse:collapse'>
 <tr style='min-height:14.25pt'>
  <td width=307 nowrap valign=bottom style='width:230.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'></td>
  <td width=107 nowrap valign=bottom style='width:80.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  style='font-size:11.0pt;font-family:"BMWTypeLight","sans-serif"'>ParaView
  3.8.1</span><o:p></o:p></p>
  </td>
  <td width=119 nowrap valign=bottom style='width:89.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  style='font-size:11.0pt;font-family:"BMWTypeLight","sans-serif"'>ParaView-3.14.1</span><o:p></o:p></p>
  </td>
 </tr>
 <tr style='min-height:14.25pt'>
  <td width=307 nowrap valign=bottom style='width:230.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  style='font-size:11.0pt;font-family:"BMWTypeLight","sans-serif"'>UseOffscreenRenderingForScreenshots=1</span><o:p></o:p></p>
  </td>
  <td width=107 nowrap valign=bottom style='width:80.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:center'><span style='font-size:11.0pt;font-family:"BMWTypeLight","sans-serif"'>291.11</span><o:p></o:p></p>
  </td>
  <td width=119 nowrap valign=bottom style='width:89.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:center'><span style='font-size:11.0pt;font-family:"BMWTypeLight","sans-serif"'>1099.74</span><o:p></o:p></p>
  </td>
 </tr>
 <tr style='min-height:14.25pt'>
  <td width=307 nowrap valign=bottom style='width:230.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  style='font-size:11.0pt;font-family:"BMWTypeLight","sans-serif"'>UseOffscreenRenderingForScreenshots=0</span><o:p></o:p></p>
  </td>
  <td width=107 nowrap valign=bottom style='width:80.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:center'><span style='font-size:11.0pt;font-family:"BMWTypeLight","sans-serif"'>52.42</span><o:p></o:p></p>
  </td>
  <td width=119 nowrap valign=bottom style='width:89.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:center'><span style='font-size:11.0pt;font-family:"BMWTypeLight","sans-serif"'>36.19</span><o:p></o:p></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>The PV version 3.14.1 when setting
UseOffscreenRenderingForScreenshots to 0 fails to generate a correct rendering
(see below) while two spheres should be visible:</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><img
border=0 width=452 height=452 id="_x0000_i1026"
src="cid:image002.jpg@01CD19A8.03F9B8F0" alt="spheres--phi=0--theta=0.jpg"></span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>For me, the only obvious reason for the performance difference
here seems to be compilation without MPI support, but I will need to check that
in more details.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Concerning the performance hit with MPI in parallel, I found
that PV 3.8.1 was outperforming PV3.10.1 and PV3.12.0 when using
offscreen-rendering with MESA. I do not have exact numbers, but there was a
factor of 50% if I recall it correctly. As soon as I have more on this
subject,&nbsp; I'll let you know.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hope this helps.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Cheers,</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Frank.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Berk
Geveci [mailto:<a href="mailto:berk.geveci@kitware.com" target="_blank">berk.geveci@kitware.com</a>]
<br>
<b>Sent:</b> Dienstag, 10. April 2012 22:17<br>
<b>To:</b> Albina, Frank<br>
<b>Cc:</b> <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
<b>Subject:</b> Re: [Paraview] Rendering performance issue?</span><o:p></o:p></p>

</div>

<div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Just
out of curiosity, can you compile ParaView without MPI or use the ParaView
binaries from <a href="http://paraview.org" target="_blank">paraview.org</a>? I
am asking this because we have been tracking down a nasty rendering performance
issue that only shows up when ParaView is linked against MPI.<o:p></o:p></p>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'>-berk&nbsp;<o:p></o:p></p>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>On
Tue, Apr 10, 2012 at 11:32 AM, Albina, Frank &lt;<a
href="mailto:frank.albina@sauber-motorsport.com" target="_blank">frank.albina@sauber-motorsport.com</a>&gt;
wrote:<o:p></o:p></p>

<div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>Dear ParaView users &amp;
developers,</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>I am trying to reduce the
time spent in performing generic 3D surface rendering. A lot has been achieved by
using ParaView driven by python scripting already but actually I'd like to
achieve more. At the time being, all rendering is performed using CPU rendering
with the MESA libraries and I have started investigating if it could be worth
performing the rendering using GPUs instead of using N CPUs in parallel.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>For the purpose of checking
the GPU performance over CPUs, I have devised a simple benchmark with a python
script which drives the surface rendering. The script performs the generation
of 60 images and dumps them onto disk in JPEG format. When performing this
task, I have been tumbling upon the following rendering times for the
generation of the aforementioned 60 images, using different versions of
paraview on an &quot;old&quot; workstation, which is my guinea pig for this
benchmark:</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=468
 style='width:351.0pt;border-collapse:collapse'>
 <tr style='min-height:14.25pt'>
  <td width=119 nowrap valign=bottom style='width:89.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  style='font-family:"BMWTypeLight","sans-serif"'>Paraview 3.8.1</span><o:p></o:p></p>
  </td>
  <td width=120 nowrap valign=bottom style='width:90.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  style='font-family:"BMWTypeLight","sans-serif"'>Paraview 3.10.1</span><o:p></o:p></p>
  </td>
  <td width=115 nowrap valign=bottom style='width:86.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  style='font-family:"BMWTypeLight","sans-serif"'>Paraview 3.12.0</span><o:p></o:p></p>
  </td>
  <td width=115 nowrap valign=bottom style='width:86.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  style='font-family:"BMWTypeLight","sans-serif"'>Paraview 3.14.1</span><o:p></o:p></p>
  </td>
 </tr>
 <tr style='min-height:14.25pt'>
  <td width=119 nowrap valign=bottom style='width:89.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:center'><span style='font-family:"BMWTypeLight","sans-serif"'>138.12s</span><o:p></o:p></p>
  </td>
  <td width=120 nowrap valign=bottom style='width:90.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:center'><span style='font-family:"BMWTypeLight","sans-serif"'>591.06s</span><o:p></o:p></p>
  </td>
  <td width=115 nowrap valign=bottom style='width:86.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:center'><span style='font-family:"BMWTypeLight","sans-serif"'>592.53s</span><o:p></o:p></p>
  </td>
  <td width=115 nowrap valign=bottom style='width:86.0pt;padding:0cm 3.5pt 0cm 3.5pt;
  min-height:14.25pt'>
  <p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:center'><span style='font-family:"BMWTypeLight","sans-serif"'>594.10s</span><o:p></o:p></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>What is striking is that the
rendering time <u>is 4 times less(!)</u> with PV v3.8.1 than with all subsequent
versions. I had already noticed something similar when running MESA on
dissimilar architectures, but I assumed that the culprit were the MESA
libraries used. Here, the HW and libraries are the same, so I am enclined to
believe that I am missing something here in the general rendering settings
which do not affect PV v3.8.1 but induce a big performance hit for all PV
versions above 3.10. Is anybody aware of rendering settings which could induce
such a performance difference?</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>BTW, for each rendering, a
window opens with the OpenGL tag in the window title bar, so I am quite sure
that I am not using any SW rendering, all the more as all the PV versions I
have compiled have VTK_OPENGL_HAS_OSMESA set to off.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>A few more details concerning
the test I have been running:</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>&nbsp;- Workstation: Linux
workstation with SuSE SLED 10</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;2 x Intel Xeon Dual core 5160&nbsp; @ 3.00GHz</span><span lang=EN-US
style='font-family:"BMWTypeLight","sans-serif"'> </span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2 x NVIDIA Quadro FX3500 (NV71GL chipset)</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>&nbsp;- Paraview version 3.8.1,
3.10.1, 3.12.0 and 3.14.1 were compiled with OpenGL support, Qt v4.6.x, python
v2.7, OpenMPI v1.4.x using the GCC compiler v4.5.x.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>&nbsp;- The script is run
using pvpython (and not pvbatch) in order to force the assignement of the
graphics card:</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>&nbsp;&nbsp;&nbsp; pvserver
-display localhost:0.0 </span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>&nbsp;&nbsp; Then the
rendering script runs with pvpython from the command line. Within the
script,&nbsp; a Connect(&quot;localhost&quot;,11111) forces the connection to
the pvserver running on localhost.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>Any suggestions welcome.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>Best regards </span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'>Frank Albina.</span><o:p></o:p></p>

</div>

</div>

<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a
href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><o:p></o:p></p>

</div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p>

</div>

</div>

</div>

</div>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a
href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><o:p></o:p></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</div>

</body>

</html>