Element Bitmap Caching for Rendering Speed and Application Size
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing methods for rendering characters and graphics in computer applications often require integrating font parsers, which increases application size, and lack flexibility in efficiently drawing and reusing elements without additional library or font files.
Innovation Solution
An element rendering method that acquires and searches for to-be-rendered elements in a locally stored bitmap, determines their arrangement positions, and renders them at target display positions, allowing for quick rendering and storage of drawn elements for future use without additional files.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If a font parser is integrated in the application to achieve drawing and rendering of any characters, then the rendering capability is improved, but the volume of the application increases
Solution Approach 1:
The patent extracts the font parsing functionality from the application binary and implements it through runtime dynamic loading of font files. The system separates the rendering engine from the font data, allowing the application to maintain a compact size while still achieving comprehensive character rendering capabilities through on-demand font loading.
Solution Approach 2:
The patent creates a universal rendering system that can handle multiple character sets and fonts through a single integrated engine. The system uses a unified approach to render both common and rare characters by dynamically selecting appropriate font files, eliminating the need for multiple specialized rendering components.
2Quantity of substance
If terminal system interface is used to generate texture map for rendering, then the application volume is reduced, but the flexibility of character drawing is limited
Solution Approach 1:
The patent implements a dynamic font loading mechanism that adapts to different rendering needs in real-time. The system can dynamically select and load appropriate font files based on the characters to be rendered, transitioning from static texture maps to dynamic font resource management, thereby achieving both compact size and flexible character drawing.
Solution Approach 2:
The patent pre-processes font files into optimized formats and caches them locally, so that when rendering is needed, the system can quickly load and use the required characters without extensive runtime processing. This preliminary preparation enables flexible character rendering while maintaining efficient performance.
3Adaptability or versatility
If elements are drawn repeatedly without caching, then the rendering flexibility is maintained, but the drawing time increases
Solution Approach 1:
The patent implements a caching mechanism that pre-renders and stores commonly used elements in memory. When the same elements need to be rendered again, the system retrieves them from the cache instead of re-rendering, significantly reducing drawing time while maintaining the ability to render new or modified elements flexibly.
Solution Approach 2:
The patent applies caching selectively to frequently rendered elements while maintaining full rendering capability for unique or rarely used elements. This localized optimization approach ensures that time is reduced for repetitive tasks without compromising the overall flexibility of the rendering system.
Data Source
AI summary
Element rendering method and devices, a computer-readable storage medium, and a computer devices are disclosed. The method includes: acquiring at least one to-be-rendered element and a target display position corresponding to each to-be-rendered element; searching a locally stored element bitmap for each to-be-rendered element; if the to-be-rendered element is found from the element bitmap, determining an arrangement position of the to-be-rendered element in the element bitmap; otherwise, drawing the to-be-rendered element in an empty area, and determining an arrangement position of the drawn to-be-rendered element in the element bitmap; and triggering to render and display each to-be-rendered element at a corresponding target display position based on the element bitmap of each to-be-rendered element and the arrangement position of each to-be-rendered element in the element bitmap. The solution provided by this application can efficiently draw rendering elements.


