Is there any performance difference between:
size.width += this->font->chars[*ch].advance + this->font->chars[*ch].offset.x;
and
char_data *chars = this->font->chars;
while(...) {
size.width += chars[*ch].advance + chars[*ch].offset.x;
}
In first example are always read vars( this->font, font->chars ) within loop, or they are cached?