CN-122023103-A - Tile-based dynamic rendering method and device, display system, medium and vehicle
Abstract
The invention relates to the technical field of vehicle-mounted display and discloses a tile-based dynamic rendering method, a device, a display system, a medium and a vehicle, wherein the method comprises the steps of obtaining a scene to be rendered of a current frame after dividing a screen space into a plurality of initial tiles, and calculating the complexity level of each initial tile according to the scene to be rendered; and respectively adding each current tile into a corresponding multi-level scheduling queue according to the complexity level, and executing rendering on the current tile based on the priority of the scheduling queue. According to the invention, by dynamically analyzing the complexity of the tiles, the rendering tasks can be adaptively divided and scheduled based on the complexity, so that the GPU resource utilization rate and the tile rendering efficiency are improved, the display delay caused by stacking of the rendering tasks is reduced, and the overall frame rate stability and the power consumption efficiency are improved.
Inventors
- GUO CUIYING
- ZHOU TIANLONG
Assignees
- 北京梧桐车联科技有限责任公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251209
Claims (12)
- 1. A tile-based dynamic rendering method, the method comprising: After dividing a screen space into a plurality of initial tiles, acquiring a scene to be rendered of a current frame, and calculating the complexity level of each initial tile according to the scene to be rendered; Performing granularity dynamic adjustment on the initial tile according to the complexity level to obtain a corresponding current tile; and respectively adding each current tile into a corresponding multi-level scheduling queue according to the complexity level, and executing rendering on the current tile based on the priority of the scheduling queue.
- 2. The method of claim 1, wherein the computing a complexity level for each of the initial tiles from the scene to be rendered comprises: load characteristic information of the initial tile is determined according to the scene to be rendered, wherein the load characteristic information comprises primitive coverage rate, pixel filling rate, transparent channel number and historical execution time; based on a preset weight coefficient, carrying out time weighted summation on the pixel coverage rate, the pixel filling rate, the transparent channel number and the history to obtain the rendering complexity of the initial tile; and determining the complexity level of the initial tile according to the rendering complexity and a preset complexity threshold.
- 3. The method according to any one of claims 1 or 2, wherein the dynamically adjusting granularity of the initial tile according to the complexity level, to obtain a corresponding current tile, includes: if the complexity level of any one initial tile is the first complexity level, subdividing the any one initial tile to obtain a plurality of current tiles with the first complexity level; If the complexity level of any one initial tile is the second complexity level, taking the any one initial tile as the current tile of the second complexity level; if the complexity levels of the initial tiles are all the third complexity level and the initial tiles are adjacent, combining the initial tiles to obtain a current tile with the third complexity level.
- 4. The method of claim 1, wherein the adding each of the current tiles to a corresponding multi-level scheduling queue according to the complexity level and performing rendering on the current tiles based on priorities of the scheduling queues comprises: constructing scheduling queues with different priorities, and putting each current tile into a corresponding scheduling queue according to the complexity level; Acquiring the current running state of a graphic processor, and determining the execution sequence and/or rendering strategy of scheduling queues with different priorities according to the current running state; And sequentially carrying out parallel rendering on the current tiles in each scheduling queue according to the execution sequence and/or the rendering strategy.
- 5. The method of any of claims 1 or 4, wherein after performing rendering on the current tile based on the priority of the dispatch queue, the method further comprises: acquiring performance parameters corresponding to the current tile, wherein the performance parameters at least comprise one of execution time, thread group distribution and occupancy rate, cache hit rate and execution branch number; determining a performance score for the current tile according to the performance parameter; And adjusting the complexity level of the current tile based on the performance score, taking the current frame as a previous frame, taking a next frame as the current frame, taking the current tile as the initial tile, returning to the step of acquiring a scene to be rendered of the current frame, and calculating the complexity level of each initial tile according to the scene to be rendered.
- 6. The method of claim 5, wherein after performing rendering on the current tile based on the priority of the dispatch queue, the method further comprises: And calculating a heat value of the current tile according to the performance parameter and the complexity level, and constructing an inter-frame heat cache table based on the heat value.
- 7. The method of claim 6, further comprising, prior to calculating the complexity level for each of the initial tiles from the scene to be rendered: And acquiring a historical frame heat value of the initial tiles in the inter-frame heat cache table, and judging whether complexity level of each initial tile needs to be calculated according to a scene to be rendered or not according to the historical frame heat value.
- 8. The method of claim 7, wherein the obtaining the historical frame hotness values of the initial tiles in the inter-frame hotness cache table and determining whether a complexity level of each of the initial tiles needs to be calculated from a scene to be rendered based on the historical frame hotness values comprises: acquiring a heat value of a previous frame and a heat value of a previous two frames of the initial tile; Calculating a heat value difference value between the heat value of the previous frame and the heat value of the previous two frames, and comparing the absolute value of the heat value difference value with a preset heat value threshold; If the absolute value of the heat value difference value is larger than the preset heat value threshold value, calculating the complexity level of the initial tile in the current frame according to the scene to be rendered, otherwise, taking the complexity level of the initial tile in the previous frame as the complexity level of the current frame.
- 9. A tile-based dynamic rendering device, the device comprising: The complexity calculation module is used for acquiring a scene to be rendered of a current frame after dividing a screen space into a plurality of initial tiles, and calculating the complexity level of each initial tile according to the scene to be rendered; The granularity adjustment module is used for dynamically adjusting the granularity of the initial tile according to the complexity level to obtain a corresponding current tile; And the tile rendering module is used for respectively adding each current tile into a corresponding multi-level scheduling queue according to the complexity level, and executing rendering on the current tile based on the priority of the scheduling queue.
- 10. A display system is characterized by comprising a graphic processor and a screen; The graphics processor comprises a memory and a processor, wherein the memory and the processor are in communication connection, the memory stores computer instructions, and the processor executes the computer instructions, so as to execute the tile-based dynamic rendering method according to any one of claims 1 to 8.
- 11. A computer-readable storage medium having stored thereon computer instructions for causing a computer to perform the tile-based dynamic rendering method of any one of claims 1 to 8.
- 12. A vehicle comprising a display system according to claim 10.
Description
Tile-based dynamic rendering method and device, display system, medium and vehicle Technical Field The invention relates to the technical field of vehicle-mounted display, in particular to a tile-based dynamic rendering method, a tile-based dynamic rendering device, a tile-based dynamic rendering system, a tile-based dynamic rendering medium and a vehicle. Background As the in-vehicle display system evolves toward high resolution (4K/8K), multi-level linkage (instrument/center control/AR-HUD), and dynamic environment awareness (ADAS visualization). On mobile devices and embedded platforms, a tiled Rendering architecture (TBR) is one of the mainstream schemes for both graphics performance and power consumption control. Tiled rendering divides the entire screen into a number of fixed-size tile areas, with the rendering pipeline processing the primitives and pixel data involved for each tile at a time. The method can effectively reduce the memory bandwidth consumption of the fragment coloring stage, improve the cache hit rate and reduce the power consumption, and is particularly suitable for equipment platforms with limited resources. On this basis, the delayed rendering (DEFERRED RENDERING) forms a Tile-Based DEFERRED RENDERING (TBDR) in combination with the tiled architecture, further deferring illumination calculation to the final stage of Tile level, and is widely used in multiple high-end mobile GPUs (e.g., powerVR, mali architectures). However, the existing TBDR rendering system generally adopts static tile division and sequential execution strategies, which mainly have the problems of unbalanced tile load and inflexible computing resource allocation caused by static tile division, and the problem of rigidity of tile scheduling caused by sequential execution strategies, so that tile rendering efficiency is low and performance is wasted. Disclosure of Invention The invention provides a tile-based dynamic rendering method, a tile-based dynamic rendering device, a tile-based dynamic rendering system, a tile-based dynamic rendering medium and a tile-based dynamic rendering vehicle, and aims to solve the problems of low tile rendering efficiency and low performance waste. According to the first aspect, the invention provides a tile-based dynamic rendering method, which comprises the steps of obtaining a scene to be rendered of a current frame after dividing a screen space into a plurality of initial tiles, calculating the complexity level of each initial tile according to the scene to be rendered, carrying out granularity dynamic adjustment on the initial tiles according to the complexity level to obtain corresponding current tiles, respectively adding each current tile into a corresponding multi-level scheduling queue according to the complexity level, and executing rendering on the current tiles based on the priority of the scheduling queue. According to the tile-based dynamic rendering method, after a screen space is divided into a plurality of initial tiles, complexity levels of the initial tiles are calculated according to a scene to be rendered of a current frame, granularity adjustment is conducted on each initial tile according to the complexity levels, the current tiles with the granularity adjusted are respectively added into corresponding multi-level scheduling queues according to the complexity levels, and tile rendering tasks are executed according to scheduling sequences. According to the invention, by dynamically analyzing the complexity of the tiles, the rendering tasks can be adaptively divided and scheduled based on the complexity, so that the GPU resource utilization rate and the tile rendering efficiency are improved, the display delay caused by stacking of the rendering tasks is reduced, and the overall frame rate stability and the power consumption efficiency are improved. In an alternative implementation mode, the complexity level of each initial tile is calculated according to a scene to be rendered, the method comprises the steps of determining load characteristic information of the initial tiles according to the scene to be rendered, wherein the load characteristic information comprises pixel coverage rate, pixel filling rate, transparent channel number and historical execution time, weighting and summing the pixel coverage rate, the pixel filling rate, the transparent channel number and the historical execution time based on preset weight coefficients to obtain the rendering complexity of the initial tiles, and determining the complexity level of the initial tiles according to the rendering complexity and a preset complexity threshold. According to the invention, the rendering complexity of each tile is calculated based on the scene to be rendered, so that the actual processing load of the tile in the current frame is represented, and the granularity of the tile and the scheduling sequence thereof are dynamically adjusted accordingly, so that reasonable distribution of rendering res