Animation Interface Rendering Updates for Lower UI Energy Use
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
High energy consumption and reduced energy efficiency in generating frames of interface due to the need for timely CPU frequency increases to maintain animation continuity, leading to freezing issues.
Innovation Solution
An interface generation method that directly updates rendering instructions based on animation logic, reducing the need for repeated rendering and bitmap generation by modifying rendering instructions using interface description information to adapt to changing properties of controls during animations.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If the electronic device increases CPU working frequency to improve computing capability, then interface generation speed is improved, but energy consumption increases
Solution Approach 1:
The patent pre-generates bitmaps for different animation states during the animation configuration phase. When animations are executed, the system directly retrieves and composes these pre-generated bitmaps instead of performing real-time rendering calculations, significantly reducing CPU workload and energy consumption during runtime while maintaining smooth animation playback
Solution Approach 2:
The patent creates bitmap copies of interface elements in advance and stores them in memory. During animation execution, these bitmap copies are directly composed and displayed without regenerating them, replacing computationally intensive real-time rendering with simple bitmap composition operations that consume minimal energy
2Manufacturing precision
If the electronic device repeatedly traverses views and generates bitmaps through rendering, then interface update accuracy is improved, but energy efficiency ratio deteriorates
Solution Approach 1:
The patent extracts the computationally intensive bitmap generation process from the animation execution phase and moves it to the configuration phase. During animation playback, only lightweight bitmap composition and display operations are performed, eliminating redundant rendering traversals while preserving the accuracy of interface updates through the use of pre-generated high-quality bitmaps
Data Source
AI summary
This application discloses example interface generation methods and electronic devices, and relates to the field of electronic technologies. One example interface generation method includes, in a process in which an electronic device displays an animation through an application, in consideration of interface continuity in the animation process, generating a first rendering instruction and generating a frame of interface of the animation based on the first rendering instruction, then directly modifying the first rendering instruction to a second rendering instruction based on animation logic, and generating another frame of interface of the animation based on the second rendering instruction. A UI thread does not need to perform measurement, layout, and drawing and recording, and a render thread does not need to generate each frame of interface in the animation process either. This improves an energy efficiency ratio of interface generation.


