Search

CN-116166466-B - Rendering card frame detection method, electronic device and computer storage medium

CN116166466BCN 116166466 BCN116166466 BCN 116166466BCN-116166466-B

Abstract

The invention relates to the technical field of film and television rendering processing, and particularly discloses a rendering card frame detection method, electronic equipment and a computer storage medium, wherein the method comprises the steps of firstly acquiring first rendering data and second rendering data in a rendering task, wherein the first rendering data is rendering data of a frame which is already completed in the rendering task, and the second rendering data is rendering data of a current frame in the rendering task; and predicting to obtain the current frame completion time based on the first rendering data and the second rendering data, and determining that the card frame exists in the rendering task if the actual rendering time of the current frame is longer than the current frame completion time. Therefore, whether the card frame exists in the rendering task is accurately detected, the rendering task can be ended by related staff, and the task is restarted or canceled, so that the situation that the machine resource and the user time are wasted is avoided.

Inventors

  • CHEN BAICHENG
  • ZOU QIONG
  • ZHOU SHUANGQUAN

Assignees

  • 深圳市瑞云科技股份有限公司

Dates

Publication Date
20260505
Application Date
20230306

Claims (7)

  1. 1. A method for detecting a rendering card frame, comprising: Acquiring first rendering data and second rendering data in a rendering task, wherein the first rendering data is the rendering data of a frame which is already completed in the rendering task, and the second rendering data is the rendering data of a current frame in the rendering task; Predicting to obtain the current frame completion time based on the first rendering data and the second rendering data; If the actual rendering time length of the current frame is longer than the current frame completion time length, determining that a card frame exists in the rendering task; the first rendering data comprises the finishing time length and rendering hardware information of the finished frame, and the second rendering data comprises the rendering hardware information of the current frame; the predicting, based on the first rendering data and the second rendering data, a current frame completion duration includes: Calculating and determining a prediction coefficient based on the finishing time length of the finished frame and rendering hardware information; Calculating to obtain the completion time length of the current frame based on the prediction coefficient and the rendering hardware information of the current frame; the rendering hardware information of the completed frames comprises a deduction performance coefficient and a hardware performance value of rendering equipment corresponding to the completed frames, wherein the rendering equipment corresponding to the completed frames is the rendering equipment for completing the rendering operation of the completed frames; the calculating and determining a prediction coefficient based on the finishing time length of the finished frame and rendering hardware information comprises the following steps: Taking the product of the deduction performance coefficient of rendering equipment corresponding to a finished frame and the performance value of a rendering device as a first calculation factor of the finished frame; taking the quotient of the finishing time length of the finished frame and the first calculation factor of the finished frame as the second calculation factor of the finished frame; Taking the average of all the second calculation factors of the completed frames as the prediction coefficient; the calculating, based on the prediction coefficient and the rendering hardware information of the current frame, the current frame completion duration includes: Calculating a first calculation factor of the current frame, wherein the first calculation factor of the current frame is the product of a deduction performance coefficient and a hardware performance value of rendering equipment for rendering the current frame; taking the product of the first calculation factor of the current frame and the prediction coefficient as the current frame completion time length; Wherein the deduction coefficient of performance is determined based on the machine hardware performance, and the better the machine hardware performance is, the higher the deduction coefficient of performance is.
  2. 2. The method of claim 1, further comprising, prior to the acquiring the first rendering data and the second rendering data in the rendering task: Acquiring a plurality of groups of operation parameters of equipment for performing the rendering task at a preset frequency, wherein one group of operation parameters comprises CPU utilization rate and used memory value; If the operation parameters are the same, determining that the rendering task is blocked; And if the operation parameters are different, starting to acquire the first rendering data and the second rendering data in the rendering task.
  3. 3. The method of claim 1, further comprising, prior to the acquiring the first rendering data and the second rendering data in the rendering task: acquiring the memory utilization rate of equipment for performing the rendering task; If the memory utilization rate is greater than or equal to a first preset threshold value, determining that the rendering task is blocked; And if the memory usage rate is smaller than the first preset threshold value, starting to acquire first rendering data and second rendering data in the rendering task.
  4. 4. The method of claim 1, further comprising, prior to the acquiring the first rendering data and the second rendering data in the rendering task: acquiring rendering time lengths of all frames in the rendering task; If all the rendering durations are greater than a second preset threshold, starting to acquire first rendering data and second rendering data in the rendering task.
  5. 5. The rendering card frame detection method according to claim 1, wherein the completed frames include a preset number of completed frames adjacent to the current frame.
  6. 6. An electronic device comprising a memory and a processor, and a computer program stored on the memory and executable on the processor, which when executed by the processor, implements the rendering card frame detection method according to any one of claims 1 to 5 at a preset frequency.
  7. 7. A computer storage medium having stored thereon a computer program which, when executed by a processor, causes the processor to perform the rendering card frame detection method of any of claims 1 to 5.

Description

Rendering card frame detection method, electronic device and computer storage medium Technical Field The invention relates to the technical field of video rendering processing, in particular to a rendering card frame detection method, electronic equipment and a computer storage medium. Background With development of cloud computing technology, more and more rendering tasks are rendered through a cloud rendering platform. The user can upload the rendering scene file to be rendered through the cloud rendering platform, the platform generates a rendering task, rendering service is provided for the user, and finally the rendering result file is output to the user. Each rendering task job consists of a plurality of frames to be rendered, and in the rendering process of the frames, the cloud rendering platform dispatches a specific rendering server to render specific frames. In the rendering process, sometimes, the machine CPU occupies too high, rendering software can cause card frames due to error card owner and the like, namely, certain frames are blocked and cannot be completed, so that the frames cannot be rendered normally, if the card frame condition is not detected in time, the rendering task is always in a blocked state, machine resources and time of a user are wasted, and in the prior art, a method for detecting the card frames is not available, so that the card frames can be found out in time and processed in time, and the waste of the machine resources and the time of the user is avoided. Disclosure of Invention Therefore, the present invention is directed to a method for detecting a frame of a rendering card, an electronic device and a computer storage medium, so as to solve the problem that the frame of the rendering card seriously wastes machine resources and user time because the frame of the rendering card cannot be detected accurately at present. In order to achieve the above purpose, the invention adopts the following technical scheme: in a first aspect, an embodiment of the present application provides a method for detecting a frame of a rendering card, including: Acquiring first rendering data and second rendering data in a rendering task, wherein the first rendering data is the rendering data of a frame which is already completed in the rendering task, and the second rendering data is the rendering data of a current frame in the rendering task; Predicting to obtain the current frame completion time based on the first rendering data and the second rendering data; and if the actual rendering time length of the current frame is longer than the current frame completion time length, determining that the rendering task has a card frame. Further, the first rendering data comprises the finishing time length and rendering hardware information of the finished frame, and the second rendering data comprises the rendering hardware information of the current frame; the predicting, based on the first rendering data and the second rendering data, a current frame completion duration includes: Calculating and determining a prediction coefficient based on the finishing time length of the finished frame and rendering hardware information; And calculating the completion time length of the current frame based on the prediction coefficient and the rendering hardware information of the current frame. The rendering hardware information of the completed frames comprises deduction performance coefficients and hardware performance values of rendering devices corresponding to the completed frames, wherein the rendering devices corresponding to the completed frames are rendering devices for completing rendering operation of the completed frames; the calculating and determining a prediction coefficient based on the finishing time length of the finished frame and rendering hardware information comprises the following steps: Taking the product of the deduction performance coefficient of rendering equipment corresponding to a finished frame and the performance value of a rendering device as a first calculation factor of the finished frame; taking the quotient of the finishing time length of the finished frame and the first calculation factor of the finished frame as the second calculation factor of the finished frame; taking the average of all the second calculation factors of the completed frames as the prediction coefficient. Further, the calculating, based on the prediction coefficient and the rendering hardware information of the current frame, the current frame completion duration includes: Calculating a first calculation factor of the current frame, wherein the first calculation factor of the current frame is the product of a deduction performance coefficient and a hardware performance value of rendering equipment for rendering the current frame; And taking the product of the first calculation factor of the current frame and the prediction coefficient as the current frame completion time length. Further, before the acqu