Search

CN-121979435-A - Display processing method and device, storage medium and terminal equipment

CN121979435ACN 121979435 ACN121979435 ACN 121979435ACN-121979435-A

Abstract

The application discloses a display processing method, a device, a storage medium and terminal equipment, and relates to the technical field of display, wherein the method comprises the steps of obtaining original frame data of a frame displayed in an interface scrolling stage; and performing a clamping analysis according to the frame time consumption data to obtain the clamping condition in the interface rolling stage so as to perform rolling display optimization on the interface according to the clamping condition. The application can improve the optimization effect and the optimization reliability of the interface rolling display under the interface rolling scene.

Inventors

  • Qin Guohao

Assignees

  • 深圳TCL新技术有限公司

Dates

Publication Date
20260505
Application Date
20260107

Claims (15)

  1. 1. A display processing method, characterized by comprising: acquiring original frame data of a frame displayed in an interface scrolling stage; Determining frame time-consuming data according to the original frame data, wherein the frame time-consuming data is time-consuming data in a frame display process; And carrying out the jam analysis according to the frame time-consuming data to obtain the jam condition in the interface scrolling stage, so as to optimize the scrolling display of the interface according to the jam condition.
  2. 2. The method of claim 1, wherein the performing a jam analysis based on the frame time consuming data to obtain a jam condition in the interface scrolling stage comprises: Determining a time-consuming abnormal frame in the interface scrolling stage according to the frame time-consuming data; and when the frame duty ratio of the time-consuming abnormal frame in the interface scrolling stage is larger than a preset duty ratio, determining that the jamming condition is jamming.
  3. 3. The method of claim 2, wherein the frame time consuming data includes a single frame drawing time consuming and a single frame rendering time consuming, wherein the determining a time consuming exception frame in the interface scroll phase based on the frame time consuming data comprises: And determining the single frame drawing time consumption or the frame corresponding to the single frame rendering time consumption which is larger than the preset limiting time consumption as the time consumption abnormal frame.
  4. 4. The method of claim 1, wherein after the stuck-at analysis from the frame-consuming data resulting in a stuck-at condition in the interface scrolling phase, the method further comprises: If the blocking condition is blocking, analyzing according to the frame time-consuming data corresponding to the time-consuming abnormal frame to obtain time-consuming distribution data; determining a target optimization scheme set of the interface according to the time-consuming distribution data; and adopting the target optimization scheme set to perform scrolling display optimization on the interface.
  5. 5. The method of claim 4, wherein the frame time consuming data comprises animation time, buffer request time, buffer commit time, single frame draw time, and single frame render time; analyzing the frame time consumption data corresponding to the time consumption abnormal frame to obtain time consumption distribution data, wherein the time consumption distribution data comprises: dividing the animation time consumption by the single frame drawing time consumption to obtain an animation time consumption duty ratio; Dividing the request time of the buffer area by the rendering time of the single frame to obtain the request time duty ratio; Dividing the time consumption of the buffer area submission by the time consumption of the single frame rendering to obtain the time consumption ratio of the submission, wherein the time consumption distribution data comprises the time consumption ratio of the animation, the time consumption ratio of the request and the time consumption ratio of the submission.
  6. 6. The method of claim 5, wherein the set of target optimization schemes comprises schemes that display optimize a first set of display phases of the interface when scrolled, the first set of display phases comprising one or more of a buffer application phase, a buffer submission phase, and an animation playback phase; the determining the target optimization scheme set of the interface according to the time-consuming distribution data comprises the following steps: When a first duty ratio average value of the animation time consumption duty ratios of all time consumption abnormal frames in the interface scrolling stage is larger than a first preset threshold value, determining that the animation playing stage is included in the first display stage set; When a second duty ratio average value of the request time consumption duty ratios of all time consumption abnormal frames in the interface scrolling stage is larger than a second preset threshold value, determining that the buffer application stage is included in the first display stage set; and when the third duty ratio average value of the time consuming duty ratios of the submissions of all time consuming abnormal frames in the interface scrolling stage is larger than a third preset threshold value, determining that the buffer submission stage is included in the first display stage set.
  7. 7. The method of claim 6, wherein when the buffer commit phase is included in the first set of display phases, the employing the set of target optimizations to scroll display optimization for the interface comprises: screening out elements to be cut from the elements included in the interface; Determining the region position of the clipping region of the element to be clipped; and saving the region position of the clipping region, so as to cut off the clipping region according to the region position for rendering when the interface is in rolling display.
  8. 8. The method of claim 7, wherein the determining the region position of the clipping region of the element to be clipped comprises: Determining the invisible area of the element to be clipped as the clipping area; And calculating the region position of the invisible region to obtain the region position of the clipping region.
  9. 9. The method of claim 6, wherein when the buffer application stage is included in the first set of display stages, the employing the set of target optimization schemes to scroll display optimization for the interface comprises: determining the number of buffer areas corresponding to the interface; And performing quantity expansion on the quantity of the buffer areas.
  10. 10. The method of claim 6, wherein when the animation playback phase is included in the first set of display phases, the employing the set of target optimization schemes to scroll display optimization for the interface comprises: determining whether an animation closing condition is satisfied; and if the animation closing condition is met, closing the animation displayed by the interface when the interface is displayed in a rolling way.
  11. 11. The method of claim 10, wherein the determining whether an animation shutdown condition is satisfied comprises: Playing the animation closing prompt message; when the consent-to-close indication information is received, it is determined that the animation close condition is satisfied.
  12. 12. The method according to any one of claims 1 to 11, wherein prior to said obtaining raw frame data of frames displayed in the interface scrolling phase, the method further comprises: obtaining a prediction optimization scheme set corresponding to the interface, wherein the prediction optimization scheme set is obtained by performing prediction analysis on historical optimization data of rolling display optimization of the interface by adopting a preset prediction analysis model, and the preset prediction analysis model is a pre-trained machine learning model; and adopting the prediction optimization scheme set to perform rolling display optimization on the interface.
  13. 13. A display processing apparatus, comprising: the acquisition module is used for acquiring the original frame data of the frame displayed in the interface scrolling stage; The determining module is used for determining frame time-consuming data according to the original frame data, wherein the frame time-consuming data is time-consuming data in a frame display process; and the analysis module is used for carrying out the jam analysis according to the frame time-consuming data to obtain the jam condition in the interface rolling stage so as to optimize the rolling display of the interface according to the jam condition.
  14. 14. A storage medium having stored thereon a computer program which, when executed by a processor of a terminal device, causes the terminal device to perform the method of any of claims 1 to 12.
  15. 15. A terminal device comprising a memory storing a computer program, and a processor reading the computer program stored in the memory to perform the method of any one of claims 1 to 12.

Description

Display processing method and device, storage medium and terminal equipment Technical Field The present application relates to the field of display technologies, and in particular, to a display processing method, a device, a storage medium, and a terminal device. Background With the development of terminal equipment, rich and clear UI interfaces and smooth use experience are important indexes of terminal equipment user experience. Currently, in order to achieve a clearer UI interface, terminal devices gradually access features like 4KUI and more complex interface layouts and animations. In the case of an interface scrolling scene with severe picture change and common user, the frame drawing and rendering are time-consuming, so that the interface display presents a serious clamping condition in the interface scrolling scene. At present, in the related optimization scheme, the katon analysis and the display optimization are generally performed according to all original frame data of an interface display process provided by a system (such as an Android system and the like). However, the proposal often ignores the interface rolling stage in the interface display process, the analysis of the cartoon condition in the interface rolling stage is not accurate enough, which results in poor optimization effect of the interface rolling display, and the whole original frame data is used for calculation and analysis, which easily causes additional time consumption to negatively influence the original rolling display flow, resulting in weak optimization reliability. Disclosure of Invention The embodiment of the application provides a display processing scheme which can effectively improve the optimization effect and the optimization reliability of interface rolling display in an interface rolling scene. The embodiment of the application provides the following technical scheme: According to one embodiment of the application, the display processing method comprises the steps of obtaining original frame data of frames displayed in an interface scrolling stage, determining frame time-consuming data according to the original frame data, wherein the frame time-consuming data are time-consuming data in a frame display process, and performing a cartoon analysis according to the frame time-consuming data to obtain a cartoon condition in the interface scrolling stage so as to perform scrolling display optimization on the interface according to the cartoon condition. In some embodiments of the present application, the performing a jam analysis according to the frame time-consuming data to obtain a jam condition in the interface rolling stage includes determining a time-consuming abnormal frame in the interface rolling stage according to the frame time-consuming data, and determining that the jam condition is a jam when a frame duty ratio of the time-consuming abnormal frame in the interface rolling stage is greater than a predetermined duty ratio. In some embodiments of the application, the frame time consumption data comprises single frame drawing time consumption and single frame rendering time consumption, and the step of determining the time consumption abnormal frame in the interface scrolling stage according to the frame time consumption data comprises the step of determining the frame corresponding to the single frame drawing time consumption or the single frame rendering time consumption which is more than a preset limit time consumption as the time consumption abnormal frame. In some embodiments of the present application, after the katon analysis is performed according to the frame time-consuming data to obtain a katon condition in the interface rolling stage, the method further includes analyzing according to the frame time-consuming data corresponding to a time-consuming abnormal frame to obtain time-consuming distribution data if the katon condition is a katon, determining a target optimization scheme set of the interface according to the time-consuming distribution data, and performing rolling display optimization on the interface by using the target optimization scheme set. In some embodiments of the application, the frame time consumption data comprises animation time consumption, buffer request time consumption, buffer submission time consumption, single-frame drawing time consumption and single-frame rendering time consumption, the frame time consumption data corresponding to time consumption abnormal frames are analyzed to obtain time consumption distribution data, the time consumption distribution data comprise animation time consumption divided by the single-frame drawing time consumption to obtain an animation time consumption proportion, the buffer request time consumption divided by the single-frame rendering time consumption to obtain a request time consumption proportion, the buffer submission time consumption divided by the single-frame rendering time consumption to obtain a submission time consumption pro