Expensive function call? lazarus / 13-General ---------------------------------------------------------------------- acp693 ยท 2010-02-10 15:29 Hi, I'm calling OpenGl functions and am wondering if using the following array notation could be expensive timewise? glVertex3d(geolist[g1].points[0, geolist[g1].triangles[0, k] -1] + (resvalreal[ plus3+geolist[g1].xyz[0, geolist[g1].triangles[0, k] -1]]*XSinArr ) + (resvalimag[ plus3+geolist[g1].xyz[0, geolist[g1].triangles[0, k] -1]]*XCosArr ), Points, triangles, resvalreal, resvalimag, XsinArr, and XcosArr are all arrays, plus3 is a scalar value. Best regards Albert edit: spaces added