The invention discloses a virtual
terrain rendering method for dynamically
processing and caching resources based on a GPU. The method comprises the following steps: constructing a
terrain grid according to a spatial
quadtree algorithm; gradually subdividing the
terrain and
cutting the view cone according to a viewpoint position, and creating GPU end caches for different terrain resources according to the resources positioned by the logic coordinates to realize different
shader programs; starting different rendering processes for different resources, and storing the processed resources in a cache opened up by a GPU; writing a
shader for
terrain rendering to create a drawing instruction for the remaining nodes after terrain
cutting, and submitting Draw Call to a GPU to complete drawing. According to the method, the computing power of the GPU is fully utilized, rendering work is submitted to the GPU,
processing work of rendering resources is submitted to the GPU to be completed, and therefore resource
processing work is greatly accelerated. Meanwhile, a whole set of GPU resource caching and access
algorithm is realized, the access performance of resources is accelerated, the rendering performance is further improved, and real-time rendering and flexible editing of super-large-scale virtual terrains become possible.