In my application, I have several functions that need temporary images. Inside the functions, I use imaqCreateImage() to allocate memory for the images.
What I am wondering: is there a performance loss when calling imaqCreateImage() several times each frame?
I thought about allocating memory to all temporary images just once, at startup, and then use the allocated memory over and over again each frame. Then imaqCreateImage() would only be called a few times when the applications starts. The downside is that my code then gets very messy with lots of global variables...
Comments? Thanks!
Torbjørn