A compiling method, readable storage medium, program product and electronic device

By dynamically selecting the compilation method based on the complexity of the shader source code and the rendered content, the performance problems caused by fixed compilation methods in electronic devices are solved, a balance between resource utilization and display effect is achieved, and the operating efficiency of electronic devices is improved.

CN122431673APending Publication Date: 2026-07-21HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2025-01-21
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

In the existing technology, electronic devices use a fixed compilation method to compile shaders, which affects performance and makes it impossible to effectively balance resource utilization and display effect.

Method used

Depending on the complexity of the shader's source code and the complexity of the rendered content, different compilation methods are used, including direct compilation and optimized compilation. The appropriate compilation method is selected to avoid lag caused by wasted resources or insufficient optimization.

Benefits of technology

By dynamically adjusting the compilation method, resource waste and lag are avoided, achieving a balance between the performance and power consumption of electronic devices, and improving display effects and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122431673A_ABST
    Figure CN122431673A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of image processing, and discloses a compiling method, a readable storage medium, a program product and an electronic device. In the method, in the case that the complexity of the source code of the shader of a first application is low and / or the complexity of the interface to be rendered by the first application is low, the electronic device can compile the shader source code of the first application by using a first compiling mode with low compiling complexity. In the case that the complexity of the source code of the shader of the first application is high and / or the complexity of the interface to be rendered by the first application is high, the electronic device can compile the shader source code of the first application by using a second optimizing compiling mode with high compiling complexity. Based on the above mode, resource waste caused by over-optimization of a simple shader with simple source code or simple rendering content can be avoided, and the shader source code with complex source code or complex rendering content can be moderately optimized to avoid interface lag of the first application.
Need to check novelty before this filing date? Find Prior Art