CN119011949A - Picture rendering method and device, electronic equipment and storage medium - Google Patents
Picture rendering method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN119011949A CN119011949A CN202410940347.8A CN202410940347A CN119011949A CN 119011949 A CN119011949 A CN 119011949A CN 202410940347 A CN202410940347 A CN 202410940347A CN 119011949 A CN119011949 A CN 119011949A
- Authority
- CN
- China
- Prior art keywords
- rendering
- picture
- information
- determining
- state data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44012—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving rendering scenes according to scene graphs, e.g. MPEG-4 scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- Image Generation (AREA)
Abstract
The application relates to a picture rendering method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring device state data detected by display devices when rendering pictures; determining whether a rendering bottleneck occurs in a rendering process of the display device according to the device state data; if the rendering bottleneck appears in the rendering process of the display device according to the device state data, determining a picture rendering strategy based on the device state data; and performing picture rendering of the display equipment according to the picture rendering strategy. According to the embodiment of the application, the picture rendering process is optimized through the picture rendering strategy, so that the optimized picture rendering process is more suitable for the current application scene, the picture blocking problem caused by the picture rendering bottleneck is reduced, the picture is smoother, and the picture is convenient for a user to watch.
Description
Technical Field
The present application relates to the field of display devices, and in particular, to a method and apparatus for rendering a picture, an electronic device, and a storage medium.
Background
The intelligent television is based on the Internet application technology, has an open operating system and a chip, has an open application platform, can realize a bidirectional man-machine interaction function, and integrates multiple functions such as video, entertainment, data and the like into a whole so as to meet the diversified and personalized requirements of users. The purpose of the method is to bring more convenient experience to users, and the method is now a trend of television trend. The intelligent television has a fully open platform, is provided with an operating system, and can automatically install and uninstall various application software while users enjoy common television content, so that new television products with functions being continuously expanded and upgraded can be realized. The intelligent television can continuously bring rich personalized experience to users, which is different from the use of a cable digital television receiver (set top box).
As the screen size of the smart television is larger and larger, the requirements of users on display effects are more and more severe, and when a large screen is used for large-scale scene rendering or high-quality game running, the GPU may not be capable of timely rendering all graphic data to be displayed, so that a rendering bottleneck is caused, and further, a display picture is blocked, which is not beneficial to the users to watch.
Disclosure of Invention
In order to solve the technical problems described above or at least partially solve the technical problems described above, the application provides a method, a device, an electronic device and a storage medium for rendering a picture.
In a first aspect, the present application provides a method for rendering a picture, including:
acquiring device state data detected by display devices when rendering pictures;
Determining whether a rendering bottleneck occurs in a rendering process of the display device according to the device state data;
If the rendering bottleneck appears in the rendering process of the display device according to the device state data, determining a picture rendering strategy based on the device state data;
and performing picture rendering of the display equipment according to the picture rendering strategy.
Optionally, the device status data includes: the screen display information is used for determining whether a rendering bottleneck occurs in the rendering process of the display equipment according to the equipment state data, and the method comprises the following steps:
extracting screen display information from the device status data, the screen display information comprising: the method comprises the steps of enabling a previous frame of picture information and a next frame of picture information to be displayed, wherein the previous frame of picture corresponding to the previous frame of picture information and the next frame of picture corresponding to the next frame of picture information are adjacent picture frames;
And if the repeated picture content with the same position and content exists in the previous frame picture and the next frame picture to be displayed is determined according to the previous frame picture information and the next frame picture information to be displayed, determining that a rendering bottleneck occurs in the rendering process of the display equipment.
Optionally, determining a picture rendering policy based on the device state data includes:
Determining target picture content in the next frame picture, wherein the target picture content is picture content except the repeated picture content in the next frame picture;
And determining a picture rendering strategy to render the target picture content and not render the repeated picture content.
Optionally, the device status data includes: the resource state information is used for determining whether a rendering bottleneck occurs in the rendering process of the display device according to the device state data, and comprises the following steps:
extracting resource state information of rendering resources for rendering a picture from the device state data;
Determining whether a bottleneck occurs in picture rendering of the single frame based on the resource state information;
And if the bottleneck appears in the picture rendering of the single frame based on the resource state information, determining that the rendering process of the display equipment appears in the rendering bottleneck.
Optionally determining whether a bottleneck occurs in picture rendering of the single frame based on the resource status information, including:
determining the GPU video memory queue condition corresponding to the rendering resource based on the resource state information;
Determining whether the GPU video memory queue is empty or not based on the GPU video memory queue condition;
and if the GPU video memory queue is determined to be empty based on the condition of the GPU video memory queue, determining that bottleneck occurs in single-frame picture rendering.
Optionally, determining a picture rendering policy based on the device state data includes:
and determining a picture rendering strategy as multi-frame picture parallel rendering in a subsequent rendering process.
Optionally, the device status data includes: CPU load information, determining a picture rendering policy based on the device state data, comprising:
extracting CPU load information from the equipment state data;
Determining whether the CPU load of the target CPU is smaller than or equal to a first preset threshold according to the CPU load information;
if the CPU load of the target CPU is determined to be smaller than or equal to a first preset threshold according to the CPU load information, determining a picture rendering strategy to allocate a rendering task for the target CPU until the load of the target CPU is larger than a second preset threshold.
In a second aspect, the present application provides a picture rendering apparatus, comprising:
The acquisition module is used for acquiring equipment state data detected by the display equipment when the picture is rendered;
The first determining module is used for determining that a rendering bottleneck occurs in the rendering process of the display equipment according to the equipment state data;
The second determining module is used for determining a picture rendering strategy based on the equipment state data if a rendering bottleneck appears in the rendering process of the display equipment according to the equipment state data;
And the rendering module is used for performing picture rendering of the display equipment according to the picture rendering strategy.
Optionally, the device status data includes: screen display information, the first determining module comprising:
a first extraction unit configured to extract screen display information in the device status data, the screen display information including: the method comprises the steps of enabling a previous frame of picture information and a next frame of picture information to be displayed, wherein the previous frame of picture corresponding to the previous frame of picture information and the next frame of picture corresponding to the next frame of picture information are adjacent picture frames;
and the first determining unit is used for determining that a rendering bottleneck occurs in the rendering process of the display equipment if the repeated picture content with the same position and content exists in the previous frame picture and the next frame picture to be displayed according to the previous frame picture information and the next frame picture information to be displayed.
Optionally, the second determining module includes:
a second determining unit configured to determine a target picture content in the next frame picture, where the target picture content is a picture content in the next frame picture other than the repeated picture content;
And the third determining unit is used for determining a picture rendering strategy to render the target picture content and not render the repeated picture content.
Optionally, the device status data includes: resource status information, the second determining module comprising:
a second extraction unit configured to extract resource status information of a rendering resource for rendering a screen in the device status data;
a fourth determining unit, configured to determine whether a bottleneck occurs in picture rendering of a single frame based on the resource status information;
And a fifth determining unit, configured to determine that a rendering bottleneck occurs in a rendering process of the display device if it is determined that a bottleneck occurs in picture rendering of a single frame based on the resource status information.
Optionally, the fourth determining unit is further configured to:
determining the GPU video memory queue condition corresponding to the rendering resource based on the resource state information;
Determining whether the GPU video memory queue is empty or not based on the GPU video memory queue condition;
and if the GPU video memory queue is determined to be empty based on the condition of the GPU video memory queue, determining that bottleneck occurs in single-frame picture rendering.
Optionally, the second determining module includes:
and a sixth determining unit, configured to determine a frame rendering policy to be multi-frame parallel rendering in a subsequent rendering process.
Optionally, the device status data includes: CPU load information, the second determining module includes:
a third extraction unit configured to extract CPU load information from the device state data;
a seventh determining unit, configured to determine, according to the CPU load information, whether the CPU load of the target CPU is less than or equal to a first preset threshold;
And an eighth determining unit, configured to determine, if it is determined according to the CPU load information that the CPU load of the target CPU is less than or equal to a first preset threshold, that the picture rendering policy allocates a rendering task to the target CPU until the load of the target CPU is greater than a second preset threshold.
In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any one of the picture rendering methods in the first aspect when executing the programs stored in the memory.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a program of a picture rendering method, which when executed by a processor, implements the steps of the picture rendering method of any one of the first aspects.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
According to the embodiment of the application, whether the rendering process of the display equipment is provided with the rendering bottleneck is determined according to the equipment state data detected when the display equipment is used for rendering the picture, if the rendering bottleneck is determined to be provided, the picture rendering strategy is determined based on the equipment state data, the picture rendering of the display equipment is carried out according to the picture rendering strategy, and the picture rendering process is optimized through the picture rendering strategy, so that the optimized picture rendering process is more suitable for the current application scene, the picture blocking problem caused by the picture rendering bottleneck is reduced, the picture is smoother, and the user can watch the picture conveniently.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a flowchart of a method for rendering a picture according to an embodiment of the present application;
fig. 2 is a block diagram of a picture rendering device according to an embodiment of the present application;
fig. 3 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
At present, when a large screen is used for large-scale scene rendering or high-image-quality game running, a GPU (graphics processing Unit) can not timely render all graphic data to be displayed, so that rendering bottleneck is caused, and further display pictures are blocked, which is not beneficial to users to watch. Therefore, the embodiment of the application provides a picture rendering method, a device, electronic equipment and a storage medium, which can optimize a picture rendering process through a picture rendering strategy, so that the optimized picture rendering process is more suitable for the current application scene, the problem of picture blocking caused by a picture rendering bottleneck is reduced, pictures are smoother, and the viewing of users is facilitated.
In one embodiment of the present application, a method for rendering a picture is provided, as shown in fig. 1, which may include the steps of:
Step S101, acquiring device state data detected by a display device when rendering a picture;
in the embodiment of the application, the display device may refer to an electronic device with a screen, such as an intelligent television, and the display device includes one or more GPUs for rendering a picture to be displayed in the screen of the display device, and when performing large-scale scene rendering or high-quality picture rendering, the one or more GPUs may not be capable of timely processing a rendering task, and at this time, whether the rendering bottleneck occurs or not may be diagnosed by detecting parameters capable of showing the rendering bottleneck in the display device.
The device state data in the embodiment of the application can comprise: screen display information of the screen display picture and/or resource state information of the rendering resource, wherein the screen display information comprises: the method comprises the steps of enabling a previous frame of picture information and a next frame of picture information to be displayed, wherein a previous frame of picture corresponding to the previous frame of picture information and a next frame of picture corresponding to the next frame of picture information are adjacent picture frames; the resource status information may include: rendering resources may refer to a video queue corresponding to the GPU.
In one embodiment, the device state data may be detected directly in real time by a preset detection module during the process of rendering the screen by the display device, and the device state data may be obtained.
In another embodiment, the detection of the rendered content may be performed first, if the rendered content is a content of a specified category, such as: when large-scale scene rendering or high-image-quality games are performed, a preset detection module can be started to detect equipment state data and acquire the equipment state data.
Step S102, determining whether a rendering bottleneck occurs in the rendering process of the display device according to the device state data;
In this step, the screen display information and/or the resource status information in the device status data may be matched with the corresponding preset bottleneck determination conditions, and if the screen display information and/or the resource status information are matched with the corresponding bottleneck determination conditions, it may be determined that a rendering bottleneck occurs in the rendering process of the display device.
For example, when the device status data includes only the screen display information, the screen display information may be matched with the first bottleneck determination condition, and if the screen display information is matched with the first bottleneck determination condition, it is determined that a rendering bottleneck occurs in the rendering process of the display device;
for another example, when the device state data only includes the resource state information, the resource state information may be matched with the second bottleneck determination condition, and if the resource state information is matched with the second bottleneck determination condition, it is determined that a rendering bottleneck occurs in the rendering process of the display device;
For another example, when the device state data includes the screen display information and the resource state information, the screen display information may be matched with the first bottleneck determination condition, and the resource state information may be matched with the second bottleneck determination condition, and if the screen display information is matched with the first bottleneck determination condition, and/or if the resource state information is matched with the second bottleneck determination condition, it is determined that a rendering bottleneck occurs in the rendering process of the display device.
Step S103, if the rendering bottleneck appears in the rendering process of the display equipment according to the equipment state data, determining a picture rendering strategy based on the equipment state data;
In the embodiment of the application, the corresponding relation between different device state data and corresponding picture rendering strategies can be preset, and then the corresponding picture rendering strategies are searched in the corresponding relation based on the device state data of which the rendering bottleneck appears in the rendering process.
For example, if it is determined that a rendering bottleneck occurs in the rendering process of the display device based on the screen display information, a picture rendering policy may be determined in the correspondence based on the screen display information;
for another example, if it is determined that a rendering bottleneck occurs in the rendering process of the display device based on the resource status information, a picture rendering policy may be determined in the correspondence based on the resource status information;
For another example, if it is determined that a rendering bottleneck occurs in the rendering process of the display device based on the screen display information and the resource status information, then the image rendering policies may be determined in the correspondence based on the screen display information and the resource status information, respectively, and the image rendering policies corresponding to the screen display information and the image rendering policies corresponding to the resource status information may be used together as the final image rendering policies.
Step S104, performing picture rendering of the display device according to the picture rendering strategy.
In this step, the picture may be rendered according to the picture rendering policy determined in step S103, so as to solve the rendering bottleneck problem of the display device.
According to the embodiment of the application, whether the rendering process of the display equipment is provided with the rendering bottleneck is determined according to the equipment state data detected when the display equipment is used for rendering the picture, if the rendering bottleneck is determined to be provided, the picture rendering strategy is determined based on the equipment state data, the picture rendering of the display equipment is carried out according to the picture rendering strategy, and the picture rendering process is optimized through the picture rendering strategy, so that the optimized picture rendering process is more suitable for the current application scene, the picture blocking problem caused by the picture rendering bottleneck is reduced, the picture is smoother, and the user can watch the picture conveniently.
In yet another embodiment of the present application, the device status data includes: screen display information, step S102 determines whether a rendering bottleneck occurs in a rendering process of the display device according to the device status data, including:
step S201, extracting screen display information from the equipment state data;
In an embodiment of the present application, the screen display information includes: the method comprises the steps of enabling a previous frame of picture information and a next frame of picture information to be displayed, wherein the previous frame of picture corresponding to the previous frame of picture information and the next frame of picture corresponding to the next frame of picture information are adjacent picture frames;
Step S202, if it is determined that the repeated frame contents with the same positions and contents exist in the previous frame and the next frame to be displayed according to the previous frame information and the next frame to be displayed, it is determined that a rendering bottleneck occurs in the rendering process of the display device.
In this step, if it is determined that the repeated picture content having the same positions and content as those of the previous frame picture and the next frame picture to be displayed is present according to the previous frame picture information and the next frame picture information to be displayed, that is, some part of the picture content is still present in the two adjacent frames, that is, the repeated picture content, it indicates that a bottleneck may occur in the rendering process, and that the rendering process needs to be optimized.
On the basis of the foregoing embodiment, step S103 determines a picture rendering policy based on the device state data, including:
Step S301, determining a target picture content in the next frame picture, where the target picture content is a picture content in the next frame picture except for the repeated picture content;
step S302, determining that the picture rendering policy is to render the target picture content, and not render the repeated picture content.
The picture rendering strategy determined by the embodiment of the application can render only the changed target picture content without repeatedly rendering the repeated picture content, so as to save the rendering resources consumed by the repeated picture content, optimize the rendering process and reduce the rendering bottleneck.
In yet another embodiment of the present application, the device status data includes: the resource status information, step S102 determines whether a rendering bottleneck occurs in a rendering process of the display device according to the device status data, including:
step S401, extracting resource state information of rendering resources for rendering a picture from the device state data;
step S402, determining whether a bottleneck occurs in picture rendering of a single frame based on the resource state information;
Determining whether a bottleneck occurs in picture rendering of the single frame based on the resource status information comprises: determining the GPU video memory queue condition corresponding to the rendering resource based on the resource state information; determining whether the GPU video memory queue is empty or not based on the GPU video memory queue condition; and if the GPU video memory queue is determined to be empty based on the condition of the GPU video memory queue, determining that bottleneck occurs in single-frame picture rendering.
Determining that the GPU video memory queue is empty based on the condition of the GPU video memory queue indicates that one or more GPU rendering single-frame pictures are not completed due to overtime, and the rendered data cannot be stored in the GPU video memory queue in time, namely, the single-frame picture rendering is bottleneck.
Because the most visual representation of whether the GPU rendering is bottleneck is whether the GPU video memory queue is empty or not, the application determines whether the bottleneck occurs in the single-frame picture rendering by whether the GPU video memory queue is empty or not, and the efficiency and the accuracy are high.
Step S403, if it is determined that a bottleneck occurs in the rendering process of the single frame based on the resource status information, determining that a rendering bottleneck occurs in the rendering process of the display device.
The embodiment of the application can determine that the rendering bottleneck occurs in the rendering process of the display equipment when the bottleneck occurs in the image rendering of a single frame, and has high efficiency and high accuracy.
Based on the foregoing embodiment, step S103 determines a picture rendering policy based on the device state data, including:
and determining a picture rendering strategy as multi-frame picture parallel rendering in a subsequent rendering process.
According to the embodiment of the application, after the rendering bottleneck of the display equipment is determined, the multi-frame picture parallel rendering is started, so that the rendering efficiency of the display equipment is improved, the rendering process is optimized, and the rendering bottleneck is reduced.
In yet another embodiment of the present application, the device status data includes: CPU load information, determining a picture rendering policy based on the device state data, comprising:
Step S501, extracting CPU load information from the equipment state data;
In an embodiment of the present application, the display device further includes: the CPU is mainly responsible for processing and sending instructions in general, and can play the role of rendering the GPU when the rendering bottleneck occurs and the CPU has residual processing resources, so that the CPU load information can be acquired first to determine whether the CPU has residual processing resources.
Step S502, determining whether the CPU load of the target CPU is smaller than or equal to a first preset threshold according to the CPU load information;
for example, the first preset threshold may be 50%, or the like, and when it is determined that the CPU load is less than or equal to the first preset threshold, it may be determined that the CPU still has remaining processing resources to temporarily double as a rendering job of the GPU.
In step S503, if it is determined according to the CPU load information that the CPU load of the target CPU is less than or equal to the first preset threshold, determining that the image rendering policy allocates a rendering task to the target CPU, and performing the rendering task on the image content obtained by the CPU, according to a clock, the image content is sequentially arranged in a to-be-displayed buffer list of the display device until the load of the target CPU is greater than the second preset threshold, where the second preset threshold may be, for example, 70%.
The picture rendering strategy determined by the embodiment of the application can make the residual resources of the CPU double as the rendering work of the GPU, fully utilize the residual resources of the CPU, share the rendering pressure of the GPU, optimize the rendering process and enable the blocked and blocked rendering process to be restored to be normal as soon as possible.
In still another embodiment of the present application, there is also provided a picture rendering apparatus, as shown in fig. 2, including:
An acquisition module 11, configured to acquire device state data detected by a display device when rendering a screen;
a first determining module 12, configured to determine, according to the device status data, that a rendering bottleneck occurs in a rendering process of the display device;
A second determining module 13, configured to determine, if a rendering bottleneck occurs in a rendering process of the display device according to the device state data, a frame rendering policy based on the device state data;
and the rendering module 14 is used for performing picture rendering of the display device according to the picture rendering strategy.
Optionally, the device status data includes: screen display information, the first determining module comprising:
a first extraction unit configured to extract screen display information in the device status data, the screen display information including: the method comprises the steps of enabling a previous frame of picture information and a next frame of picture information to be displayed, wherein the previous frame of picture corresponding to the previous frame of picture information and the next frame of picture corresponding to the next frame of picture information are adjacent picture frames;
and the first determining unit is used for determining that a rendering bottleneck occurs in the rendering process of the display equipment if the repeated picture content with the same position and content exists in the previous frame picture and the next frame picture to be displayed according to the previous frame picture information and the next frame picture information to be displayed.
Optionally, the second determining module includes:
a second determining unit configured to determine a target picture content in the next frame picture, where the target picture content is a picture content in the next frame picture other than the repeated picture content;
And the third determining unit is used for determining a picture rendering strategy to render the target picture content and not render the repeated picture content.
Optionally, the device status data includes: resource status information, the second determining module comprising:
a second extraction unit configured to extract resource status information of a rendering resource for rendering a screen in the device status data;
a fourth determining unit, configured to determine whether a bottleneck occurs in picture rendering of a single frame based on the resource status information;
and a fifth determining unit, configured to determine that a rendering bottleneck occurs in a rendering process of the display device if it is determined that a bottleneck occurs in picture rendering of a single frame based on the video memory queue condition.
Optionally, the fourth determining unit is further configured to:
determining a video memory queue condition corresponding to the rendering resource based on the resource state information;
Determining whether the GPU video memory queue is empty or not based on the GPU video memory queue condition;
and if the GPU video memory queue is determined to be empty based on the condition of the GPU video memory queue, determining that bottleneck occurs in single-frame picture rendering.
Optionally, the second determining module includes:
and a sixth determining unit, configured to determine a frame rendering policy to be multi-frame parallel rendering in a subsequent rendering process.
Optionally, the device status data includes: CPU load information, the second determining module includes:
a third extraction unit configured to extract CPU load information from the device state data;
a seventh determining unit, configured to determine, according to the CPU load information, whether the CPU load of the target CPU is less than or equal to a first preset threshold;
And an eighth determining unit, configured to determine, if it is determined according to the CPU load information that the CPU load of the target CPU is less than or equal to a first preset threshold, that the picture rendering policy allocates a rendering task to the target CPU until the load of the target CPU is greater than a second preset threshold.
In yet another embodiment of the present application, there is provided an electronic device including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
a memory for storing a computer program;
And the processor is used for realizing the picture rendering method according to any one of the method embodiments when executing the program stored in the memory.
According to the electronic equipment provided by the embodiment of the invention, the processor determines whether the rendering process of the display equipment has the rendering bottleneck or not by executing the program stored in the memory according to the equipment state data detected by the display equipment when the picture is rendered, if the rendering bottleneck is determined to occur, the picture rendering strategy is determined based on the equipment state data, the picture rendering of the display equipment is performed according to the picture rendering strategy, and the picture rendering process is optimized according to the picture rendering strategy, so that the optimized picture rendering process is more suitable for the current application scene, the picture clamping problem caused by the picture rendering bottleneck is reduced, the picture is smoother, and the user is convenient to watch.
The communication bus 1140 mentioned above may be a peripheral component interconnect standard (PeripheralComponentInterconnect, PCI) bus or an extended industry standard architecture (ExtendedIndustryStandardArchitecture, EISA) bus, etc. The communication bus 1140 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 3, but not only one bus or one type of bus.
The communication interface 1120 is used for communication between the electronic device and other devices described above.
The memory 1130 may include Random Access Memory (RAM) or non-volatile memory (non-volatilememory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor 1110 may be a general-purpose processor, including a Central Processing Unit (CPU), a network processor (NetworkProcessor NP), and the like; but also digital signal processors (DigitalSignalProcessing, DSP for short), application specific integrated circuits (ApplicationSpecificIntegratedCircuit, ASIC for short), field-programmable gate arrays (Field-ProgrammableGateArray, FPGA for short), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present application, there is also provided a computer-readable storage medium having stored thereon a program of a picture rendering method, which when executed by a processor, implements the steps of the picture rendering method described in any of the method embodiments above.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a specific embodiment of the invention to enable those skilled in the art to understand or practice the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A picture rendering method, comprising:
acquiring device state data detected by display devices when rendering pictures;
Determining whether a rendering bottleneck occurs in a rendering process of the display device according to the device state data;
If the rendering bottleneck appears in the rendering process of the display device according to the device state data, determining a picture rendering strategy based on the device state data;
and performing picture rendering of the display equipment according to the picture rendering strategy.
2. The picture rendering method as claimed in claim 1, wherein the device status data includes: the screen display information is used for determining whether a rendering bottleneck occurs in the rendering process of the display equipment according to the equipment state data, and the method comprises the following steps:
extracting screen display information from the device status data, the screen display information comprising: the method comprises the steps of enabling a previous frame of picture information and a next frame of picture information to be displayed, wherein the previous frame of picture corresponding to the previous frame of picture information and the next frame of picture corresponding to the next frame of picture information are adjacent picture frames;
And if the repeated picture content with the same position and content exists in the previous frame picture and the next frame picture to be displayed is determined according to the previous frame picture information and the next frame picture information to be displayed, determining that a rendering bottleneck occurs in the rendering process of the display equipment.
3. The picture rendering method as claimed in claim 2, wherein determining a picture rendering policy based on the device state data comprises:
Determining target picture content in the next frame picture, wherein the target picture content is picture content except the repeated picture content in the next frame picture;
And determining a picture rendering strategy to render the target picture content and not render the repeated picture content.
4. The picture rendering method as claimed in claim 1, wherein the device status data includes: the resource state information is used for determining whether a rendering bottleneck occurs in the rendering process of the display device according to the device state data, and comprises the following steps:
extracting resource state information of rendering resources for rendering a picture from the device state data;
Determining whether a bottleneck occurs in picture rendering of the single frame based on the resource state information;
And if the bottleneck appears in the picture rendering of the single frame based on the resource state information, determining that the rendering process of the display equipment appears in the rendering bottleneck.
5. The picture rendering method as claimed in claim 4, wherein determining whether a bottleneck occurs in picture rendering of a single frame based on the resource status information comprises:
determining the GPU video memory queue condition corresponding to the rendering resource based on the resource state information;
Determining whether the GPU video memory queue is empty or not based on the GPU video memory queue condition;
and if the GPU video memory queue is determined to be empty based on the condition of the GPU video memory queue, determining that bottleneck occurs in single-frame picture rendering.
6. The picture rendering method as claimed in claim 4 or 5, wherein determining a picture rendering policy based on the device state data comprises:
and determining a picture rendering strategy as multi-frame picture parallel rendering in a subsequent rendering process.
7. The picture rendering method as claimed in claim 4 or 5, wherein the device status data includes: CPU load information, determining a picture rendering policy based on the device state data, comprising:
extracting CPU load information from the equipment state data;
Determining whether the CPU load of the target CPU is smaller than or equal to a first preset threshold according to the CPU load information;
if the CPU load of the target CPU is determined to be smaller than or equal to a first preset threshold according to the CPU load information, determining a picture rendering strategy to allocate a rendering task for the target CPU until the load of the target CPU is larger than a second preset threshold.
8. A picture rendering apparatus, comprising:
The acquisition module is used for acquiring equipment state data detected by the display equipment when the picture is rendered;
The first determining module is used for determining that a rendering bottleneck occurs in the rendering process of the display equipment according to the equipment state data;
The second determining module is used for determining a picture rendering strategy based on the equipment state data if a rendering bottleneck appears in the rendering process of the display equipment according to the equipment state data;
And the rendering module is used for performing picture rendering of the display equipment according to the picture rendering strategy.
9. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
A processor for implementing the picture rendering method according to any one of claims 1 to 7 when executing a program stored in a memory.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a program of a picture rendering method, which when executed by a processor, implements the steps of the picture rendering method of any of claims 1-7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410940347.8A CN119011949A (en) | 2024-07-12 | 2024-07-12 | Picture rendering method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410940347.8A CN119011949A (en) | 2024-07-12 | 2024-07-12 | Picture rendering method and device, electronic equipment and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN119011949A true CN119011949A (en) | 2024-11-22 |
Family
ID=93480671
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410940347.8A Pending CN119011949A (en) | 2024-07-12 | 2024-07-12 | Picture rendering method and device, electronic equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN119011949A (en) |
-
2024
- 2024-07-12 CN CN202410940347.8A patent/CN119011949A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109783181B (en) | Screen adaptive display method, electronic device and computer storage medium | |
| CN110377263B (en) | Image synthesis method, device, electronic device and storage medium | |
| US11204688B2 (en) | Video playing method and device, electronic equipment and storage medium | |
| US20090096810A1 (en) | Method for selectively remoting windows | |
| CN107885645B (en) | Method and device for calculating rendering duration of first screen of page and electronic equipment | |
| CN111432262B (en) | Page video rendering method and device | |
| CN113015007B (en) | Video frame inserting method and device and electronic equipment | |
| CN111381925B (en) | GUI fragment type rendering method and device based on dirty rectangle mechanism | |
| CN113126937A (en) | Display terminal adjusting method and display terminal | |
| WO2015161809A1 (en) | Picture splitting method and apparatus, and picture loading method and apparatus | |
| CN105678688B (en) | Picture processing method and device | |
| CN106156132B (en) | Picture loading display method and device | |
| EP4586602A1 (en) | Image processing method, image processing circuit, electronic device, and readable storage medium | |
| CN113316018B (en) | Method, device and storage medium for overlaying time information on video picture display | |
| CN119011949A (en) | Picture rendering method and device, electronic equipment and storage medium | |
| CN114302209A (en) | Video processing method, video processing device, electronic equipment and medium | |
| US20120110502A1 (en) | Using screen captures to provide automatic contextual smart input-in device selection menu | |
| CN114356568B (en) | Information processing method, device, electronic device and storage medium | |
| US8693042B2 (en) | Image copying method and device | |
| CN108881999B (en) | Screen capture processing method and system | |
| KR101698484B1 (en) | Method and apparatus for performing JAVA application | |
| CN114633690A (en) | Method, system, device and medium for rapidly displaying reversing image | |
| CN114974134A (en) | Backlight control method and device of display equipment, storage medium and intelligent interactive panel | |
| CN113190196A (en) | Multi-device linkage implementation method, device, medium and electronic device | |
| CN118259862B (en) | Display screen switching method, device, medium and computer program product |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |