[vtkusers] Calculating frame rate
Bill Lorensen
bill.lorensen at gmail.com
Wed Mar 24 15:11:54 EDT 2010
A FrameRateWidget seems like a nice addition.
On Wed, Mar 24, 2010 at 11:53 AM, David Doria <daviddoria+vtk at gmail.com> wrote:
> On Wed, Mar 24, 2010 at 2:25 PM, Francois Bertel
> <francois.bertel at kitware.com> wrote:
>>
>> You don't want to measure your framerate all the time because
>> WaitForCompletion() is actually a call to glFinish() which is
>> necessary for accurate measurement but could kill overall performance
>> has it prevents the CPU thread for doing subsequent operations
>> (blocking call) until the GPU is done.
>>
>> I usually use it in a performance test with an explicit loop over
>> multiple render calls and compute the average time.
>
> I agree you wouldn't want to measure it all the time, but you could do
> renderWindow->ComputeFrameRateOn() or something like that. Or even a frame
> rate widget that does everything that Darshan was looking for (display the
> framerate in a TextActor) would be very nice.
> Thanks,
>
> David
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK 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