Re: Drawing speed
Re: Drawing speed
- Subject: Re: Drawing speed
- From: "Alastair J.Houghton" <email@hidden>
- Date: Tue, 8 Jul 2003 10:48:15 +0100
On Tuesday, July 8, 2003, at 06:43 am, Henry McGilton wrote:
I am in the same boat at the moment. I have created a Gouraud
shader that performs triangle subdivision to get to a place
where the delta of the coordinates or the delta of the colour
components is small.
It seems odd to avoid using OpenGL in this case, given that modern
graphics cards have hardware accelerated Gouraud shading.
So, my next step is to put in some timing brackets. I do not know
right now whether the time is being consumed in the triangle
subdivision
code (which is implemented as a pure C function), or in the Bezier
path code, or in the code that performs the colour interpolation.
So, I need to put in some timing code to find out who is doing what
to whom, how often, and how fast . . . I want to determine how much
time is taken creating colours, how much time is used in the
triangle subdivision, and how much time is used in defining the
Bezier paths.
Why not use gprof, or even Apple's CHUD tools? That way you don't need
to change your program to get the timing information you require, on
top of which you'll end up with a lot more information than you get
from bracketing function calls/message sends.
Kind regards,
Alastair.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.