[vtkusers] Render speed for rendering multiple renderwindows

Eigil Samset samset at bwh.harvard.edu
Fri Dec 16 07:52:58 EST 2005


No, what I am saying is;

For(int I=0;i<10;i++)
{
Starttime=OSUtils::currenttime();
Rw->Render();
Rendertime=OSUtils::currenttime()-starttime;
}

Takes X milliseconds every time (maybe more the first time, but usually
not).

For(int I=0;i<10;i++)
{
For(int j=0;i<2j++)
{
Starttime=OSUtils::currenttime();
Rw[j]->Render();
Rendertime=OSUtils::currenttime()-starttime;
}
}

Takes 10X milliseconds every time.

-----Original Message-----
From: vtkusers-bounces+samset=bwh.harvard.edu at vtk.org
[mailto:vtkusers-bounces+samset=bwh.harvard.edu at vtk.org] On Behalf Of Bruno
da Silva de Oliveira
Sent: Friday, December 16, 2005 7:15 AM
To: vtkusers at vtk.org
Subject: Re: [vtkusers] Render speed for rendering multiple renderwindows

You're saying that, measuring a simple call to Render() takes X seconds, 
while the same call inside a loop takes 10X seconds (ie, a loop of 5 
times takes 50X seconds)? I don't think that's possible. Are you sure 
you're measuring things correctly?

Regards,

Eigil Samset wrote:

> Sure, the factor 10 is not constant.
>
> In my case, I'm rendering 2 windows with a 2Mb model in each.
>
> Just one window rendered in 30ms, while when adding one windows, the 
> render time become 350ms for each.
>
> If there is no way around this, I can't use VTK for this application.
>
> Eigil
>
> ------------------------------------------------------------------------
>
> *From:* Mark Wyszomierski [mailto:markww at gmail.com]
> *Sent:* Thursday, December 15, 2005 4:57 PM
> *To:* Eigil Samset
> *Cc:* vtkusers at vtk.org
> *Subject:* Re: [vtkusers] Render speed for rendering multiple 
> renderwindows
>
> Wouldn't it depend on what data you're rendering? I've rendered 16
>
> wins at once when the data was just straight 2D images texture mapped
>
> onto quads. Rendering multiple volumes in different windows at once on
>
> the other hand might be quite the opposite. This has been my experience.
>
> Mark
>
> On 15 Dec 2005 16:46:48 -0500, *Eigil Samset* <samset at bwh.harvard.edu 
> <mailto:samset at bwh.harvard.edu>> wrote:
>
>
>     The time it takes to execute the call
>     Rw->Render();
>     on a vtkRenderWindow increases 10-fold when executing Render() on >2
>     renderwindow sequentially within a tight loop. Is the display possibly
>     cleared?
>     This is not desirable behavior in interactive applications.
>
>     Eigil
>
>
>     _______________________________________________
>     This is the private VTK discussion list.
>     Please keep messages on-topic. Check the FAQ at:
>     http://www.vtk.org/Wiki/VTK_FAQ
>     Follow this link to subscribe/unsubscribe:
>     http://www.vtk.org/mailman/listinfo/vtkusers
>
>------------------------------------------------------------------------
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>  
>

-- 
Bruno da Silva de Oliveira
bruno at esss.com.br
ESSS - Engineering Simulation and Scientific Software
http://www.esss.com.br

_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list