Execution time difference in Console and plug-in. why? what are the factors do we need to count when


I have developed a project/plug-in for After Effects CS3 using CUDA2.3 SDK, ToolKit and Drivers with Quadro CX GPU card.

and I have also developed a Console application for the same project.

The execution time is different in both Console and plug-in.

on console it is 40ms and on plug-in it is 200ms.

What could be the reason for this time diff?

generally what are the factors do we need to count when a plugin is using CUDA? ( like in my case )

Please give your answers, it would be very helpful for me if this answer comes from the NVIDIA side?

How are you doing your timing for each?

On Console: (cuda API functions)

CUT_SAFE_CALL( cutCreateTimer(&timer));

CUT_SAFE_CALL( cutStartTimer(timer));

Kernel<<< x,y >>> ( … );


CUT_SAFE_CALL( cutStopTimer(timer));

float time = cutGetTimerValue(timer);

CUT_SAFE_CALL( cutDeleteTimer(timer));

On plug-in: (windows API )

float time = timeGetTime();

Kernel<<< x,y>>> ( … );


time = timeGetTime() - time;