options menu now determines terrain shader. fixed tree rendering issue when using generic shader.
keep drawing terrain until the view distance is reached.
#ifdef switch added for using the PerfHUD ES frame profiler. off by default.