Comment on Unusual speed boost: size mattersComments−Qantourisc13yOr even better then double:inline void updateCachedWidth() { m_cachedWidth = computeWidth() * deviceScaleFactor(); }Ghee, was that line so hard to read ? No it's easier ! (Might have just been an example though.)−kalleboo13yI was also wondering why this wasn't done, it must have been an example that was reduced in size.−Rygu13yCame here to ask about this, found your answer. Thanks.
Comments
Or even better then double:
inline void updateCachedWidth() { m_cachedWidth = computeWidth() * deviceScaleFactor(); }
Ghee, was that line so hard to read ? No it's easier ! (Might have just been an example though.)
I was also wondering why this wasn't done, it must have been an example that was reduced in size.
Came here to ask about this, found your answer. Thanks.