<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161649</link>
    <title>MATLAB Central Newsreader - matlab slow in 3d visualization</title>
    <description>Feed for thread: matlab slow in 3d visualization</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 07 Jan 2008 14:31:01 -0500</pubDate>
      <title>matlab slow in 3d visualization</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161649#408335</link>
      <author>gianni schena</author>
      <description>&lt;br&gt;
why is matlab so slow in 3d visualization (isosurface, &lt;br&gt;
isonormals, volume rotation in 3d etc) ?&lt;br&gt;
&lt;br&gt;
it is Slow even with one of the best graphic cards &lt;br&gt;
(512 Mb gddr3 etc etc  &amp; lates drivers ) &lt;br&gt;
&lt;br&gt;
any idea ?&lt;br&gt;
&lt;br&gt;
thank you to all in advance &lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 08 Jan 2008 08:26:23 -0500</pubDate>
      <title>Re: matlab slow in 3d visualization</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161649#408482</link>
      <author>Tobias</author>
      <description>Which renderer do you use?&lt;br&gt;
Try set(handle_to_figure, 'renderer', 'opengl').&lt;br&gt;
&lt;br&gt;
Tobias&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;gt; why is matlab so slow in 3d visualization (isosurface, &lt;br&gt;
&amp;gt; isonormals, volume rotation in 3d etc) ?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; it is Slow even with one of the best graphic cards &lt;br&gt;
&amp;gt; (512 Mb gddr3 etc etc  &amp; lates drivers ) &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; any idea ?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; thank you to all in advance &lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Thu, 10 Jan 2008 10:54:02 -0500</pubDate>
      <title>Re: matlab slow in 3d visualization</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161649#408852</link>
      <author>gianni schena</author>
      <description>&lt;br&gt;
&lt;br&gt;
tobias&lt;br&gt;
&lt;br&gt;
set(GCF, 'Renderer','OpenGL'); &lt;br&gt;
is already there but rotate is extremly&lt;br&gt;
slow &lt;br&gt;
giaani&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Tobias &amp;lt;tc-ng-spam@gmx.de&amp;gt; wrote in message &lt;br&gt;
&amp;lt;5ugqcdF1ig1uuU1@mid.dfncis.de&amp;gt;...&lt;br&gt;
&amp;gt; Which renderer do you use?&lt;br&gt;
&amp;gt; Try set(handle_to_figure, 'renderer', 'opengl').&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Tobias&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; why is matlab so slow in 3d visualization (isosurface, &lt;br&gt;
&amp;gt; &amp;gt; isonormals, volume rotation in 3d etc) ?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; it is Slow even with one of the best graphic cards &lt;br&gt;
&amp;gt; &amp;gt; (512 Mb gddr3 etc etc  &amp; lates drivers ) &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; any idea ?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; thank you to all in advance &lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Thu, 10 Jan 2008 15:39:03 -0500</pubDate>
      <title>Re: matlab slow in 3d visualization</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161649#408888</link>
      <author>Sridhar Mahadevan</author>
      <description>"Gianni Schena" &amp;lt;schena@univ.trieste.it&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fltd35$8p6$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; why is matlab so slow in 3d visualization (isosurface, &lt;br&gt;
&amp;gt; isonormals, volume rotation in 3d etc) ?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; it is Slow even with one of the best graphic cards &lt;br&gt;
&amp;gt; (512 Mb gddr3 etc etc  &amp; lates drivers ) &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; any idea ?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; thank you to all in advance &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Which graphics card are you using? I have the same &lt;br&gt;
experience, and posted a note to this newsgroup a few days &lt;br&gt;
ago. &lt;br&gt;
&lt;br&gt;
I am using an NVidia 8600GT card with 512MB of DDR3 VRAM, &lt;br&gt;
and the card performs poorly on MATLAB's graphics benchmark &lt;br&gt;
(which does a 3D rotation of the MATLAB symbol). &lt;br&gt;
&lt;br&gt;
The card turns in stellar performance on Vista graphics &lt;br&gt;
benchmarks. I don't understand why it is slow in MATLAB &lt;br&gt;
(and a much slower ATI 2400 HD card turns out to be faster &lt;br&gt;
in MATLAB, but slower on Vista graphics benchmarks!). &lt;br&gt;
&lt;br&gt;
- Sridhar&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Thu, 15 May 2008 00:43:03 -0400</pubDate>
      <title>Re: matlab slow in 3d visualization</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161649#432113</link>
      <author>Dan </author>
      <description>My experience is the same with nvidia-based Quadro cards and&lt;br&gt;
an 8800 GT at home for some reason. &lt;br&gt;
&lt;br&gt;
My laptop running an ATI mobile GPU is much fast than both&lt;br&gt;
in the bench 3D performance. I cannot understand why and&lt;br&gt;
would like a fix too! :)&lt;br&gt;
&lt;br&gt;
"Sridhar Mahadevan" &amp;lt;mahadeva@cs.umass.edu&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fm5e6n$9qj$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "Gianni Schena" &amp;lt;schena@univ.trieste.it&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;lt;fltd35$8p6$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; why is matlab so slow in 3d visualization (isosurface, &lt;br&gt;
&amp;gt; &amp;gt; isonormals, volume rotation in 3d etc) ?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; it is Slow even with one of the best graphic cards &lt;br&gt;
&amp;gt; &amp;gt; (512 Mb gddr3 etc etc  &amp; lates drivers ) &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; any idea ?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; thank you to all in advance &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Which graphics card are you using? I have the same &lt;br&gt;
&amp;gt; experience, and posted a note to this newsgroup a few days &lt;br&gt;
&amp;gt; ago. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I am using an NVidia 8600GT card with 512MB of DDR3 VRAM, &lt;br&gt;
&amp;gt; and the card performs poorly on MATLAB's graphics benchmark &lt;br&gt;
&amp;gt; (which does a 3D rotation of the MATLAB symbol). &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The card turns in stellar performance on Vista graphics &lt;br&gt;
&amp;gt; benchmarks. I don't understand why it is slow in MATLAB &lt;br&gt;
&amp;gt; (and a much slower ATI 2400 HD card turns out to be faster &lt;br&gt;
&amp;gt; in MATLAB, but slower on Vista graphics benchmarks!). &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; - Sridhar&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Thu, 15 May 2008 09:35:07 -0400</pubDate>
      <title>Re: matlab slow in 3d visualization</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161649#432188</link>
      <author>tristram.scott@ntlworld.com (Tristram Scott)</author>
      <description>Gianni Schena &amp;lt;schena@univ.trieste.it&amp;gt; wrote:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; tobias&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; set(GCF, 'Renderer','OpenGL'); &lt;br&gt;
&amp;gt; is already there but rotate is extremly&lt;br&gt;
&amp;gt; slow &lt;br&gt;
&amp;gt; giaani&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
Which version of MATLAB do you use?&lt;br&gt;
&lt;br&gt;
If you have access to some older versions, try 6.5.  I find it better for&lt;br&gt;
3d graphics performance (although there are a few bugs which have been&lt;br&gt;
resolved in later versions).&lt;br&gt;
&lt;br&gt;
You could also try running with Java disabled.  There seems to be some&lt;br&gt;
overhead in the java based figures.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Dr Tristram J. Scott               &lt;br&gt;
Energy Consultant                 &lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Thu, 15 May 2008 13:03:02 -0400</pubDate>
      <title>Re: matlab slow in 3d visualization</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161649#432226</link>
      <author>Pasco Alquim</author>
      <description>tristram.scott@ntlworld.com (Tristram Scott) wrote in message &lt;br&gt;
&amp;lt;ftTWj.28967$66.11712@newsfe20.ams2&amp;gt;...&lt;br&gt;
&amp;gt; Gianni Schena &amp;lt;schena@univ.trieste.it&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; tobias&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; set(GCF, 'Renderer','OpenGL'); &lt;br&gt;
&amp;gt; &amp;gt; is already there but rotate is extremly&lt;br&gt;
&amp;gt; &amp;gt; slow &lt;br&gt;
&amp;gt; &amp;gt; giaani&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; Which version of MATLAB do you use?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If you have access to some older versions, try 6.5.  I find &lt;br&gt;
it better for&lt;br&gt;
&amp;gt; 3d graphics performance (although there are a few bugs which &lt;br&gt;
have been&lt;br&gt;
&amp;gt; resolved in later versions).&lt;br&gt;
&lt;br&gt;
Hi,&lt;br&gt;
It happens the same thing here. R13(6.5) is indeed faster but &lt;br&gt;
its is still 2 to 3 times slower than my 3 years old ATI card&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 16 May 2008 10:14:26 -0400</pubDate>
      <title>Re: matlab slow in 3d visualization</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161649#432453</link>
      <author>rych</author>
      <description>On May 15, 10:35 am, tristram.sc...@ntlworld.com (Tristram Scott)&lt;br&gt;
wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; You could also try running with Java disabled.  There seems to be some&lt;br&gt;
&amp;gt; overhead in the java based figures.&lt;br&gt;
&amp;gt;&lt;br&gt;
Yes, please, how can we disable Java? And how to find out which&lt;br&gt;
functions are java-based. Thanks.&lt;br&gt;
Igor&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 16 May 2008 16:52:42 -0400</pubDate>
      <title>Re: matlab slow in 3d visualization</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161649#432550</link>
      <author>tristram.scott@ntlworld.com (Tristram Scott)</author>
      <description>rych &amp;lt;rychphd@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; On May 15, 10:35 am, tristram.sc...@ntlworld.com (Tristram Scott)&lt;br&gt;
&amp;gt; wrote:&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; You could also try running with Java disabled.  There seems to be some&lt;br&gt;
&amp;gt;&amp;gt; overhead in the java based figures.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; Yes, please, how can we disable Java? And how to find out which&lt;br&gt;
&amp;gt; functions are java-based. Thanks.&lt;br&gt;
&amp;gt; Igor&lt;br&gt;
&lt;br&gt;
You can pass options to MATLAB on the command line wjhen you start it up. &lt;br&gt;
My favourite is -nojvm.  If I need java (e.g. for database toolbox or for&lt;br&gt;
report generator) then I instead use -nodesktop.&lt;br&gt;
&lt;br&gt;
matlab -nojvm&lt;br&gt;
&lt;br&gt;
I'm not sure of an easy way to list all the java based functions.   For the&lt;br&gt;
m files you can look through them with grep, but that won't help with p&lt;br&gt;
files.  It also would not find the functions which call these functions.&lt;br&gt;
&lt;br&gt;
Perhaps the best way is to turn java off, and then try your code and see if&lt;br&gt;
it fails.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Dr Tristram J. Scott               &lt;br&gt;
Energy Consultant                  &lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 23 May 2008 00:56:02 -0400</pubDate>
      <title>Re: matlab slow in 3d visualization</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161649#433624</link>
      <author>Dan </author>
      <description>OK, I figured out a solution for all of our NVIDIA-based PCs.&lt;br&gt;
&lt;br&gt;
A couple of things first though:&lt;br&gt;
&lt;br&gt;
- This has nothing to do with running java or not&lt;br&gt;
- This has nothing to do with the renderer really&lt;br&gt;
- This is not an issue of ATI vs. NVIDIA as I earlier speculated&lt;br&gt;
&lt;br&gt;
The real problem is that the Quadro and GeForce drivers&lt;br&gt;
(v169.xx) install with Vertical sync ON as the default. This&lt;br&gt;
basically throttles back the GPU so that it only rendered&lt;br&gt;
frames in sync with the refresh rate of your display;&lt;br&gt;
generally removing tearing which occurs when your display&lt;br&gt;
shows midframe between GPU renders.&lt;br&gt;
&lt;br&gt;
The Matlab bench algorithm simply turns on shading then&lt;br&gt;
alters the logo math and flushes the buffer with "drawnow"&lt;br&gt;
command. If vsync is on, the CPU is running through the loop&lt;br&gt;
but waiting each time for the gpu to render in sync with&lt;br&gt;
your display when it flushes. In my case this was limiting&lt;br&gt;
to about 60 fps (my LCD is @ 60Hz).&lt;br&gt;
&lt;br&gt;
Here is the code:&lt;br&gt;
set(task,'string','3-D')&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;drawnow&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;pause(1)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;evalc('logo');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;set(logoFig,'color',[.8 .8 .8])&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;s = findobj(logoFig, 'type','surf', 'tag',&lt;br&gt;
'TheMathWorksLogo');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;set(s,'facelighting','gouraud')&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;L1 = 40*membrane(1,25);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;L2 = 10*membrane(2,25);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;L3 = 10*membrane(3,25);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;mu = sqrt([9.6397238445, 15.19725192, 2*pi^2]);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;n = 40;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;tic&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;for j = 0:n&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;t = 0.5*(1-j/n);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;L = cos(mu(1)*t)*L1 + sin(mu(2)*t)*L2 + sin(mu(3)*t)*L3;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(s,'zdata',L)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;drawnow&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;end&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;times(k,6) = toc;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;pause(1)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;close(logoFig)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Turn off vsync in the nvidia control panel by setting&lt;br&gt;
advanced 3d settings option there to FORCE OFF. &lt;br&gt;
&lt;br&gt;
I notice no tearing in anything I do but drastically&lt;br&gt;
increased 3D bench scores which absolutely kill the ATI&lt;br&gt;
cards I have.&lt;br&gt;
&lt;br&gt;
I hope this helps!&lt;br&gt;
&lt;br&gt;
"Gianni Schena" &amp;lt;schena@univ.trieste.it&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fltd35$8p6$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; why is matlab so slow in 3d visualization (isosurface, &lt;br&gt;
&amp;gt; isonormals, volume rotation in 3d etc) ?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; it is Slow even with one of the best graphic cards &lt;br&gt;
&amp;gt; (512 Mb gddr3 etc etc  &amp; lates drivers ) &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; any idea ?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; thank you to all in advance &lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 17 Jun 2008 13:45:03 -0400</pubDate>
      <title>Re: matlab slow in 3d visualization</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161649#437880</link>
      <author>Aleks </author>
      <description>The "bench" got about twice as fast with vsync disabled, &lt;br&gt;
thnx&lt;br&gt;
&lt;br&gt;
"Dan " &amp;lt;daniel.salluce@ngc.com&amp;gt; wrote in message &amp;lt;g154n2&lt;br&gt;
$8mg$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; OK, I figured out a solution for all of our NVIDIA-based &lt;br&gt;
PCs.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; A couple of things first though:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; - This has nothing to do with running java or not&lt;br&gt;
&amp;gt; - This has nothing to do with the renderer really&lt;br&gt;
&amp;gt; - This is not an issue of ATI vs. NVIDIA as I earlier &lt;br&gt;
speculated&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The real problem is that the Quadro and GeForce drivers&lt;br&gt;
&amp;gt; (v169.xx) install with Vertical sync ON as the default. &lt;br&gt;
This&lt;br&gt;
&amp;gt; basically throttles back the GPU so that it only rendered&lt;br&gt;
&amp;gt; frames in sync with the refresh rate of your display;&lt;br&gt;
&amp;gt; generally removing tearing which occurs when your display&lt;br&gt;
&amp;gt; shows midframe between GPU renders.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The Matlab bench algorithm simply turns on shading then&lt;br&gt;
&amp;gt; alters the logo math and flushes the buffer with "drawnow"&lt;br&gt;
&amp;gt; command. If vsync is on, the CPU is running through the &lt;br&gt;
loop&lt;br&gt;
&amp;gt; but waiting each time for the gpu to render in sync with&lt;br&gt;
&amp;gt; your display when it flushes. In my case this was limiting&lt;br&gt;
&amp;gt; to about 60 fps (my LCD is @ 60Hz).&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Here is the code:&lt;br&gt;
&amp;gt; set(task,'string','3-D')&lt;br&gt;
&amp;gt;    drawnow&lt;br&gt;
&amp;gt;    pause(1)&lt;br&gt;
&amp;gt;    evalc('logo');&lt;br&gt;
&amp;gt;    set(logoFig,'color',[.8 .8 .8])&lt;br&gt;
&amp;gt;    s = findobj(logoFig, 'type','surf', 'tag',&lt;br&gt;
&amp;gt; 'TheMathWorksLogo');&lt;br&gt;
&amp;gt;    set(s,'facelighting','gouraud')&lt;br&gt;
&amp;gt;    L1 = 40*membrane(1,25);&lt;br&gt;
&amp;gt;    L2 = 10*membrane(2,25);&lt;br&gt;
&amp;gt;    L3 = 10*membrane(3,25);&lt;br&gt;
&amp;gt;    mu = sqrt([9.6397238445, 15.19725192, 2*pi^2]);&lt;br&gt;
&amp;gt;    n = 40;&lt;br&gt;
&amp;gt;    tic&lt;br&gt;
&amp;gt;    for j = 0:n&lt;br&gt;
&amp;gt;       t = 0.5*(1-j/n);&lt;br&gt;
&amp;gt;       L = cos(mu(1)*t)*L1 + sin(mu(2)*t)*L2 + sin(mu(3)*t)&lt;br&gt;
*L3;&lt;br&gt;
&amp;gt;       set(s,'zdata',L)&lt;br&gt;
&amp;gt;       drawnow&lt;br&gt;
&amp;gt;    end&lt;br&gt;
&amp;gt;    times(k,6) = toc;&lt;br&gt;
&amp;gt;    pause(1)&lt;br&gt;
&amp;gt;    close(logoFig)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Turn off vsync in the nvidia control panel by setting&lt;br&gt;
&amp;gt; advanced 3d settings option there to FORCE OFF. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I notice no tearing in anything I do but drastically&lt;br&gt;
&amp;gt; increased 3D bench scores which absolutely kill the ATI&lt;br&gt;
&amp;gt; cards I have.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I hope this helps!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; "Gianni Schena" &amp;lt;schena@univ.trieste.it&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;lt;fltd35$8p6$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; why is matlab so slow in 3d visualization (isosurface, &lt;br&gt;
&amp;gt; &amp;gt; isonormals, volume rotation in 3d etc) ?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; it is Slow even with one of the best graphic cards &lt;br&gt;
&amp;gt; &amp;gt; (512 Mb gddr3 etc etc  &amp; lates drivers ) &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; any idea ?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; thank you to all in advance &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
