UI Frame Rendering With Parallel Drawing Task Grouping
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing rendering methods for user interfaces in electronic devices suffer from reduced efficiency as the size of terminal screens increase, leading to increased rendering content and processing inefficiencies.
Innovation Solution
A rendering method that groups drawing tasks of application interfaces into task groups and processes them using multiple drawing threads, while splitting render trees into non-overlapping space trees to maintain status operations and improve rendering efficiency.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If a serial process is used for rendering user interface tasks, then the rendering process is simple to implement, but the rendering efficiency is low when the terminal screen size increases and rendering content increases
Solution Approach 1:
The patent divides the rendering process into multiple independent drawing threads, each responsible for specific drawing tasks. The render tree is split into multiple space trees that can be processed in parallel, transforming a single serial rendering process into multiple concurrent drawing operations, thereby improving rendering efficiency without significantly increasing system complexity
Solution Approach 2:
The patent transitions from a single-threaded serial processing model to a multi-threaded parallel processing model by adding the dimension of concurrency. Multiple drawing threads operate simultaneously on different space trees, utilizing multi-core processors to execute rendering tasks in parallel, thus dramatically improving rendering throughput
2Area of stationary object
If the terminal screen size increases, then more interface elements can be presented, but the rendering content increases and processing efficiency decreases
Solution Approach 1:
The patent segments the render tree into multiple space trees based on spatial relationships and drawing dependencies. Each space tree represents a portion of the overall interface that can be rendered independently. This segmentation allows the rendering system to handle large screen areas by dividing them into manageable, parallelizable units
Solution Approach 2:
The patent implements dynamic task allocation and thread management where drawing tasks are dynamically assigned to available drawing threads based on current system load and task dependencies. This dynamic approach allows the system to efficiently adapt to varying rendering requirements regardless of screen size
Data Source
AI summary
This application provide a rendering method and a related device, and relate to the field of electronic devices. In the method, a grouping result of a to-be-displayed frame is first determined. The grouping result may enable drawing duration of the to-be-displayed frame to be less than or equal to a sum of drawing duration of at least one application interface, namely, drawing duration required by the to-be-displayed frame when no grouping is performed. Then, a drawing task of the to-be-displayed frame is grouped based on the grouping result to obtain at least one drawing task group. Finally, the drawing task in the at least one drawing task group is processed by using at least one drawing thread to obtain at least one drawing result. The at least one drawing result is used to obtain an overall drawing result of the to-be-displayed frame through synthesis, to render the to-be-displayed frame.


