Rendering frame rate control method and related device

By dynamically adjusting the rendering frame rate to match the processor load, the problem of processor resource usage by map rendering applications on vehicles is solved, ensuring the normal execution of tasks and improving user experience.

CN118608668APending Publication Date: 2024-09-06GREAT WALL MOTOR CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

When the map rendering application on the vehicle is running, the fixed frame rate setting causes the processor to occupy too much computing power, affecting the execution of other important tasks.

Method used

By judging the degree of processor load, the rendering frame rate is dynamically adjusted so that it decreases as the load level increases, ensuring that the rendering frame rate does not exceed the default frame rate and reducing the occupation of the processor by map rendering.

Benefits of technology

It effectively reduces the load on the processor caused by map rendering, ensures the normal operation of other tasks, and increases the rendering frame rate when the load is low to improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608668A
    Figure CN118608668A
Patent Text Reader

Abstract

The invention discloses a rendering frame rate control method and a related device, relates to the technical field of vehicle control, and obtains load data representing the load degree of a processor according to a configured acquisition strategy when judging that target software with map display runs in a current display interface. And processing the load data based on the configured load grade judgment strategy to obtain the load grade of the load data. And finally, the rendering frame rate of the target software is adjusted to a first rendering frame rate corresponding to the load level, the first rendering frame rate is reduced along with rising of the load level, and the maximum value in all the first rendering frame rates is not larger than the default rendering frame rate of the target software. According to the rendering frame rate control method, the rendering frame rate of the map can be dynamically adjusted according to the load condition of the processor, occupation of map rendering on the computing power of the processor is reduced when the load of the processor is relatively high, and timely processing of other important tasks 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 vehicle control technology, and in particular to a rendering frame rate control method and related devices. Background Art

[0002] At present, when applications that need to use maps on vehicles (such as vehicle navigation) are running, they all render maps according to the fixed frame rate set in the vehicle system. When the frame rate is set too high, it will occupy a lot of processor power, thus affecting the execution of other more important tasks. Summary of the invention

[0003] In view of the above problems, this application provides a rendering frame rate control method and related devices to reduce the processor usage of map rendering and ensure the normal operation of important tasks. The specific solution is as follows:

[0004] A first aspect of the present application provides a rendering frame rate control method, comprising:

[0005] Determine whether the target software is running in the current display interface;

[0006] If so, acquire load data representing the degree of processor load according to the configured acquisition strategy;

[0007] Processing the load data based on a configured load level determination strategy to obtain a load level of the load data;

[0008] The rendering frame rate of the target software is adjusted to a first rendering frame rate corresponding to the load level, wherein the first rendering frame rate decreases as the load level increases, and a maximum value of all first rendering frame rates is not greater than a default rendering frame rate of the target software.

[0009] In a possible implementation, the rendering frame rate control method further includes:

[0010] If the target software is not running in the current display interface, the rendering frame rate of the target software is adjusted to a second rendering frame rate, where the second rendering frame rate is less than a minimum value of all the first rendering frame rates.

[0011] In a possible implementation, the process of determining the first rendering frame rate includes:

[0012] Obtaining the working mode of the target software;

[0013] The first rendering frame rate is determined based on the working mode and the load level.

[0014] In a possible implementation, the load data includes a preset number of usage rates, and acquiring the load data representing the degree of processor load according to the configured acquisition strategy includes:

[0015] In a configured collection cycle, the usage rate of the processor is acquired for the preset number of times to obtain the usage rate of the preset number, and the preset number is not less than 2.

[0016] In a possible implementation, the processing of the load data based on the configured load level determination strategy to obtain the load level of the load data includes:

[0017] Determine whether the usage rates obtained for the last N times are all within the same usage rate range;

[0018] If so, the target load level corresponding to the usage rate interval is determined as the load level, N is an integer not less than 1, and the ratio of N to the preset number is not less than 0.5.

[0019] In a possible implementation, the load data further includes an average usage rate, and the acquiring the load data representing the processor load level according to the configured collection strategy further includes:

[0020] The average usage rate of the preset number is taken as an average to obtain the average usage rate.

[0021] In a possible implementation, the processing of the load data based on the configured load level determination strategy to obtain the load level of the load data includes:

[0022] A usage rate interval in which the average usage rate is located is determined, and a target load level corresponding to the usage rate interval is determined as the load level.

[0023] A second aspect of the present application provides a rendering frame rate control device, comprising:

[0024] The running status judgment module is used to judge whether the target software is running in the current display interface;

[0025] A load data acquisition module, used to acquire load data representing the degree of processor load according to a configured acquisition strategy when the running state judgment module determines that the target software is running in the current display interface;

[0026] a load level determination module, configured to process the load data based on a configured load level determination strategy to obtain a load level of the load data; and

[0027] A rendering frame rate adjustment module is used to adjust the rendering frame rate of the target software to a first rendering frame rate corresponding to the load level, wherein the first rendering frame rate decreases as the load level increases, and the maximum value of all first rendering frame rates is not greater than the default rendering frame rate of the target software.

[0028] A third aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:

[0029] The memory is used to store computer programs;

[0030] The processor is used to execute the computer program so that the electronic device can implement the rendering frame rate control method of the above-mentioned first aspect or any implementation method of the first aspect.

[0031] A fourth aspect of the present application provides a vehicle, comprising: the electronic device as described in the third aspect above.

[0032] The fifth aspect of the present application provides a computer program product, including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements the rendering frame rate control method of the first aspect or any implementation of the first aspect.

[0033] In a sixth aspect, the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the rendering frame rate control method of the first aspect or any implementation method of the first aspect.

[0034] By means of the above technical solution, the rendering frame rate control method provided by the present application, when it is determined that the map software is running in the current display interface, obtains the load data characterizing the degree of processor load according to the configured acquisition strategy. Then the current load level is obtained according to the corresponding relationship between the load level and the load data, and then the rendering frame rate is adjusted to the rendering frame rate corresponding to the current load level according to the corresponding relationship between the load level and the rendering frame rate. The rendering frame rate decreases with the increase of the load level, that is, it decreases with the increase of the processor load, and the maximum value of the rendering frame rate that can be supported will not exceed the default rendering frame rate of the target software. Thereby, the rendering frame rate of the map is dynamically adjusted according to the load of the processor, and the rendering frame rate of the map can be actively reduced when the processor load is high, reducing the occupation of the processor computing power by the map rendering, and ensuring the timely processing of other important tasks. At the same time, when the processor load is low, it can be rendered at a higher rendering frame rate to improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0036] Figure 1 A structural diagram of a rendering frame rate control system provided by this application;

[0037] Figure 2 A structural diagram of a terminal provided for this application;

[0038] Figure 3 A structural diagram of a server provided for this application;

[0039] Figure 4 The existing rendering frame rate setting flow chart provided for this application;

[0040] Figure 5 A flowchart of the rendering frame rate control method provided in this application;

[0041] Figure 6 This is a flowchart of the application of the rendering frame rate control method provided in this application;

[0042] Figure 7 A structural diagram of the rendering frame rate control device provided in this application;

[0043] Figure 8 This is a structural diagram of the electronic device provided for this application.

[0044] Reference numerals:

[0045] 100-terminal; 200-server; 110-RF unit; 120-memory; 130-input unit; 140-display unit; 150-camera; 160-audio circuit; 161-speaker; 162-microphone; 163-headphone jack; 170-processor; 180-external interface; 190-power supply; 200-server; 201-bus; 202-processor; 203-communication interface; 204-memory. DETAILED DESCRIPTION

[0046] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.

[0047] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0048] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0049] See also Figure 1 , Figure 1 A schematic diagram of a system architecture is shown. The system may include a terminal 100 and a server 200. The server 200 may include one or more servers ( Figure 1 In the example, a server is included, and the server 200 can provide the method provided in the embodiment of the present application for one or more terminals.

[0050] Among them, the terminal 100 can be installed with an ... application, the above application and the web page can provide an interface, the terminal 100 can receive relevant parameters input by the user on the rendering frame rate control interface, and send the above parameters to the server 200, the server 200 can obtain processing results based on the received parameters, and return the processing results to the terminal 100.

[0051] It should be understood that in some optional implementations, the terminal 100 can also complete the action of obtaining the processing result based on the received parameters by itself without the cooperation of the server, and the embodiments of the present application are not limited to this.

[0052] Next describe Figure 1 The product form of the mid-terminal 100;

[0053] The terminal 100 in the embodiment of the present application can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc., and the embodiment of the present application does not impose any limitation on this.

[0054] Figure 2An optional hardware structure diagram of the terminal 100 is shown.

[0055] refer to Figure 2 As shown, the terminal 100 may include a radio frequency unit 110, a memory 120, an input unit 130, a display unit 140, a camera 150 (optional), an audio circuit 160 (optional), a speaker 161 (optional), a microphone 162 (optional), an earphone jack 163 (optional), a processor 170, an external interface 180, a power supply 190 and other components. Those skilled in the art will appreciate that Figure 2 These are merely examples of terminals or multi-function devices and do not constitute limitations on the terminals or multi-function devices, which may include more or fewer components than those shown in the figures, or combinations of certain components, or different components.

[0056] The input unit 130 can be used to receive input digital or character information, and generate key signal input related to the user settings and function control of the portable multifunctional device. Specifically, the input unit 130 may include a touch screen 131 (optional) and / or other input devices 132. The touch screen 131 can collect the user's touch operations on or near it (such as the user's operation on or near the touch screen using any suitable object such as fingers, joints, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch screen can detect the user's touch action on the touch screen, convert the touch action into a touch signal and send it to the processor 170, and can receive and execute the command sent by the processor 170; the touch signal at least includes the touch point coordinate information. The touch screen 131 can provide an input interface and an output interface between the terminal 100 and the user. In addition, the touch screen can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic wave. In addition to the touch screen 131, the input unit 130 can also include other input devices. Specifically, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.

[0057] Among them, the input device 132 can receive input data and the like.

[0058] The display unit 140 may be used to display information input by the user or provided to the user, various menus of the terminal 100, interactive interfaces, file display, and / or playback of any multimedia file. In an embodiment of the present application, the display unit 140 may be used to display an interface for rendering frame rate control parameters, processing results, and the like.

[0059] The memory 120 can be used to store instructions and data. The memory 120 can mainly include an instruction storage area and a data storage area. The data storage area can store various data, such as multimedia files, texts, etc.; the instruction storage area can store software units such as operating systems, applications, instructions required for at least one function, or their subsets and extensions. It can also include a non-volatile random access memory; provide the processor 170 with hardware, software and data resources including management of computing and processing equipment, and support control software and applications. It is also used for the storage of multimedia files, and the storage of running programs and applications.

[0060] The processor 170 is the control center of the terminal 100. It uses various interfaces and lines to connect various parts of the entire terminal 100. By running or executing instructions stored in the memory 120 and calling data stored in the memory 120, it executes various functions of the terminal 100 and processes data, thereby controlling the terminal device as a whole. Optionally, the processor 170 may include one or more processing units; preferably, the processor 170 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application program, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 170. In some embodiments, the processor and the memory may be implemented on a single chip, and in some embodiments, they may also be implemented separately on separate chips. The processor 170 may also be used to generate corresponding operation control signals, send them to corresponding components of the computing and processing device, read and process data in the software, especially read and process data and programs in the memory 120, so that each functional module therein performs corresponding functions, thereby controlling the corresponding components to act according to the requirements of the instructions.

[0061] Among them, the memory 120 can be used to store software codes related to the rendering frame rate control method, the processor 170 can execute the steps of the rendering frame rate control method, and can also schedule other units (such as the above-mentioned input unit 130 and display unit 140) to implement corresponding functions.

[0062] The radio frequency unit 110 (optional) can be used for receiving and sending information or receiving and sending signals during a call, for example, after receiving the downlink information of the base station, it is sent to the processor 170 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, etc. In addition, the radio frequency unit 110 can also communicate with network devices and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (SMS), etc.

[0063] In this embodiment of the present application, the radio frequency unit 110 may send the collection frequency and the usage rate of each collection to the server 200 , and receive the processing result sent by the server 200 .

[0064] It should be understood that the radio frequency unit 110 is optional and can be replaced by other communication interfaces, such as a network port.

[0065] The terminal 100 also includes a power supply 190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 170 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.

[0066] The terminal 100 further includes an external interface 180 , which may be a standard Micro USB interface or a multi-pin connector, and may be used to connect the terminal 100 to communicate with other devices, or to connect a charger to charge the terminal 100 .

[0067] Although not shown, the terminal 100 may also include a flashlight, a wireless fidelity (WiFi) module, a Bluetooth module, sensors with different functions, etc., which are not described in detail here. Some or all of the methods described below may be applied in the following embodiments. Figure 2 In the terminal 100 shown.

[0068] Next describe Figure 1 The product form of the server 200;

[0069] Figure 3 A structural diagram of a server 200 is provided, such as Figure 3 As shown, the server 200 includes a bus 201, a processor 202, a communication interface 203, and a memory 204. The processor 202, the memory 204, and the communication interface 203 communicate with each other via the bus 201.

[0070] The bus 201 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0071] The processor 202 may be any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0072] The memory 204 may include a volatile memory, such as a random access memory (RAM). The memory 204 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard drive (HDD), or a solid state drive (SSD).

[0073] The memory 204 may be used to store software codes related to the rendering frame rate control method, and the processor 202 may execute the steps of the rendering frame rate control method of the chip, and may also schedule other units to implement corresponding functions.

[0074] It should be understood that the above-mentioned terminal 100 and server 200 can be centralized or distributed devices, and the processors in the above-mentioned terminal 100 and server 200 (such as processor 170 and processor 202) can be hardware circuits (such as application specific integrated circuit (ASIC), field-programmable gate array (FPGA), general-purpose processor, digital signal processor (DSP), microprocessor or microcontroller, etc.), or a combination of these hardware circuits. For example, the processor can be a hardware system with an instruction execution function, such as a CPU, DSP, etc., or a hardware system without an instruction execution function, such as an ASIC, FPGA, etc., or a combination of the above-mentioned hardware systems without an instruction execution function and hardware systems with an instruction execution function.

[0075] Reference Figure 4 As shown in the figure, the rendering frame rate of the map refers to the number of times the map is refreshed within 1 second in the display interface. The higher the frame rate, the more delicate the display effect, the better the user's visual experience, and the smoother the operation. For example, when the rendering frame rate of the map reaches 60 frames per second, smooth map operation can be provided and the display effect is better. However, a higher rendering frame rate will also take up more processor resources. Currently, the map rendering frame rate is a set fixed frequency. Depending on the working mode or operating mode, the rendering frame rate of the map in each scenario is also fixed. For example, the four scenarios for the specific use of the map are: navigation mode, normal display mode, animation, and gesture. Each scenario has a fixed rendering frequency.

[0076] When the frame rate is set high, a large amount of processor resources will be occupied, thus affecting the execution of other more important tasks and thus affecting the normal operation of the vehicle.

[0077] In order to solve the above problems, an embodiment of the present application provides a rendering frame rate control method. The rendering frame rate control method of the embodiment of the present application is described in detail below with reference to the accompanying drawings.

[0078] Reference Figure 5 , Figure 5 A flowchart of a rendering frame rate control method provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the rendering frame rate control method provided in the embodiment of the present application may include steps 501 to 504, and these steps are described in detail below.

[0079] 501. Determine whether the target software is running in the current display interface.

[0080] Specifically, the target software may include software that needs to display maps, such as navigation software on the vehicle, and the current display interface may be a display screen on the vehicle's center console that can provide human-computer interaction functions. Users can open and close navigation software and the like by clicking on the display screen. It is possible to determine whether the target software is running in the current display interface by identifying whether the target software is working in the foreground (running in the current display interface) or switched to the background. Taking the Android operating system currently used in the vehicle as an example, in determining whether the software is working in the foreground or the background, the running process can be enabled to obtain a list of currently running processes, and the attributes of each process in the process list can be traversed to determine whether it is a foreground process, and whether the process identifier is consistent with the identifier of the current application, thereby determining whether the target software is running in the foreground.

[0081] It is understandable that those skilled in the art may also use other methods to determine whether the software is working in the foreground, which will not be described in detail here.

[0082] 502. If yes, obtain load data representing the processor load level according to the configured acquisition strategy.

[0083] Specifically, the load data may be a utilization rate that characterizes the processor load condition. The processor utilization rate refers to the percentage of processor resources occupied in real time by the program during operation, and is a statistic of the CPU usage condition. This indicator can be used to show the CPU occupancy during the detection period. When collecting the utilization rate, the utilization rate may be collected every certain period of time, for example, every 3 seconds, and then collected continuously for a preset number of times, such as 2 times, 3 times, etc., to obtain the same utilization rate as the preset number of times. The obtained utilization rate data may be averaged, or may be used directly without further processing.

[0084] It is understandable that those skilled in the art may collect other load data that can characterize the processor load level according to actual needs, which will not be elaborated here.

[0085] 503. Process the load data based on the configured load level judgment strategy to obtain the load level of the load data.

[0086] Specifically, the corresponding load level can be set according to the load level of the processor. For example, the higher the load level of the processor, the higher the corresponding load level, and the corresponding map rendering frame rate should be lower. For example:

[0087] When the average usage rate is less than 60%, it is in the first load level. When the average usage rate is between 60% and 70%, it is in the second load level. When the average usage rate is between 70% and 80%, it is in the third load level. When the average usage rate is between 80% and 85%, it is in the fourth load level. When the average usage rate is greater than 85%, it is in the fifth load level. It can be seen that as the load level increases, the processor load level gradually increases.

[0088] It is understandable that those skilled in the art may adjust and set the number and judgment criteria of load levels as needed, and no limitation is made here.

[0089] 504. Adjust the rendering frame rate of the target software to a first rendering frame rate corresponding to the load level, wherein the first rendering frame rate decreases as the load level increases, and a maximum value of all first rendering frame rates is not greater than a default rendering frame rate of the target software.

[0090] Specifically, when the average usage rate is less than 60%, it is at the first load level. At this time, the processor load is low and can support the default rendering frame rate of the map to display the map. The corresponding map rendering frame rate can be the default frame rate such as 60 frames.

[0091] When the average usage is between 60% and 70%, it is at the second load level. At this time, the map rendering frame rate can be set to 80% of the default frame rate, such as 48 frames.

[0092] When the average usage rate is between 70% and 80%, it is at the third load level. At this time, the rendering frame rate of the map can be set to 60% of the default frame rate, such as 36 frames.

[0093] When the average usage rate is between 80% and 85%, it is at the fourth load level. At this time, the rendering frame rate of the map can be set to 40% of the default frame rate, such as 24 frames.

[0094] When the average usage rate is greater than 85%, it is at the fifth load level. At this time, the map rendering frame rate can be set to 20% of the default frame rate to reduce the usage of processor resources.

[0095] It should be noted that those skilled in the art can adjust the rendering frame rate corresponding to each load level, and no limitation is made here.

[0096] From the above, it can be seen that the rendering frame rate control method can dynamically adjust the rendering frame rate according to the processor load. On the basis that other tasks can be executed smoothly, the rendering frame rate of the map is guaranteed, and the map rendering frame rate is prevented from being too high when the processor load is high, affecting the operation of other tasks, thereby further ensuring the normal operation of the vehicle.

[0097] In a possible implementation, in order to further reduce the occupation of processor resources, when it is determined that the target software is not running in the current display interface (that is, the target software is running in the background), the rendering frame rate of the target software is adjusted to a second rendering frame rate, and the second rendering frame rate is less than the minimum value of all first rendering frame rates. For example, when it is determined that the target software is running in the background, the rendering frame rate can be set to 5 frames to maintain basic background rendering display.

[0098] It is understandable that those skilled in the art may adjust the second rendering frame rate according to different levels of processor background support, and no limitation is made here.

[0099] In a possible implementation, in order to support dynamic adjustment of corresponding rendering frame rates in different working modes of the software, the process of determining the first rendering frame rate may specifically include:

[0100] The working mode of the target software is obtained, and then a first rendering frame rate is determined based on the working mode and level.

[0101] Specifically, for example, in the gesture operation mode, the process of determining the first rendering frame rate is as follows:

[0102] When the average usage rate is less than 60%, it is at the first load level. At this time, the processor load is low and can support the default rendering frame rate of the map to display the map. The corresponding map rendering frame rate can be the default frame rate such as 60 frames.

[0103] When the average usage is between 60% and 70%, it is at the second load level. At this time, the map rendering frame rate can be set to 80% of the default frame rate, such as 48 frames.

[0104] When the average usage rate is between 70% and 80%, it is at the third load level. At this time, the rendering frame rate of the map can be set to 60% of the default frame rate, such as 36 frames.

[0105] When the average usage rate is between 80% and 85%, it is at the fourth load level. At this time, the rendering frame rate of the map can be set to 40% of the default frame rate, such as 24 frames.

[0106] When the average usage rate is greater than 85%, it is at the fifth load level. At this time, the map rendering frame rate can be set to 20% of the default frame rate to reduce the usage of processor resources.

[0107] When in navigation mode, the corresponding default frame rate is 40 frames, the process of determining the first rendering frame rate may be as follows:

[0108] When the average usage rate is less than 60%, it is at the first load level. At this time, the processor load is low and can support the default rendering frame rate of the map to display the map. The corresponding map rendering frame rate can be the default frame rate such as 40 frames.

[0109] When the average usage is between 60% and 70%, it is at the second load level. At this time, the map rendering frame rate can be set to 80% of the default frame rate, such as 32 frames.

[0110] When the average usage rate is between 70% and 80%, it is at the third load level. At this time, the rendering frame rate of the map can be set to 60% of the default frame rate, such as 24 frames.

[0111] When the average usage rate is between 80% and 85%, it is at the fourth load level. At this time, the rendering frame rate of the map can be set to 40% of the default frame rate, such as 16 frames.

[0112] When the average usage rate is greater than 85%, it is at the fifth load level. At this time, the map rendering frame rate can be set to 20% of the default frame rate, such as 8 frames, thereby reducing the occupation of processor resources.

[0113] It is understandable that those skilled in the art may adjust the default rendering frame rate in each working mode as needed, and no limitation is made here.

[0114] In a possible implementation, the load data includes a preset number of usage rates, and acquiring the load data representing the degree of processor load according to the configured acquisition strategy may include:

[0115] In a configured collection cycle, the usage rate of the processor is obtained a preset number of times to obtain a preset number of usage rates, and the preset number is not less than 2.

[0116] For example, the usage rate is collected every 2 seconds, and three usage rates are obtained for three consecutive times. The load data is processed based on the configured load level judgment strategy to obtain the load level of the load data, which may specifically include:

[0117] Determine whether the usage rates obtained for the last N times are all within the same usage rate range.

[0118] If so, the target load level corresponding to the usage rate interval is determined as the load level, where N is an integer not less than 1, and the ratio of N to the preset number is not less than 0.5.

[0119] Specifically, considering that the utilization rate changes over time, it may increase or decrease within a collection cycle. We can determine whether the utilization rates obtained in the last few times are within the range corresponding to a load level. If so, we can determine that the rendering frame rate needs to be adjusted to the rendering frame rate corresponding to the load level.

[0120] For example, if the usage rate is collected three times in a collection cycle, three usage rates are obtained, and it is determined whether the last two usage rates are both within the range corresponding to a load level. If they are, the rendering frame rate can be adjusted according to the corresponding load level. If not, it means that further detection is required, and the corresponding collection judgment will continue in the next collection cycle.

[0121] In a possible implementation, when the load data also includes an average usage rate, acquiring the load data representing the degree of processor load according to the configured collection strategy further includes:

[0122] The preset number of usage rates are averaged to obtain an average usage rate, and then the usage rate interval in which the average usage rate is located is determined, and the target load level corresponding to the usage rate interval is determined as the load level.

[0123] The specific implementation process can be found in the above-mentioned rendering frame rate adjustment process based on average usage. When the average usage is less than 60%, the processor load is low and can support the default rendering frame rate of the map for map display. The corresponding map rendering frame rate can be the default frame rate.

[0124] When the average usage is between 60% and 70%, the map rendering frame rate can be set to 80% of the default frame rate.

[0125] When the average usage is between 70% and 80%, the map rendering frame rate can be set to 60% of the default frame rate.

[0126] When the average usage is between 80% and 85%, the map rendering frame rate can be set to 40% of the default frame rate.

[0127] When the average usage rate is greater than 85%, the map rendering frame rate can be set to 20% of the default frame rate.

[0128] As a specific application of the above embodiment, refer to Figure 6 As shown, after the application is started, the CPU (processor) load monitoring module is started to monitor the processor load data in real time. According to the obtained CPU load situation and whether the application is in the foreground, the corresponding rendering frame rate is set according to the rendering frame rate control method.

[0129] A rendering frame rate control method provided by an embodiment of the present application is introduced above, and a device for executing the rendering frame rate control method will be introduced below.

[0130] See also Figure 7 , Figure 7 This is a schematic diagram of the structure of a rendering frame rate control device provided in an embodiment of the present application. Figure 7 As shown, the rendering frame rate control device includes:

[0131] The running status determination module 701 is used to determine whether the target software is running in the current display interface.

[0132] The load data acquisition module 702 is used to acquire load data representing the processor load level according to the configured acquisition strategy when the running state judgment module determines that the target software is running in the current display interface.

[0133] The load level determination module 703 is used to process the load data based on the configured load level judgment strategy to obtain the load level of the load data.

[0134] The rendering frame rate adjustment module 704 is used to adjust the rendering frame rate of the target software to a first rendering frame rate corresponding to the load level, wherein the first rendering frame rate decreases as the load level increases, and the maximum value of all first rendering frame rates is not greater than the default rendering frame rate of the target software.

[0135] In a possible implementation, the rendering frame rate control device also includes: a background frame rate rendering module, which is used to adjust the rendering frame rate of the target software to a second rendering frame rate if the target software is not running in the current display interface, and the second rendering frame rate is less than the minimum value of all first rendering frame rates.

[0136] In a possible implementation, the process of determining the first rendering frame rate in the frame rate adjustment module 704 includes:

[0137] Get the working mode of the target software;

[0138] The first rendering frame rate is determined based on the working mode and the load level.

[0139] In a possible implementation, the load data includes a preset number of usage rates, and acquiring the load data representing the degree of processor load according to the configured acquisition strategy includes:

[0140] In a configured collection cycle, the usage rate of the processor is acquired for the preset number of times to obtain the usage rate of the preset number, and the preset number is not less than 2.

[0141] In a possible implementation, the load level determination module 703 processes the load data based on the configured load level judgment strategy to obtain the load level of the load data, including:

[0142] Determine whether the usage rates obtained for the last N times are all within the same usage rate range;

[0143] If so, the target load level corresponding to the usage rate interval is determined as the load level, N is an integer not less than 1, and the ratio of N to the preset number is not less than 0.5.

[0144] In a possible implementation, the load data further includes an average usage rate, and the process in which the load data acquisition module 702 acquires the load data representing the degree of processor load according to the configured acquisition strategy further includes:

[0145] The average usage rate is obtained by averaging a preset number of usage rates.

[0146] In a possible implementation, the load level determination module 703 processes the load data based on the configured load level judgment strategy to obtain the load level of the load data, including:

[0147] A usage rate interval in which the average usage rate is located is determined, and a target load level corresponding to the usage rate interval is determined as the load level.

[0148] The present application also provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:

[0149] The memory is used to store computer programs;

[0150] The processor is used to execute the computer program so that the electronic device can implement the rendering frame rate control method described in the above embodiment.

[0151] refer to Figure 8 As shown, it shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present application. The electronic device in the embodiment of the present application may include but is not limited to fixed terminals such as mobile phones, laptops, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Figure 8 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0152] like Figure 8 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 to a random access memory (RAM) 803. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 803. The processing device 801, the ROM 802, and the RAM 603 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0153] Typically, the following devices may be connected to the I / O interface 805: input devices 806 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a memory card, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Figure 8 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0154] An embodiment of the present application also provides a vehicle, comprising: the electronic device as described in the above embodiment.

[0155] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any rendering frame rate control method provided in the embodiment of the present application.

[0156] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any rendering frame rate control method provided in the embodiment of the present application.

[0157] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.

[0158] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0159] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0160] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

Claims

1. A rendering frame rate control method, characterized in that: include: Determine whether the target software is running in the current display interface; If so, acquire load data representing the degree of processor load according to the configured acquisition strategy; Processing the load data based on a configured load level determination strategy to obtain a load level of the load data; The rendering frame rate of the target software is adjusted to a first rendering frame rate corresponding to the load level, wherein the first rendering frame rate decreases as the load level increases, and a maximum value of all first rendering frame rates is not greater than a default rendering frame rate of the target software.

2. The rendering frame rate control method according to claim 1, characterized in that: Also includes: If the target software is not running in the current display interface, the rendering frame rate of the target software is adjusted to a second rendering frame rate, where the second rendering frame rate is less than a minimum value of all the first rendering frame rates.

3. The rendering frame rate control method according to claim 1, characterized in that: The process of determining the first rendering frame rate includes: Obtaining the working mode of the target software; The first rendering frame rate is determined based on the working mode and the load level.

4. The rendering frame rate control method according to claim 1, characterized in that: The load data includes a preset number of usage rates, and the acquiring of the load data representing the degree of processor load according to the configured acquisition strategy includes: In a configured collection cycle, the usage rate of the processor is acquired for the preset number of times to obtain the usage rate of the preset number, and the preset number is not less than 2.

5. The rendering frame rate control method according to claim 4, characterized in that: The load level determination strategy based on the configuration processes the load data to obtain the load level of the load data, including: Determine whether the usage rates obtained for the last N times are all within the same usage rate range; If so, the target load level corresponding to the usage rate interval is determined as the load level, N is an integer not less than 1, and the ratio of N to the preset number is not less than 0.

5.

6. The rendering frame rate control method according to claim 4, characterized in that: The load data also includes an average usage rate, and the load data representing the processor load level is acquired according to the configured acquisition strategy, further including: The average usage rate of the preset number is taken as an average to obtain the average usage rate.

7. The frame rate control method according to claim 6, characterized in that: The load level determination strategy based on the configuration processes the load data to obtain the load level of the load data, including: A usage rate interval in which the average usage rate is located is determined, and a target load level corresponding to the usage rate interval is determined as the load level.

8. A rendering frame rate control device, characterized in that: include: The running status judgment module is used to judge whether the target software is running in the current display interface; A load data acquisition module, used to acquire load data representing the degree of processor load according to a configured acquisition strategy when the running state judgment module determines that the target software is running in the current display interface; A load level determination module, used to process the load data based on a configured load level determination strategy to obtain a load level of the load data; as well as A rendering frame rate adjustment module is used to adjust the rendering frame rate of the target software to a first rendering frame rate corresponding to the load level, wherein the first rendering frame rate decreases as the load level increases, and the maximum value of all first rendering frame rates is not greater than the default rendering frame rate of the target software.

9. An electronic device, characterized in that: The method comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the rendering frame rate control method as described in any one of claims 1 to 7.

10. A vehicle, characterized in that: include: The electronic device as claimed in claim 9.

Citation Information

Cited By

  • Control method, system and equipment for real-time rendering performance of application and medium

    CN119621306A