Virtual Map Tile Loading via Distance Parameter
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Large virtual maps generated from actual maps, such as Baidu Map or Auto Navi Map, face performance and memory pressure due to their large size, leading to poor display efficiency when all tile maps are loaded simultaneously.
Innovation Solution
A method and apparatus for determining a central area within a virtual map where a virtual object is located, updating the loading status of tile maps based on a distance parameter, and dividing the map into equally sized tile areas for efficient image processing and rendering, thereby reducing redundant map loading and improving display efficiency.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If all tile maps in the virtual map are loaded at a time, then the virtual map can be displayed completely, but great pressure is brought to performance and memory of the virtual application
Solution Approach 1:
The virtual map is divided into multiple tile maps, and only the necessary tile maps (those within the first area and second area) are loaded into memory at any given time. This segmentation allows the system to display a complete virtual map while maintaining low memory consumption by loading and unloading tile maps dynamically as the virtual object moves.
2Reliability
If all tile maps in the virtual map are loaded at a time, then the virtual map can be displayed completely, but great pressure is brought to performance of the virtual application
Solution Approach 1:
The system dynamically determines which tile maps to load based on the position of the virtual object and the distance parameter. The first area and second area are dynamically adjusted according to the virtual object's location, ensuring that only the necessary tile maps are loaded at any time, thus maintaining high performance efficiency while displaying the complete virtual map.
3Speed
If tile maps are updated frequently to follow virtual object movement, then display smoothness is improved, but redundant loading and unloading increases
Solution Approach 1:
The system pre-calculates the first area and second area based on the virtual object's position and the distance parameter before loading tile maps. This preliminary determination ensures that the necessary tile maps are loaded in advance, improving display smoothness while minimizing redundant loading and unloading operations.
Data Source
AI summary
Implementations of the present application describe updating tile maps in virtual maps, including the following. A central area in which a virtual object is located is determined in a first area. The first area comprises an area of a map that includes tile maps loaded into a virtual map including the virtual object. A border of the central area is located in the first area. A distance parameter is determined after the virtual object moves out of the central area. The distance parameter indicates relative distances of a tile map containing the virtual object relative to the central area in x-axis and y-axis directions. A loading status of a tile map not shared by the first area and a second area is updated based on the distance parameter. The second area comprises a map area determined after moving the first area based on the distance parameter.


