I'm not sure if this question will be any good, but it's something I've been wondering about a lot. I read in an AI programming text that virtual functions should be avoided whenever possible due to the overhead of looking for the function in the virtual function table. If this is the case, why does the engine described in GCC4 so dependent on virtual functions? Is the said overhead miniscule, or is it impossible to structure a great engine without as much virtual functions?
Macoy Madson-http://www.augames.f11.us/