Map rendering method and device, electronic equipment and storage medium

By performing performance evaluation and dynamic adjustment of the device, the problem that map rendering technology cannot adapt to the performance of different devices is solved, and smooth experience and resource optimization on different devices are achieved.

CN119206026APending Publication Date: 2024-12-27ZHIDAO NETWORK TECH (BEIJING) CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411276303.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

Existing map rendering technologies cannot automatically adapt according to the hardware performance of different devices, resulting in poor user experience on low-performance devices, wasted resources on high-performance devices, and performance bottlenecks may occur when rendering high-resolution maps.

Method used

By performing performance evaluation of the target device, saving performance parameters, and pre-processing of map data and texture strategy selection based on these parameters, dynamically adjusting the rendering process, including deleting and sparse data, selecting appropriate texture resolution and compression algorithms, Monitor device status and user operations in real time to optimize rendering strategies.

Benefits of technology

It achieves a smooth user experience on different devices, balances rendering quality and performance, avoids resource waste and performance bottlenecks, and improves rendering speed and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119206026A_ABST
    Figure CN119206026A_ABST
Patent Text Reader

Abstract

The invention discloses a map rendering method and device, electronic equipment and a storage medium, and the method comprises the steps: carrying out the performance evaluation of target equipment of to-be-rendered map data, and storing the performance parameters of the target equipment; according to the performance parameters of the target device, the to-be-rendered map data is preprocessed, and preprocessing at least comprises deleting and / or thinning the map data; according to the performance parameters of the target devices, texture strategy selection and dynamic adjustment of map data are carried out, the map rendering process is optimized according to the preprocessing result, the texture strategy selection is used for providing corresponding texture resolution options for the target devices with different performances, and the texture resolution options are used for providing texture resolution options for the target devices with different performances. The dynamic adjustment is used for monitoring a target equipment state and / or user operation in real time and dynamically adjusting a rendering strategy. On one hand, the performance of the target equipment is considered to realize automatic adaptation of the map rendering strategy, on the other hand, the equipment state and the user operation are monitored in real time, the rendering strategy is dynamically adjusted, and smooth experience is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of map rendering technology, and in particular to a map rendering method, device, electronic device, and storage medium. Background Art

[0002] Map rendering is a common requirement on mobile devices and desktop computers, but the hardware performance of different devices varies significantly.

[0003] When rendering maps, a unified map rendering strategy is usually adopted without considering differences in device performance. As a result, users may not be able to enjoy high-quality map services on low-performance devices. Specifically, the problems include:

[0004] First, there is a performance mismatch, and a unified rendering strategy cannot meet the needs of devices with different performance.

[0005] Secondly, the user experience is inconsistent. On low-performance devices, users may experience freezes and delays, affecting the user experience.

[0006] Finally, there is a waste of resources. On high-performance devices, there may be an excess of resources, while on low-performance devices, there may be insufficient resources. Similarly, if a low-performance device is rendering a high-resolution map, it may encounter a performance bottleneck, resulting in slow rendering, freezing, or even crashing. Summary of the invention

[0007] The embodiments of the present application provide a map rendering method, apparatus, electronic device, and storage medium to automatically adapt the map rendering quality according to the device performance to ensure a smooth user experience on different devices.

[0008] The present application embodiment adopts the following technical solutions:

[0009] In a first aspect, an embodiment of the present application provides a map rendering method, wherein the method comprises:

[0010] Performing performance evaluation on a target device to render map data, and saving performance parameters of the target device, wherein the performance parameters of the target device include evaluation indicators, evaluation methods, and evaluation timing;

[0011] Preprocessing the map data to be rendered according to the performance parameters of the target device, wherein the preprocessing at least includes deleting and / or thinning the map data;

[0012] According to the performance parameters of the target device, the texture strategy of the map data is selected and dynamically adjusted, and the map rendering process is optimized according to the results of the preprocessing. The texture strategy selection is used to provide corresponding texture resolution options for target devices with different performances, and the dynamic adjustment is used to monitor the target device status and / or user operations in real time and dynamically adjust the rendering strategy.

[0013] In some embodiments, the method further comprises:

[0014] Monitor whether there is a trigger operation in the target device;

[0015] If a trigger operation is detected, the map data to be rendered needs to be reloaded, the texture strategy of the map data needs to be selected and dynamically adjusted, and the map rendering process needs to be optimized;

[0016] If no trigger operation is detected, there is no need to reload the map data to be rendered and continue to optimize the map rendering process.

[0017] In some embodiments, the step of performing performance evaluation on a target device to render map data and saving performance parameters of the target device includes:

[0018] Obtaining the CPU processor speed, GPU graphics processing capability, memory capacity and access speed of the target device;

[0019] Running a test program on the target device and determining the processing time and resource consumption of the target device by simulating a map rendering task;

[0020] Recording a preliminary evaluation result when the application is started in the target device, and periodically re-evaluating the application while it is running in the target device to obtain a re-evaluation result;

[0021] The above content is saved and used as the performance parameter of the target device.

[0022] In some embodiments, the preprocessing further includes data stratification and caching strategies, and the preprocessing of the map data to be rendered according to the performance parameters of the target device includes:

[0023] Deleting map data according to evaluation indicators in the performance parameters of the target device;

[0024] and / or,

[0025] thinning the map data according to the evaluation index in the performance parameter of the target device;

[0026] and / or,

[0027] According to the evaluation method in the performance parameters of the target device, a corresponding cache strategy or data tiering is selected.

[0028] In some embodiments, selecting and dynamically adjusting the texture strategy of the map data according to the performance parameters of the target device, and optimizing the map rendering process according to the preprocessing result, include:

[0029] Selecting a texture resolution and a compression algorithm according to the performance parameters of the target device;

[0030] According to the texture resolution and the compression algorithm, a texture strategy is selected according to a multi-level texture technique and / or a texture filtering technique.

[0031] In some embodiments, selecting and dynamically adjusting the texture strategy of the map data according to the performance parameters of the target device, and optimizing the map rendering process according to the preprocessing results include:

[0032] Real-time monitoring of changes in performance parameters of the target device and user operation feedback on the target device;

[0033] The rendering strategy is dynamically adjusted according to the changes and the operation feedback. The dynamic adjustment includes adaptive adjustment and a feedback loop. The adaptive adjustment is used to automatically adjust the rendering quality according to the current performance status of the target device and user needs. The feedback loop is used to optimize the adaptive adjustment through user feedback and system logs.

[0034] In some embodiments, optimizing the map rendering process according to the preprocessing result includes:

[0035] According to the result of the preprocessing, any one or more of algorithm optimization technology, LOD technology, batch processing technology, multi-threaded rendering technology, and energy consumption management technology are used to optimize the map rendering process.

[0036] In a second aspect, an embodiment of the present application further provides a map rendering device, wherein the device comprises:

[0037] An evaluation module, used to perform performance evaluation on a target device to render map data and save performance parameters of the target device, wherein the performance parameters of the target device include evaluation indicators, evaluation methods, and evaluation timing;

[0038] A preprocessing module, used for preprocessing the map data to be rendered according to the performance parameters of the target device, wherein the preprocessing at least includes deleting and / or thinning the map data;

[0039] The texture strategy and dynamic adjustment module is used to select and dynamically adjust the texture strategy of the map data according to the performance parameters of the target device, and optimize the map rendering process according to the results of the preprocessing. The texture strategy selection is used to provide corresponding texture resolution options for target devices with different performances, and the dynamic adjustment is used to monitor the target device status and / or user operations in real time and dynamically adjust the rendering strategy.

[0040] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor; and a memory arranged to store computer executable instructions, wherein the executable instructions, when executed, cause the processor to perform the above method.

[0041] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by an electronic device including multiple application programs, the electronic device executes the above method.

[0042] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: the performance of the target device to be rendered map data is evaluated and the performance parameters of the target device are saved. Then, the map data to be rendered is preprocessed according to the performance parameters of the target device, and the texture strategy of the map data is selected and dynamically adjusted according to the performance parameters of the target device, and the map rendering process is optimized according to the results of the preprocessing. Through the above method, a method for automatically adjusting the map rendering strategy according to the performance of the device is provided. The method evaluates the processing power of the device, and intelligently deletes, thins and adopts different texture drawing strategies for the map layer data to adapt to devices with different performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0044] Figure 1 A flowchart of a map rendering method in an embodiment of the present application;

[0045] Figure 2 This is a schematic diagram of the structure of a map rendering device in an embodiment of the present application;

[0046] Figure 3 This is a schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0048] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0049] The present application embodiment provides a map rendering method, such as Figure 1 As shown, a flowchart of a map rendering method in an embodiment of the present application is provided, and the method at least includes the following steps S110 to S130:

[0050] Step S110 , performing performance evaluation on the target device for rendering map data, and saving performance parameters of the target device, wherein the performance parameters of the target device include evaluation indicators, evaluation methods, and evaluation timing.

[0051] The target device for rendering the map data refers to the carrier for rendering the map data, which is not specifically limited in the embodiments of the present application and may be a mobile device, a PC device, etc., depending on the specific usage scenario.

[0052] The performance evaluation of the target device needs to be performed according to the predetermined evaluation index and the evaluation method. In addition, the performance evaluation of the target device needs to consider the impact of the device's own performance or the complexity of the map data itself on the evaluation method when rendering each frame of map data.

[0053] Save the performance parameters of the target device, for example, as global variables for later use.

[0054] Step S120: preprocessing the map data to be rendered according to the performance parameters of the target device, wherein the preprocessing at least includes deleting and / or thinning the map data.

[0055] If the performance parameters of the target device show that the performance of the target device itself is low, it is necessary to perform preprocessing such as intelligent deletion on the map data to be rendered. If the performance parameters of the target device show that the performance of the target device itself is high, in order to reduce possible excess resources, it is also necessary to perform preprocessing such as thinning on the map data to be rendered, so as to evenly distribute the resources in the target device.

[0056] Furthermore, when preprocessing the map data to be rendered, it may be considered to divide the map data into multiple levels, and then select and load a level suitable for the current device according to the performance evaluation result in the performance parameters of the target device.

[0057] Furthermore, when preprocessing the map data to be rendered, it may be considered to implement intelligent caching for frequently accessed areas to reduce the time for loading map data in the target device. For example, it can be known from the performance parameters of the target device and the user's usage habits that certain data is frequently called and rendered map data, and the target device may implement intelligent caching for frequently accessed areas.

[0058] Step S130, based on the performance parameters of the target device, select and dynamically adjust the texture strategy of the map data, and optimize the map rendering process according to the results of the preprocessing. The texture strategy selection is used to provide corresponding texture resolution options for target devices with different performances, and the dynamic adjustment is used to monitor the target device status and / or user operations in real time and dynamically adjust the rendering strategy.

[0059] The texture strategy of the map data is selected and dynamically adjusted according to the performance parameters of the target device. By selecting the texture strategy and dynamically adjusting the operation, the performance parameters of the target device can be matched as much as possible before the map is rendered. After that, the map rendering process is optimized according to the results of the preprocessing.

[0060] It should be noted that texture strategy selection can provide corresponding texture resolution options for target devices with different performance. For the target device, the intelligent matching texture strategy can match the computing power or performance of the target device itself while meeting the requirements of texture display.

[0061] It should be noted that dynamic adjustment can realize real-time monitoring of the target device status and / or user operations and dynamically adjust the rendering strategy. For the target device, dynamic adjustment can adaptively adjust the target device so that the target device complies with the user operation and the target device status (related to performance parameters).

[0062] Through the above method, the performance of the target device to be rendered with map data is evaluated, and the performance parameters of the target device are saved. Through the device performance evaluation, the map rendering strategy is automatically adapted without manual settings by the user.

[0063] Through the above method, the map data to be rendered is preprocessed according to the performance parameters of the target device, the texture strategy of the map data is selected and dynamically adjusted according to the performance parameters of the target device, and the map rendering process is optimized according to the results of the preprocessing. According to the performance of the device, the map data is intelligently deleted and thinned to reduce the burden of subsequent map rendering. At the same time, multi-level texture resolution options are provided for devices with different performance to balance rendering quality and performance.

[0064] Different from the problem in related technologies that a unified rendering strategy cannot meet the needs of devices with different performances, the above method performs performance evaluation on the target device for rendering map data and saves the performance parameters of the target device, which include evaluation indicators, evaluation methods, and evaluation timing. Through device performance evaluation, the automatic adaptation of the map rendering strategy is achieved.

[0065] Different from the related art, on low-performance devices, users may encounter freezes and delays, which affect the user experience. Through the above method, the map data to be rendered is preprocessed according to the performance parameters of the target device, and the preprocessing at least includes deleting and / or thinning the map data. Multi-level texture resolution options are provided for devices with different performance to balance rendering quality and performance.

[0066] Different from the related art, there may be a surplus of resources on high-performance devices, while there may be a problem of insufficient resources on low-performance devices. According to the performance parameters of the target device, the texture strategy of the map data is selected and dynamically adjusted, and the map rendering process is optimized according to the results of the preprocessing. The texture strategy selection is used to provide corresponding texture resolution options for target devices with different performances, and the dynamic adjustment is used to monitor the target device status and / or user operations in real time and dynamically adjust the rendering strategy. By monitoring the device status and user operations in real time, the rendering strategy is dynamically adjusted to ensure a smooth experience. This reduces the amount of calculation, improves the rendering speed, and reduces energy consumption.

[0067] In one embodiment of the present application, the method also includes: monitoring whether there is a trigger operation in the target device; if a trigger operation is detected, it is necessary to reload the map data to be rendered, select and dynamically adjust the texture strategy of the map data, and optimize the map rendering process; if no trigger operation is detected, it is not necessary to reload the map data to be rendered and continue to optimize the map rendering process.

[0068] Whether there is a trigger operation (selection of new data to be rendered or new user interaction operation) in the target device during monitoring. If a trigger operation is detected, it is necessary to reload the map data to be rendered, select and dynamically adjust the texture strategy of the map data, and optimize the map rendering process. Texture strategy selection and dynamic adjustment are necessary ways to render map data. Alternatively, if no trigger operation is detected, it is not necessary to reload the map data to be rendered and continue to optimize the map rendering process, that is, continue to save the map data rendering process.

[0069] In one embodiment of the present application, the target device to render map data is subjected to performance evaluation and performance parameters of the target device are saved, including: obtaining the processor speed of the CPU, the graphics processing capability of the GPU, the capacity of the memory and the access speed of the target device; running a test program on the target device and determining the processing time and resource consumption of the target device by simulating a map rendering task; recording a preliminary evaluation result when the application is started in the target device, and periodically re-evaluating the application while it is running in the target device to obtain a re-evaluation result; and saving the above content as the performance parameters of the target device.

[0070] The evaluation of performance parameters includes, but is not limited to, the processor speed of the CPU (Central Processing Unit), the graphics processing capability of the GPU (graphics processing unit), the memory capacity of the target device (related to its own performance), and the access speed of the target device (such as the speed of rendering map data).

[0071] An optional evaluation method is to use the built-in benchmark program, which simulates map rendering tasks and measures processing time and resource consumption.

[0072] An optional evaluation time is to perform a preliminary evaluation when the application is started, and re-evaluate periodically during the application operation to adapt to changes in the state of the target device. Considering the performance of the target device itself or the amount of map data, or the data volume of the queried map data belonging to the central city or the suburbs is likely to be different, so as to adapt to the target device.

[0073] The data collection process is as follows: record the evaluation results and combine them with the user's usage patterns (user habits) for subsequent intelligent adjustments. For example, the performance of the target device is divided into high, medium, and low, and different strategies are implemented by combining them with user habits.

[0074] In one embodiment of the present application, the preprocessing also includes data stratification and caching strategy, and the preprocessing of the map data to be rendered according to the performance parameters of the target device includes: deleting map data according to evaluation indicators in the performance parameters of the target device; and / or thinning the map data by vertices according to the evaluation indicators in the performance parameters of the target device; and / or selecting a corresponding caching strategy or data stratification according to the evaluation method in the performance parameters of the target device.

[0075] Identify and remove map details that are too complex for the performance of the current target device, such as high-resolution textures and complex geometry.

[0076] The algorithm is used to reduce the number of vertices in the map model to perform vertex thinning, reduce rendering complexity, and maintain visual quality.

[0077] Through the above method, map data can be intelligently deleted and thinned according to the performance of the target device to reduce the rendering burden.

[0078] According to the evaluation method in the performance parameters of the target device, the map data is divided into multiple levels for data stratification, and the level suitable for the current device is selected for loading according to the performance evaluation result. Alternatively, according to the evaluation method in the performance parameters of the target device, intelligent caching is implemented for frequently visited areas, and a caching strategy is implemented to reduce data loading time.

[0079] In one embodiment of the present application, the texture strategy selection and dynamic adjustment of map data are performed according to the performance parameters of the target device, and the map rendering process is optimized according to the preprocessing results, including: selecting texture resolution and compression algorithm according to the performance parameters of the target device; selecting a texture strategy according to the multi-level texture technology and / or texture filtering technology based on the texture resolution and the compression algorithm.

[0080] Determine the texture resolution. Choose an appropriate texture resolution based on the display capabilities and memory capacity of the target device to avoid excessive resource consumption.

[0081] By selecting a texture compression algorithm that is suitable for the current device performance, the compression rate and decompression time are balanced. For example, the time taken is determined according to the target device. It is understood that the compression algorithm is not specifically limited as long as it can meet the requirements.

[0082] Based on texture resolution and compression algorithm, multi-level texture details (Mipmap) are implemented to provide textures of different resolutions at different zoom levels, reducing the rendering burden.

[0083] Apply appropriate texture filtering techniques to filter textures to maintain image quality at different resolutions. You need to choose the resolution based on the device, adapt it according to the specified texture, and determine the current device performance in advance.

[0084] In one embodiment of the present application, the texture strategy of map data is selected and dynamically adjusted according to the performance parameters of the target device, and the map rendering process is optimized according to the preprocessing results, including: real-time monitoring of changes in the performance parameters of the target device and user operation feedback on the target device; dynamically adjusting the rendering strategy according to the changes and the operation feedback, the dynamic adjustment including adaptive adjustment and feedback loop, the adaptive adjustment is used to automatically adjust the rendering quality according to the current performance status of the target device and user needs, and the feedback loop is used to optimize the adaptive adjustment through user feedback and system logs.

[0085] Real-time monitoring of changes in the performance parameters of the target device refers to: real-time monitoring of the CPU and GPU usage, temperature, and battery status to predict performance bottlenecks.

[0086] It is also necessary to monitor the user's operation feedback on the target device in real time, and dynamically adjust rendering parameters, such as view update frequency and rendering details, according to the user's zoom, pan and rotation operations.

[0087] The adaptive adjustment is used to implement adaptive rendering technology, which automatically adjusts the rendering quality according to the current performance status and user needs.

[0088] The feedback loop is used to continuously optimize the dynamic adjustment algorithm through user feedback and system logs to improve response speed and accuracy. After the user feedback operation is completed, continue rendering and reload data rendering. User feedback includes but is not limited to: sliding, scrolling, etc.

[0089] In one embodiment of the present application, optimizing the map rendering process according to the result of the preprocessing includes: optimizing the map rendering process according to the result of the preprocessing by using any one or more of algorithm optimization technology, LOD technology, batch processing technology, multi-threaded rendering technology, and energy consumption management technology.

[0090] Adopt algorithm optimization technology: space segmentation algorithm such as quadtree or octree to reduce unnecessary rendering calculations. For the target device, select and dynamically adjust the texture strategy of map data according to the performance parameters of the target device, and use algorithm optimization technology to optimize the map rendering process according to the preprocessing results.

[0091] LOD technology: implements Level of Detail technology, dynamically adjusts the level of detail according to the distance between the user and the object. For the target device, according to the performance parameters of the target device, the LOD technology is used to optimize the map rendering process according to the preprocessing results.

[0092] Batch processing technology: merge multiple rendering calls into a single call to reduce the context switching overhead of the GPU. For the target device, according to the performance parameters of the target device, batch processing technology is used to optimize the map rendering process according to the preprocessing results.

[0093] Multi-threaded rendering technology: Utilize the parallel processing capabilities of multi-core CPUs and GPUs to distribute rendering tasks and improve rendering efficiency. For target devices, based on the performance parameters of the target devices, multi-threaded rendering technology is used to optimize the map rendering process according to the preprocessing results.

[0094] Energy management technology: Optimize algorithms to reduce energy consumption and extend battery life, especially on mobile devices. For target devices, according to the performance parameters of the target device, use energy management technology to optimize the map rendering process according to the preprocessing results.

[0095] Optimize the map rendering process based on any one or more of the above methods.

[0096] The present application embodiment also provides a map rendering device 200, such as Figure 2 As shown, a schematic diagram of the structure of a map rendering device in an embodiment of the present application is provided, wherein the map rendering device 200 comprises at least: an evaluation module 210, a preprocessing module 220, and a texture strategy and dynamic adjustment module 230, wherein:

[0097] In one embodiment of the present application, the evaluation module 210 is specifically used to: perform performance evaluation on a target device to render map data, and save performance parameters of the target device, wherein the performance parameters of the target device include evaluation indicators, evaluation methods, and evaluation timing.

[0098] The target device for rendering the map data refers to the carrier for rendering the map data, which is not specifically limited in the embodiments of the present application and can be a mobile device, a PC device, etc., depending on the specific usage scenario.

[0099] The performance evaluation of the target device needs to be performed according to the predetermined evaluation index and the evaluation method. In addition, the performance evaluation of the target device needs to consider the impact of the device's own performance or the complexity of the map data itself on the evaluation method when rendering each frame of map data.

[0100] Save the performance parameters of the target device, for example, as global variables for later use.

[0101] In one embodiment of the present application, the preprocessing module 220 is specifically used to: preprocess the map data to be rendered according to the performance parameters of the target device, and the preprocessing at least includes deleting and / or thinning the map data.

[0102] If the performance parameters of the target device show that the performance of the target device itself is low, it is necessary to perform preprocessing such as intelligent deletion on the map data to be rendered. If the performance parameters of the target device show that the performance of the target device itself is high, in order to reduce possible excess resources, it is also necessary to perform preprocessing such as thinning on the map data to be rendered, so as to evenly distribute the resources in the target device.

[0103] Furthermore, when preprocessing the map data to be rendered, it may be considered to divide the map data into multiple levels, and then select and load a level suitable for the current device according to the performance evaluation result in the performance parameters of the target device.

[0104] Furthermore, when preprocessing the map data to be rendered, it may be considered to implement intelligent caching for frequently accessed areas to reduce the time for loading map data in the target device. For example, it can be known from the performance parameters of the target device and the user's usage habits that certain data is frequently called and rendered map data, and the target device may implement intelligent caching for frequently accessed areas.

[0105] In one embodiment of the present application, the texture strategy and dynamic adjustment module 230 is specifically used to: select and dynamically adjust the texture strategy of the map data according to the performance parameters of the target device, and optimize the map rendering process according to the results of the preprocessing. The texture strategy selection is used to provide corresponding texture resolution options for target devices with different performances, and the dynamic adjustment is used to monitor the target device status and / or user operations in real time and dynamically adjust the rendering strategy.

[0106] The texture strategy of the map data is selected and dynamically adjusted according to the performance parameters of the target device. By selecting the texture strategy and dynamically adjusting the operation, the performance parameters of the target device can be matched as much as possible before the map is rendered. After that, the map rendering process is optimized according to the results of the preprocessing.

[0107] It should be noted that texture strategy selection can provide corresponding texture resolution options for target devices with different performance. For the target device, the intelligent matching texture strategy can match the computing power or performance of the target device itself while meeting the requirements of texture display.

[0108] It should be noted that dynamic adjustment can realize real-time monitoring of the target device status and / or user operations and dynamically adjust the rendering strategy. For the target device, dynamic adjustment can adaptively adjust the target device so that the target device complies with the user operation and the target device status (related to performance parameters).

[0109] In one embodiment of the present application, the method further includes:

[0110] Monitor whether there is a trigger operation in the target device;

[0111] If a trigger operation is detected, the map data to be rendered needs to be reloaded, the texture strategy of the map data needs to be selected and dynamically adjusted, and the map rendering process needs to be optimized;

[0112] If no trigger operation is detected, there is no need to reload the map data to be rendered and continue to optimize the map rendering process.

[0113] In one embodiment of the present application, the evaluation module 210 is also used to

[0114] Obtaining the CPU processor speed, GPU graphics processing capability, memory capacity and access speed of the target device;

[0115] Running a test program on the target device and determining the processing time and resource consumption of the target device by simulating a map rendering task;

[0116] Recording a preliminary evaluation result when the application is started in the target device, and periodically re-evaluating the application while it is running in the target device to obtain a re-evaluation result;

[0117] The above content is saved and used as the performance parameter of the target device.

[0118] In one embodiment of the present application, the preprocessing also includes data tiering and caching strategies. The preprocessing module 220 is also used to

[0119] Deleting map data according to evaluation indicators in the performance parameters of the target device;

[0120] and / or,

[0121] thinning the map data according to the evaluation index in the performance parameter of the target device;

[0122] and / or,

[0123] According to the evaluation method in the performance parameters of the target device, a corresponding cache strategy or data tiering is selected.

[0124] In one embodiment of the present application, the texture strategy and dynamic adjustment module 230 is further used to select a texture resolution and a compression algorithm according to the performance parameters of the target device;

[0125] According to the texture resolution and the compression algorithm, a texture strategy is selected according to a multi-level texture technique and / or a texture filtering technique.

[0126] In one embodiment of the present application, the texture strategy and dynamic adjustment module 230 is also used to

[0127] Real-time monitoring of changes in performance parameters of the target device and user operation feedback on the target device;

[0128] The rendering strategy is dynamically adjusted according to the changes and the operation feedback. The dynamic adjustment includes adaptive adjustment and a feedback loop. The adaptive adjustment is used to automatically adjust the rendering quality according to the current performance status of the target device and user needs. The feedback loop is used to optimize the adaptive adjustment through user feedback and system logs.

[0129] In one embodiment of the present application, the texture strategy and dynamic adjustment module 230 is also used to

[0130] According to the result of the preprocessing, any one or more of algorithm optimization technology, LOD technology, batch processing technology, multi-threaded rendering technology, and energy consumption management technology are used to optimize the map rendering process.

[0131] It can be understood that the above-mentioned map rendering device can implement the various steps of the map rendering method provided in the aforementioned embodiments, and the relevant explanations about the map rendering method are applicable to the map rendering device and will not be repeated here.

[0132] Figure 3 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Figure 3 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.

[0133] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0134] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.

[0135] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a map rendering device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:

[0136] Performing performance evaluation on a target device for rendering map data, and saving performance parameters of the target device, wherein the performance parameters of the target device include evaluation indicators, evaluation methods, and evaluation timing;

[0137] Preprocessing the map data to be rendered according to the performance parameters of the target device, wherein the preprocessing at least includes deleting and / or thinning the map data;

[0138] According to the performance parameters of the target device, the texture strategy of the map data is selected and dynamically adjusted, and the map rendering process is optimized according to the results of the preprocessing. The texture strategy selection is used to provide corresponding texture resolution options for target devices with different performances, and the dynamic adjustment is used to monitor the target device status and / or user operations in real time and dynamically adjust the rendering strategy.

[0139] The above application Figure 1The method performed by the map rendering device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in software form. The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in a decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0140] The electronic device may also perform Figure 1 A method for executing a map rendering device in the Figure 1 The functions of the illustrated embodiment will not be described in detail in the embodiments of the present application.

[0141] The present application also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by an electronic device including multiple application programs, enable the electronic device to execute Figure 1 The method performed by the map rendering device in the illustrated embodiment is specifically used to perform:

[0142] Performing performance evaluation on a target device for rendering map data, and saving performance parameters of the target device, wherein the performance parameters of the target device include evaluation indicators, evaluation methods, and evaluation timing;

[0143] Preprocessing the map data to be rendered according to the performance parameters of the target device, wherein the preprocessing at least includes deleting and / or thinning the map data;

[0144] According to the performance parameters of the target device, the texture strategy of the map data is selected and dynamically adjusted, and the map rendering process is optimized according to the results of the preprocessing. The texture strategy selection is used to provide corresponding texture resolution options for target devices with different performances, and the dynamic adjustment is used to monitor the target device status and / or user operations in real time and dynamically adjust the rendering strategy.

[0145] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0146] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0147] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0148] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1The steps for the functions specified in one or more boxes.

[0149] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0150] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0151] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0152] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0153] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0154] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A map rendering method, wherein: The method comprises: Performing performance evaluation on a target device to render map data, and saving performance parameters of the target device, wherein the performance parameters of the target device include evaluation indicators, evaluation methods, and evaluation timing; Preprocessing the map data to be rendered according to the performance parameters of the target device, wherein the preprocessing at least includes deleting and / or thinning the map data; According to the performance parameters of the target device, the texture strategy of the map data is selected and dynamically adjusted, and the map rendering process is optimized according to the results of the preprocessing. The texture strategy selection is used to provide corresponding texture resolution options for target devices with different performances, and the dynamic adjustment is used to monitor the target device status and / or user operations in real time and dynamically adjust the rendering strategy.

2. The method of claim 1, wherein: The method further comprises: Monitor whether there is a trigger operation in the target device; If a trigger operation is detected, the map data to be rendered needs to be reloaded, the texture strategy of the map data needs to be selected and dynamically adjusted, and the map rendering process needs to be optimized; If no trigger operation is detected, there is no need to reload the map data to be rendered and continue to optimize the map rendering process.

3. The method of claim 1, wherein: The performance evaluation of the target device to be rendered with map data and the storage of the performance parameters of the target device include: Obtaining the CPU processor speed, GPU graphics processing capability, memory capacity and access speed of the target device; Running a test program on the target device and determining the processing time and resource consumption of the target device by simulating a map rendering task; Recording a preliminary evaluation result when the application is started in the target device, and periodically re-evaluating the application while it is running in the target device to obtain a re-evaluation result; The above content is saved and used as the performance parameter of the target device.

4. The method of claim 1, wherein: The preprocessing also includes data stratification and caching strategies. The preprocessing of the map data to be rendered according to the performance parameters of the target device includes: Deleting map data according to evaluation indicators in the performance parameters of the target device; and / or, thinning the map data according to the evaluation index in the performance parameter of the target device; and / or, According to the evaluation method in the performance parameters of the target device, a corresponding cache strategy or data tiering is selected.

5. The method of claim 1, wherein: The selecting and dynamically adjusting the texture strategy of the map data according to the performance parameters of the target device, and optimizing the map rendering process according to the preprocessing result, include: Selecting a texture resolution and a compression algorithm according to the performance parameters of the target device; According to the texture resolution and the compression algorithm, a texture strategy is selected according to a multi-level texture technique and / or a texture filtering technique.

6. The method of claim 1, wherein: The selecting and dynamically adjusting the texture strategy of the map data according to the performance parameters of the target device, and optimizing the map rendering process according to the preprocessing result, include: Real-time monitoring of changes in performance parameters of the target device and user operation feedback on the target device; The rendering strategy is dynamically adjusted according to the changes and the operation feedback. The dynamic adjustment includes adaptive adjustment and a feedback loop. The adaptive adjustment is used to automatically adjust the rendering quality according to the current performance status of the target device and user needs. The feedback loop is used to optimize the adaptive adjustment through user feedback and system logs.

7. The method of claim 1, wherein: Optimizing the map rendering process according to the preprocessing result includes: According to the result of the preprocessing, any one or more of algorithm optimization technology, LOD technology, batch processing technology, multi-threaded rendering technology, and energy consumption management technology are used to optimize the map rendering process.

8. A map rendering device, wherein: The device comprises: An evaluation module, used to perform performance evaluation on a target device to render map data and save performance parameters of the target device, wherein the performance parameters of the target device include evaluation indicators, evaluation methods, and evaluation timing; A preprocessing module, used for preprocessing the map data to be rendered according to the performance parameters of the target device, wherein the preprocessing at least includes deleting and / or thinning the map data; The texture strategy and dynamic adjustment module is used to select and dynamically adjust the texture strategy of the map data according to the performance parameters of the target device, and optimize the map rendering process according to the results of the preprocessing. The texture strategy selection is used to provide corresponding texture resolution options for target devices with different performances, and the dynamic adjustment is used to monitor the target device status and / or user operations in real time and dynamically adjust the rendering strategy.

9. An electronic device, comprising: processor; as well as A memory arranged to store computer executable instructions, which when executed cause the processor to perform the method of any one of claims 1 to 7.

10. A computer-readable storage medium storing one or more programs, which, when executed by an electronic device including a plurality of application programs, causes the electronic device to execute any one of the methods of claims 1 to 7.

Citation Information

Cited By

  • CAE simulation result visualization system supporting multiple interaction modes

    CN119520909A

  • A CAE simulation result visualization system supporting multiple interactive modes

    CN119520909B

  • Large-scale map data dynamic thinning and fusion rendering system and method

    CN122132499A