LN_GLGUI: for-each optimizations