Actually I don't know much about OpenGL either so your probably not much further off than I am.

RenderHeigtMap is called each frame and storing it in an array (or maybe display list) might speed it up. However, it is called each frame in the original c++ code and right now I only want to convert the tutorial, optimization comes later.