CN117315057A - Method, device, equipment and storage medium for processing special effect resource package - Google Patents

Method, device, equipment and storage medium for processing special effect resource package Download PDF

Info

Publication number
CN117315057A
CN117315057A CN202210697907.2A CN202210697907A CN117315057A CN 117315057 A CN117315057 A CN 117315057A CN 202210697907 A CN202210697907 A CN 202210697907A CN 117315057 A CN117315057 A CN 117315057A
Authority
CN
China
Prior art keywords
rendering
special effect
strategy
configuration information
resource package
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
Application number
CN202210697907.2A
Other languages
Chinese (zh)
Inventor
郑叶欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202210697907.2A priority Critical patent/CN117315057A/en
Publication of CN117315057A publication Critical patent/CN117315057A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation

Abstract

The embodiment of the disclosure provides a processing method, a device, equipment and a storage medium for special effect resource packages. Acquiring a special effect resource package, and rendering the special effect resource package to an interface for display based on preset configuration information; judging whether the processing process of the special effect resource packet reaches a set sampling period or not; if the set sampling period is reached, acquiring rendering parameters of the rendered resource packet in the set sampling period; adjusting the preset configuration information according to the rendering parameters; and continuously rendering the special effect resource package to an interface for display based on the adjusted preset configuration information, and returning to execute the operation of judging whether the processing process of the special effect resource package reaches the set sampling period or not until the special effect resource package processing is completed. The preset configuration information is adjusted in real time based on the rendering parameters of the rendered special effect resource package in the set sampling period, so that the special effect resource package can be rendered to an interface for display efficiently and smoothly.

Description

Method, device, equipment and storage medium for processing special effect resource package
Technical Field
The embodiment of the disclosure relates to the technical field of image processing, in particular to a method, a device, equipment and a storage medium for processing special effect resource packages.
Background
In the multimedia platform, after the special effect resource package is issued to the client, the client analyzes the special effect resource package and renders the special effect resource package so as to realize the target special effect. Because the performances of different terminals are different, the effects rendered by the same special effect resource package on different terminals are greatly different. On high-end equipment, the effect of special effect rendering is generally good; on low-end equipment, special effect rendering may cause problems such as jamming and scalding due to relatively weak operation capability.
Disclosure of Invention
The embodiment of the disclosure provides a processing method, a device, equipment and a storage medium for special effect resource packages, wherein a rendering strategy of the special effect resource packages is adjusted based on operation parameters so as to ensure efficient rendering of the special effect resource packages.
In a first aspect, an embodiment of the present disclosure provides a method for processing a special effect resource package, including:
acquiring a special effect resource package, and rendering the special effect resource package to an interface for display based on preset configuration information;
judging whether the processing process of the special effect resource packet reaches a set sampling period or not;
if the set sampling period is reached, acquiring rendering parameters of the rendered resource packet in the set sampling period;
adjusting the preset configuration information according to the rendering parameters;
And continuously rendering the special effect resource package to an interface for display based on the adjusted preset configuration information, and returning to execute the operation of judging whether the processing process of the special effect resource package reaches the set sampling period or not until the special effect resource package processing is completed.
In a second aspect, an embodiment of the present disclosure further provides a processing apparatus for a special effect resource package, including:
the special effect resource package acquisition module is used for acquiring a special effect resource package, and rendering the special effect resource package to an interface for display based on preset configuration information;
the processing process judging module is used for judging whether the processing process of the special effect resource packet reaches a set sampling period or not;
the rendering parameter acquisition module is used for acquiring rendering parameters of the rendered resource package in a set sampling period if the set sampling period is reached;
the adjusting module is used for adjusting the preset configuration information according to the rendering parameters;
and the display module is used for continuously rendering the special effect resource package to an interface for display based on the adjusted preset configuration information, and returning to execute the operation of judging whether the processing process of the special effect resource package reaches the set sampling period or not until the special effect resource package processing is completed.
In a third aspect, embodiments of the present disclosure further provide an electronic device, including:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method for processing special effects resource packages as described in embodiments of the present disclosure.
In a fourth aspect, the disclosed embodiments also provide a storage medium containing computer-executable instructions that, when executed by a computer processor, are used to perform a method of processing a special effects resource package as described in the disclosed embodiments.
The embodiment of the disclosure discloses a processing method, a device, equipment and a storage medium of a special effect resource package, wherein the special effect resource package is obtained, and the special effect resource package is rendered to an interface for display based on preset configuration information; judging whether the processing process of the special effect resource packet reaches a set sampling period or not; if the set sampling period is reached, acquiring rendering parameters of the rendered resource packet in the set sampling period; adjusting the preset configuration information according to the rendering parameters; and continuously rendering the special effect resource package to an interface for display based on the adjusted preset configuration information, and returning to execute the operation of judging whether the processing process of the special effect resource package reaches the set sampling period or not until the special effect resource package processing is completed. According to the processing method of the special effect resource package, the preset configuration information is adjusted in real time based on the rendering parameters of the rendered special effect resource package in the set sampling period, so that efficient and smooth rendering of the special effect resource package can be guaranteed.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
Fig. 1 is a flow chart of a method for processing a special effect resource package according to an embodiment of the disclosure;
fig. 2 is a flow chart of a method for processing a special effect resource package according to an embodiment of the disclosure;
fig. 3 is a schematic structural diagram of a processing device for special effect resource packages according to an embodiment of the disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
It will be appreciated that prior to using the technical solutions disclosed in the embodiments of the present disclosure, the user should be informed and authorized of the type, usage range, usage scenario, etc. of the personal information related to the present disclosure in an appropriate manner according to the relevant legal regulations.
For example, in response to receiving an active request from a user, a prompt is sent to the user to explicitly prompt the user that the operation it is requesting to perform will require personal information to be obtained and used with the user. Thus, the user can autonomously select whether to provide personal information to software or hardware such as an electronic device, an application program, a server or a storage medium for executing the operation of the technical scheme of the present disclosure according to the prompt information.
As an alternative but non-limiting implementation, in response to receiving an active request from a user, the manner in which the prompt information is sent to the user may be, for example, a popup, in which the prompt information may be presented in a text manner. In addition, a selection control for the user to select to provide personal information to the electronic device in a 'consent' or 'disagreement' manner can be carried in the popup window.
It will be appreciated that the above-described notification and user authorization process is merely illustrative and not limiting of the implementations of the present disclosure, and that other ways of satisfying relevant legal regulations may be applied to the implementations of the present disclosure.
It will be appreciated that the data (including but not limited to the data itself, the acquisition or use of the data) involved in the present technical solution should comply with the corresponding legal regulations and the requirements of the relevant regulations.
Because the performances of different terminal devices are different, the effect difference of the same special effect resource package analyzed on different terminal devices can be larger. On high-end models, the effect of special effect rendering may be quite smooth. However, on the low-end machine type, because of different equipment resources, lower mobile phone operation units, registers and scheduling mechanisms are fewer than those of the high-end machine type, the operation capability is relatively weak, the same amount of operation cannot be completed in unit time during special effect rendering, and the operation time is increased. In addition, as the long-time high-load calculation can lead to severe CPU frequency reduction of terminal equipment heating, the performance degradation is aggravated, effect jamming occurs, and the user experience is obviously reduced.
Fig. 1 is a flow chart of a method for processing a special effect resource package according to an embodiment of the present disclosure, where the method is applicable to a situation of processing a special effect resource package, and the method may be performed by a device for processing a special effect resource package, where the device may be implemented in a form of software and/or hardware, and optionally, may be implemented by an electronic device, where the electronic device may be a mobile terminal, a PC side, a server, or the like.
As shown in fig. 1, the method includes:
s110, acquiring a special effect resource package, and rendering the special effect resource package to an interface for display based on preset configuration information.
The special effect resource package can be understood as a data package for special effect processing of the image by a user. The preset configuration information may be understood as configuration information related to resource consumption, and may include at least one of the following: antialiasing policy on or off, resolution degradation policy on and off, and frame-spaced processing policy on or off. The preset configuration information may be pre-selected by the user according to the requirement, for example, may be: an antialiasing policy is turned on, a resolution degradation policy is turned off, or a frame-spaced processing policy is turned off.
Specifically, the process of rendering the special effect resource package to the interface for display based on the preset configuration information may be: processing the image data of the special effect resource package based on preset configuration information; rendering the processed image data to an interface for display.
In this embodiment, after the client receives the special effect resource package issued by the server, the special effect resource package is parsed, then the parsed special effect resource package is processed based on the preset configuration information, and finally the processed special effect image is obviously displayed on the interface.
S120, judging whether the processing process of the special effect resource packet reaches a set sampling period.
The sampling period may be characterized in terms of time or in terms of the number of effect frames, for example: it may be T seconds as one sampling period, or N special effect frames as one sampling period. The set sampling period may be understood as one or more sampling periods closest to the current time, for example: is the previous sampling period or the previous n sampling periods of the current moment, wherein n is more than or equal to 2.
Specifically, in the processing process of the special effect resource package, the processing time is timed or the processed special effect frames are counted, so as to judge whether the processing time length or the number of the processed special effect frames reaches the set sampling period.
And S130, if the set sampling period is reached, acquiring the rendering parameters of the rendered resource packet in the set sampling period.
Wherein the rendering parameters may include a rendering frame rate and/or a terminal rendering temperature. The rendering frame rate can be understood as the rate at which the terminal device renders the effect frames, i.e. the number of effect frames that can be rendered per unit time; the terminal rendering temperature may be understood as the average temperature of the terminal over one sampling period. The terminal temperature may be detected by a temperature sensor provided on the terminal device. In this embodiment, the current performance of the terminal device may be evaluated from multiple dimensions such as the rendering frame rate and the rendering temperature of the terminal, which is beneficial to the adjustment of the subsequent rendering policy.
In this embodiment, the set sampling period may be understood as one or more sampling periods closest to the current time, for example: is the previous sampling period or the previous n sampling periods of the current moment, wherein n is more than or equal to 2. When the sampling switch is turned on, the terminal device starts timing or counting, and when the time length reaches one sampling period or the number of special effect frames for completing rendering reaches one sampling period, the rendering parameters in the sampling period are obtained. In this embodiment, the sampling period may be continuous or discontinuous. The sampling period is continuously understood as that sampling is continuously performed in the whole rendering process of the special effect resource package, that is, the sampling switch is always turned on. The sampling period is discontinuous, which can be understood as that an idle time is spaced between the sampling periods in the whole rendering process of the special effect resource package. Illustratively, after the sampling switch is turned on, a rendering parameter in the sampling period is obtained after a sampling period, and the sampling switch is turned off, and after an idle time identical to the sampling period is elapsed, the sampling switch is turned on, and so on.
Optionally, if the rendering parameter is a rendering frame rate, the manner of obtaining the rendering parameter of the rendered resource packet in the set sampling period may be: acquiring the rendering time length corresponding to the set sampling period of the rendered resource package and the number of the contained rendered special effect frames; and determining a rendering frame rate according to the rendering time length and the number of the rendered special effects frames, and determining the rendering frame rate as a rendering parameter.
If the sampling period is represented by time, the rendering duration corresponding to the sampling period is the duration of the sampling period, and the number of rendered special effect frames contained in the sampling period can be understood as the number of feature frames rendered in the rendering duration. If the sampling period is represented by the number of special effect frames, the rendering time length corresponding to the sampling period can understand the time length required by the terminal equipment to complete rendering of the special effect frames of the special effect frame number, and the number of the rendered special effect frames contained in the sampling period is the special effect frame number corresponding to the sampling period.
Specifically, the method for determining the rendering frame rate according to the rendering time length and the number of rendered special effects frames may be: dividing the number of the rendered feature frames by the rendering time length to obtain a rendering frame rate. For example, assuming that the number of rendered feature frames is N and the rendering duration is T, the rendering frame rate is f=n/T. In this embodiment, the accuracy of determining the rendering frame rate may be improved by setting the rendering time period corresponding to the sampling period and the number of the rendered special effect frames included to determine the rendering frame rate.
Optionally, the set sampling period includes one or more sampling periods, and if the set sampling period includes a plurality of sampling periods, the manner of obtaining the rendering parameters of the rendered resource packet in the set sampling period may be: and averaging the rendering frame rates corresponding to the sampling periods respectively to obtain an average rendering frame rate, and determining the average rendering frame rate as a rendering parameter.
In this embodiment, if the set sampling period includes one sampling period, the set sampling period is the previous sampling period of the current time, and the rendering frame rate corresponding to the sampling period is determined as the rendering parameter. If the set sampling period includes a plurality of sampling periods, the set sampling period is the first n sampling periods of the current time. For each sampling period, the rendering frame rate is determined by sampling the manner of the above embodiment, which is not described herein. And finally, averaging the rendering frame rates corresponding to the sampling periods respectively to obtain an average rendering frame rate, and determining the average rendering frame rate as a rendering parameter. In this embodiment, the average rendering frame rate of a plurality of rendering periods is determined as the rendering parameter, so that the reliability of the subsequent adjustment of the rendering policy can be improved.
Optionally, if the rendering parameter is a terminal rendering temperature, the manner of obtaining the rendering parameter of the rendered resource packet in the set sampling period may be: acquiring the terminal temperature of the rendered resource package when the rendering of each special effect frame is completed in a set sampling period; and averaging the terminal temperatures corresponding to the special effect frames to obtain terminal rendering temperatures, and determining the terminal rendering temperatures as rendering parameters.
Specifically, in a sampling period, after the terminal finishes rendering a special effect frame, acquiring the temperature of the current terminal equipment detected by the temperature sensor, and finally, averaging the terminal temperatures respectively corresponding to the special effect frames in the sampling period, thereby acquiring the terminal rendering temperature. In this embodiment, if the rendering parameter is the terminal rendering temperature, the sampling period is set to be one, that is, the terminal rendering temperature of the previous sampling period is referred to at the current time, so that the rendering policy can be adjusted in time.
And S140, adjusting preset configuration information according to the rendering parameters.
And S150, continuously rendering the special effect resource package to the interface for display based on the adjusted preset configuration information, and returning to execute the operation of S120 until the special effect resource package processing is completed.
The preset configuration information may include at least one of the following: antialiasing policies (AA), resolution degradation policies, frame-spaced processing policies, and the like. The antialiasing policy may include: multiple sampling antialiasing strategies (MultiSampling Anti-Aliasing, MSAA), fast approximate antialiasing (Fast Approximate Anti-Aliasing, FXaA), overlay sampling antialiasing (Coverage Sampling Antialiasing, CSAA), multi-frame sampling antialiasing (Custom Filter Anti-Aliasing, MFAA), and the like. The antialiasing policy can be understood as: the resolution is improved under the condition that the display size is unchanged, and single pixels become extremely small, so that the jaggy feeling of a picture is greatly reduced. Resolution degradation strategies can be understood as reducing the display resolution of the effect frame, which can be anywhere between 0.5-0.7 times the original resolution. The frame-separating processing strategy can be understood as that corresponding algorithm is called every set frame to process special effect data, so as to render frames based on the processed data, for example: the special effect data is processed every M frames.
In this embodiment, before the special effect resource package starts to be rendered, each preset configuration information may be turned off or turned on according to the configuration information or a selection operation of a user. For example: in order to make the special effect resource package achieve the optimal display effect, the configuration information may be: an antialiasing policy is turned on, a resolution degradation policy is turned off, and a frame-separation processing policy is turned off.
Optionally, the manner of adjusting the preset configuration information according to the rendering parameters may be: and if the rendering frame rate is smaller than the first frame rate threshold and/or the rendering temperature of the terminal is larger than the first temperature threshold, adjusting the preset configuration information.
The first frame rate threshold may be understood as a desired minimum rendering frame rate, and the first temperature threshold may be understood as a highest temperature that the terminal can tolerate, and may be set by a user.
In this embodiment, if the rendering frame rate is smaller than the first frame rate threshold, it indicates that the special effect cannot be smoothly played, and a stuck condition occurs. And if the rendering temperature of the terminal is greater than the first temperature threshold, the current terminal is seriously heated. At this time, the processing performance of the terminal is poor, and the preset configuration information needs to be adjusted to improve the rendering frame rate and reduce the rendering temperature of the terminal, so that the problems of jamming and serious heating of the terminal in the rendering process can be avoided.
Optionally, if the rendering frame rate is smaller than the first frame rate threshold and/or the rendering temperature of the terminal is greater than the first temperature threshold, the process of adjusting the preset configuration information may be: if the preset configuration information comprises that the anti-aliasing strategy is turned on or turned off, judging whether the anti-aliasing strategy is turned off or not; if the anti-aliasing strategy is not closed, closing the anti-aliasing strategy; if the antialiasing policy is closed and the preset configuration information comprises that the resolution degradation policy is opened, judging whether the resolution degradation policy is opened or not; if the resolution degradation strategy is not started, starting the resolution degradation strategy; if the resolution degradation strategy is started and the preset configuration information comprises that the frame separation processing strategy is started or closed, judging whether the frame separation processing strategy is started or not; and if the frame separation processing strategy is not started, starting the frame separation processing strategy.
In this embodiment, if the antialiasing policy is not closed, the antialiasing policy is closed, and the rendering of the special effect resource packet is continued based on the configuration of the closed antialiasing policy, and the execution is returned to determine whether the processing procedure of the special effect resource packet reaches the set sampling period, if the processing procedure reaches the set sampling period, the rendering parameters of the rendered resource packet in the set sampling period are obtained, and the operation of adjusting the preset configuration information according to the rendering parameters is performed. If the antialiasing strategy is closed and the resolution degradation strategy is not opened, the resolution degradation strategy is opened, the special effect resource package is continuously rendered based on the configuration of the closed antialiasing strategy and the opened resolution degradation strategy, the execution is returned to judge whether the processing process of the special effect resource package reaches the set sampling period, if the processing process reaches the set sampling period, the rendering parameters of the rendered resource package in the set sampling period are obtained, and the preset configuration information is adjusted according to the rendering parameters. If the antialiasing strategy is closed, the resolution degradation strategy is opened and the frame separation processing strategy is not opened, the frame separation processing strategy is opened, the special effect resource package is continuously rendered based on the configuration of the closed antialiasing strategy, the opened resolution degradation strategy and the opened frame separation processing strategy, the execution is returned to judge whether the processing process of the special effect resource package reaches a set sampling period, if the processing process reaches the set sampling period, the rendering parameters of the rendered resource package in the set sampling period are obtained, and the preset configuration information is adjusted according to the rendering parameters. In this embodiment, through the rendering strategy capable of reducing the calculated amount, the rendering efficiency of the terminal is improved, and the rendering temperature of the terminal is reduced, so as to ensure smooth rendering of the special effect resource package, and avoid problems of jamming and serious terminal heating in the rendering process.
Optionally, the manner of adjusting the preset configuration information according to the rendering parameters may be: and if the rendering frame rate is greater than the second frame rate threshold and/or the rendering temperature of the terminal is less than the second temperature threshold, adjusting the preset configuration information.
Wherein the second frame rate threshold is greater than the first frame rate threshold and the second temperature threshold is less than the first temperature threshold. The second frame rate threshold and the second temperature threshold may both be set by a user. In this embodiment, the second frame rate threshold may be a sum of the first frame rate threshold and the set recovery frame rate, and the set recovery frame rate may be set by the user.
In this embodiment, if the rendering frame rate is greater than the second frame rate threshold, it indicates that the special effect can be played normally and smoothly at this time. And if the rendering temperature of the terminal is smaller than the second temperature threshold, the terminal indicates that the heating condition of the terminal equipment is normal at the moment. At this time, the processing performance of the terminal is better, and in order to further improve the display effect of the special effect, the preset configuration information can be adjusted.
Optionally, if the rendering frame rate is greater than the second frame rate threshold and/or the rendering temperature of the terminal is less than the second temperature threshold, the process of adjusting the preset configuration information may be: if the preset configuration information comprises that the frame separation processing strategy is started or closed, judging whether the frame separation processing strategy is started, and if the frame separation processing strategy is started, closing the frame separation processing strategy; if the frame separation processing strategy is not started and the preset configuration information comprises that the resolution degradation strategy is started, judging whether the resolution degradation strategy is started or not; if the resolution degradation strategy is started, closing the resolution degradation strategy; if the resolution degradation strategy is not started and the preset configuration information comprises that the anti-aliasing strategy is started or closed, judging whether the anti-aliasing strategy is closed or not; if the antialiasing policy is not closed, the antialiasing policy is closed.
If the frame separation processing strategy is started, the frame separation processing strategy is closed, the special effect resource package is continuously rendered based on the configuration of the closed frame separation processing strategy, the execution is returned to judge whether the processing process of the special effect resource package reaches the set sampling period, if the processing process reaches the set sampling period, the rendering parameters of the rendered resource package in the set sampling period are obtained, and the preset configuration information is adjusted according to the rendering parameters. If the frame separation processing strategy is not started and the resolution degradation strategy is started, the resolution degradation strategy is closed, the special effect resource package is continuously rendered based on the configuration of the frame separation processing strategy and the resolution degradation strategy, the execution is returned to judge whether the processing process of the special effect resource package reaches the set sampling period, if the processing process reaches the set sampling period, the rendering parameters of the rendered resource package in the set sampling period are obtained, and the preset configuration information is adjusted according to the rendering parameters. If the frame separation processing strategy is not started, the resolution degradation strategy is not started and the anti-aliasing strategy is closed, starting the anti-aliasing strategy, continuing to render the special effect resource package based on the configuration of closing the frame separation processing strategy and closing the resolution degradation strategy, starting the anti-aliasing strategy, returning to execute the operation of judging whether the processing process of the special effect resource package reaches the set sampling period, if the processing process reaches the set sampling period, acquiring the rendering parameters of the rendered resource package in the set sampling period, and adjusting the preset configuration information according to the rendering parameters. In this embodiment, when the performance of the terminal device is good, some rendering strategies are turned on or off to optimize the special effect frame, so that the display effect of the special effect can be improved.
Based on the foregoing embodiments, fig. 2 is an exemplary diagram of a method for processing a special effect resource packet in this embodiment, where, as shown in fig. 2, a terminal device processes the special effect resource packet in real time, and obtains a rendering frame rate and/or a terminal rendering temperature of the special effect resource packet in a set sampling period during processing the special effect resource packet. If the rendering frame rate is smaller than the first frame rate threshold value and/or the rendering temperature of the terminal is larger than the first temperature threshold value, judging whether the antialiasing strategy is closed or not; if the anti-aliasing strategy is not closed, closing the anti-aliasing strategy; if the antialiasing strategy is closed, judging whether the resolution degradation strategy is opened or not; if the resolution degradation strategy is not started, starting the resolution degradation strategy; if the resolution degradation strategy is started, judging whether the frame separation processing strategy is started or not; and if the frame separation processing strategy is not started, starting the frame separation processing strategy. If the rendering frame rate is greater than a second frame rate threshold and/or the rendering temperature of the terminal is less than a second temperature threshold, judging whether the frame separation processing strategy is started, and if the frame separation processing strategy is started, closing the frame separation processing strategy; if the frame separation processing strategy is not started, judging whether the resolution degradation strategy is started or not; if the resolution degradation strategy is started, closing the resolution degradation strategy; if the resolution degradation strategy is not started, judging whether the anti-aliasing strategy is closed or not; if the antialiasing policy is not closed, the antialiasing policy is closed.
According to the technical scheme, in the special effect resource package rendering process, a special effect resource package is obtained, and the special effect resource package is rendered to an interface for display based on preset configuration information; judging whether the processing process of the special effect resource packet reaches a set sampling period or not; if the set sampling period is reached, acquiring rendering parameters of the rendered resource packet in the set sampling period; adjusting the preset configuration information according to the rendering parameters; and continuously rendering the special effect resource package to an interface for display based on the adjusted preset configuration information, and returning to execute the operation of judging whether the processing process of the special effect resource package reaches the set sampling period or not until the special effect resource package processing is completed. According to the processing method of the special effect resource package, the preset configuration information is adjusted in real time based on the rendering parameters of the rendered special effect resource package in the set sampling period, so that efficient and smooth rendering of the special effect resource package can be guaranteed.
Fig. 3 is a schematic structural diagram of a processing device for special effect resource packages according to an embodiment of the present disclosure, where, as shown in fig. 3, the device includes:
the special effect resource package acquisition module 310 is configured to acquire a special effect resource package, and render the special effect resource package to an interface for display based on preset configuration information;
A processing procedure judging module 320, configured to judge whether the processing procedure of the special effect resource packet reaches a set sampling period;
a rendering parameter obtaining module 330, configured to obtain rendering parameters of the rendered resource packet in the set sampling period if the set sampling period is reached;
the adjustment module 340 is configured to adjust preset configuration information according to the rendering parameters;
the display module 350 is configured to continue rendering the special effect resource package to the interface for display based on the adjusted preset configuration information, and return to performing an operation of determining whether the processing procedure of the special effect resource package reaches the set sampling period until the special effect resource package processing is completed.
Optionally, the special effects resource package obtaining module 310 is further configured to:
processing the image data of the special effect resource package based on preset configuration information;
rendering the processed image data to an interface for display.
Optionally, the rendering parameters include a rendering frame rate and/or a terminal rendering temperature.
Optionally, the rendering parameter obtaining module 330 is further configured to:
acquiring the corresponding rendering time length of the rendered resource package in a set sampling period and the number of the contained rendered special effect frames;
and determining a rendering frame rate according to the rendering time length and the number of the rendered special effects frames, and determining the rendering frame rate as a rendering parameter.
Optionally, the set sampling period includes one or more sampling periods, and if the set sampling period includes a plurality of sampling periods, the rendering parameter obtaining module 330 is further configured to:
and averaging the rendering frame rates corresponding to the sampling periods respectively to obtain an average rendering frame rate, and determining the average rendering frame rate as a rendering parameter.
Optionally, the rendering parameter obtaining module 330 is further configured to:
acquiring the terminal temperature of the rendered resource package when the special effect frame is rendered in a set sampling period;
and averaging the terminal temperatures corresponding to the special effect frames to obtain terminal rendering temperatures, and determining the terminal rendering temperatures as rendering parameters.
Optionally, the adjusting module 340 is further configured to:
and if the rendering frame rate is smaller than the first frame rate threshold and/or the rendering temperature of the terminal is larger than the first temperature threshold, adjusting the preset configuration information.
Optionally, the preset configuration information includes at least one of: antialiasing policy on or off, resolution degradation policy on and off, and frame-spaced processing policy on or off.
Optionally, the adjusting module 340 is further configured to:
if the preset configuration information comprises that the anti-aliasing strategy is turned on or turned off, judging whether the anti-aliasing strategy is turned off or not; if the anti-aliasing strategy is not closed, closing the anti-aliasing strategy;
If the antialiasing policy is closed and the preset configuration information comprises that the resolution degradation policy is opened, judging whether the resolution degradation policy is opened or not;
if the resolution degradation strategy is not started, starting the resolution degradation strategy;
if the resolution degradation strategy is started and the preset configuration information comprises that the frame separation processing strategy is started or closed, judging whether the frame separation processing strategy is started or not;
and if the frame separation processing strategy is not started, starting the frame separation processing strategy.
Optionally, the adjusting module 340 is further configured to:
and if the rendering frame rate is greater than a second frame rate threshold and/or the rendering temperature of the terminal is less than a second temperature threshold, adjusting the preset configuration information, wherein the second frame rate threshold is greater than the first frame rate threshold, and the second temperature threshold is less than the first temperature threshold.
Optionally, the adjusting module 340 is further configured to:
if the preset configuration information comprises that the frame separation processing strategy is started or closed, judging whether the frame separation processing strategy is started, and if the frame separation processing strategy is started, closing the frame separation processing strategy;
if the frame separation processing strategy is not started and the preset configuration information comprises that the resolution degradation strategy is started, judging whether the resolution degradation strategy is started or not;
If the resolution degradation strategy is started, closing the resolution degradation strategy;
if the resolution degradation strategy is not started and the preset configuration information comprises that the anti-aliasing strategy is started or closed, judging whether the anti-aliasing strategy is closed or not;
if the antialiasing policy is not closed, the antialiasing policy is closed.
The rendering device of the special effect resource package provided by the embodiment of the disclosure can execute the processing method of the special effect resource package provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that each unit and module included in the above apparatus are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for convenience of distinguishing from each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure. Referring now to fig. 4, a schematic diagram of an electronic device (e.g., a terminal device or server in fig. 4) 500 suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 4 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 4, the electronic device 500 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 501, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An edit/output (I/O) interface 505 is also connected to bus 504.
In general, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 507 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 508 including, for example, magnetic tape, hard disk, etc.; and communication means 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 4 shows an electronic device 500 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or from the storage means 508, or from the ROM 502. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 501.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The electronic device provided by the embodiment of the present disclosure and the processing method of the special effect resource package provided by the foregoing embodiment belong to the same inventive concept, and technical details not described in detail in the present embodiment may be referred to the foregoing embodiment, and the present embodiment has the same beneficial effects as the foregoing embodiment.
The embodiment of the present disclosure provides a computer storage medium having stored thereon a computer program which, when executed by a processor, implements the method for processing a special effects resource package provided in the above embodiment.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to:
the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a special effect resource package, and rendering the special effect resource package to an interface for display based on preset configuration information; judging whether the processing process of the special effect resource packet reaches a set sampling period or not; if the set sampling period is reached, acquiring rendering parameters of the rendered resource packet in the set sampling period; adjusting the preset configuration information according to the rendering parameters; and continuously rendering the special effect resource package to an interface for display based on the adjusted preset configuration information, and returning to execute the operation of judging whether the processing process of the special effect resource package reaches the set sampling period or not until the special effect resource package processing is completed.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of the unit does not in any way constitute a limitation of the unit itself, for example the first acquisition unit may also be described as "unit acquiring at least two internet protocol addresses".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a method for processing a special effect resource package, including:
acquiring a special effect resource package, and rendering the special effect resource package to an interface for display based on preset configuration information;
judging whether the processing process of the special effect resource packet reaches a set sampling period or not;
if the set sampling period is reached, acquiring rendering parameters of the rendered resource packet in the set sampling period;
adjusting the preset configuration information according to the rendering parameters;
and continuously rendering the special effect resource package to an interface for display based on the adjusted preset configuration information, and returning to execute the operation of judging whether the processing process of the special effect resource package reaches the set sampling period or not until the special effect resource package processing is completed.
Further, rendering the special effect resource package to an interface for display based on preset configuration information comprises the following steps:
processing the image data of the special effect resource package based on the preset configuration information;
rendering the processed image data to an interface for display.
Further, the rendering parameters include a rendering frame rate and/or a terminal rendering temperature.
Further, obtaining the rendering parameters of the rendered resource package in the set sampling period includes:
acquiring the corresponding rendering time length of the rendered resource package in the set sampling period and the number of the contained rendered special effect frames;
and determining a rendering frame rate according to the rendering time length and the number of the rendered special effect frames, and determining the rendering frame rate as a rendering parameter.
Further, the set sampling period includes one or more sampling periods, and if the set sampling period includes a plurality of sampling periods, acquiring rendering parameters of the rendered resource packet in the set sampling period includes:
and averaging the rendering frame rates corresponding to the sampling periods respectively to obtain an average rendering frame rate, and determining the average rendering frame rate as a rendering parameter.
Further, obtaining the rendering parameters of the rendered resource package in the set sampling period includes:
acquiring the terminal temperature of the rendered resource package when the special effect frame is rendered in a set sampling period;
and averaging the terminal temperature corresponding to the special effect frame to obtain a terminal rendering temperature, and determining the terminal rendering temperature as a rendering parameter.
Further, adjusting the preset configuration information according to the rendering parameters includes:
and if the rendering frame rate is smaller than a first frame rate threshold and/or the rendering temperature of the terminal is larger than a first temperature threshold, adjusting the preset configuration information.
Further, the preset configuration information includes at least one of the following: antialiasing policy on or off, resolution degradation policy on and off, and frame-spaced processing policy on or off.
Further, if the rendering frame rate is smaller than a first frame rate threshold and/or the terminal rendering temperature is greater than a first temperature threshold, adjusting the preset configuration information includes:
if the preset configuration information comprises the opening or closing of the anti-aliasing strategy, judging whether the anti-aliasing strategy is closed or not; if the anti-aliasing strategy is not closed, closing the anti-aliasing strategy;
if the antialiasing policy is closed and the preset configuration information includes that the resolution degradation policy is opened, judging whether the resolution degradation policy is opened or not;
if the resolution degradation strategy is not started, starting the resolution degradation strategy;
if the resolution degradation strategy is started and the preset configuration information comprises that the frame separation processing strategy is started or closed, judging whether the frame separation processing strategy is started or not;
And if the frame separation processing strategy is not started, starting the frame separation processing strategy.
Further, adjusting the preset configuration information according to the rendering parameters includes:
and if the rendering frame rate is greater than a second frame rate threshold and/or the rendering temperature of the terminal is less than a second temperature threshold, adjusting the preset configuration information, wherein the second frame rate threshold is greater than the first frame rate threshold, and the second temperature threshold is less than the first temperature threshold.
Further, if the rendering frame rate is greater than a second frame rate threshold and/or the terminal rendering temperature is less than a second temperature threshold, adjusting the preset configuration information includes:
if the preset configuration information comprises that the frame separation processing strategy is started or closed, judging whether the frame separation processing strategy is started or not, and if the frame separation processing strategy is started, closing the frame separation processing strategy;
if the frame separation processing strategy is not started and the preset configuration information comprises a resolution degradation strategy which is started, judging whether the resolution degradation strategy is started or not;
if the resolution degradation strategy is started, closing the resolution degradation strategy;
If the resolution degradation strategy is not started and the preset configuration information comprises that the anti-aliasing strategy is started or closed, judging whether the anti-aliasing strategy is closed or not;
and if the anti-aliasing strategy is not closed, closing the anti-aliasing strategy.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.

Claims (14)

1. The method for processing the special effect resource package is characterized by comprising the following steps:
acquiring a special effect resource package, and rendering the special effect resource package to an interface for display based on preset configuration information;
judging whether the processing process of the special effect resource packet reaches a set sampling period or not;
if the set sampling period is reached, acquiring rendering parameters of the rendered resource packet in the set sampling period;
adjusting the preset configuration information according to the rendering parameters;
and continuously rendering the special effect resource package to an interface for display based on the adjusted preset configuration information, and returning to execute the operation of judging whether the processing process of the special effect resource package reaches the set sampling period or not until the special effect resource package processing is completed.
2. The method of claim 1, wherein rendering the special effects resource package to an interface for display based on preset configuration information comprises:
Processing the image data of the special effect resource package based on the preset configuration information;
rendering the processed image data to an interface for display.
3. The method of claim 1, wherein the rendering parameters comprise a rendering frame rate and/or a terminal rendering temperature.
4. A method according to claim 3, wherein obtaining rendering parameters of the rendered resource packages within the set sampling period comprises:
acquiring the corresponding rendering time length of the rendered resource package in the set sampling period and the number of the contained rendered special effect frames;
and determining a rendering frame rate according to the rendering time length and the number of the rendered special effect frames, and determining the rendering frame rate as a rendering parameter.
5. The method of claim 4, wherein the set sampling period comprises one or more sampling periods, and wherein if the set sampling period comprises a plurality of sampling periods, obtaining rendering parameters of the rendered resource package within the set sampling period comprises:
and averaging the rendering frame rates corresponding to the sampling periods respectively to obtain an average rendering frame rate, and determining the average rendering frame rate as a rendering parameter.
6. A method according to claim 3, wherein obtaining rendering parameters of the rendered resource packages within the set sampling period comprises:
acquiring the terminal temperature of the rendered resource package when the special effect frame is rendered in a set sampling period;
and averaging the terminal temperature corresponding to the special effect frame to obtain a terminal rendering temperature, and determining the terminal rendering temperature as a rendering parameter.
7. A method according to claim 3, wherein adjusting the preset configuration information according to the rendering parameters comprises:
and if the rendering frame rate is smaller than a first frame rate threshold and/or the rendering temperature of the terminal is larger than a first temperature threshold, adjusting the preset configuration information.
8. The method of claim 7, wherein the preset configuration information comprises at least one of: antialiasing policy on or off, resolution degradation policy on and off, and frame-spaced processing policy on or off.
9. The method according to claim 8, wherein adjusting the preset configuration information if the rendering frame rate is less than a first frame rate threshold and/or the terminal rendering temperature is greater than a first temperature threshold comprises:
If the preset configuration information comprises the opening or closing of the anti-aliasing strategy, judging whether the anti-aliasing strategy is closed or not; if the anti-aliasing strategy is not closed, closing the anti-aliasing strategy;
if the antialiasing policy is closed and the preset configuration information includes that the resolution degradation policy is opened, judging whether the resolution degradation policy is opened or not;
if the resolution degradation strategy is not started, starting the resolution degradation strategy;
if the resolution degradation strategy is started and the preset configuration information comprises that the frame separation processing strategy is started or closed, judging whether the frame separation processing strategy is started or not;
and if the frame separation processing strategy is not started, starting the frame separation processing strategy.
10. The method of claim 8, wherein adjusting the preset configuration information according to the rendering parameters comprises:
and if the rendering frame rate is greater than a second frame rate threshold and/or the rendering temperature of the terminal is less than a second temperature threshold, adjusting the preset configuration information, wherein the second frame rate threshold is greater than the first frame rate threshold, and the second temperature threshold is less than the first temperature threshold.
11. The method according to claim 10, wherein adjusting the preset configuration information if the rendering frame rate is greater than a second frame rate threshold and/or the terminal rendering temperature is less than a second temperature threshold comprises:
if the preset configuration information comprises that the frame separation processing strategy is started or closed, judging whether the frame separation processing strategy is started or not, and if the frame separation processing strategy is started, closing the frame separation processing strategy;
if the frame separation processing strategy is not started and the preset configuration information comprises a resolution degradation strategy which is started, judging whether the resolution degradation strategy is started or not;
if the resolution degradation strategy is started, closing the resolution degradation strategy;
if the resolution degradation strategy is not started and the preset configuration information comprises that the anti-aliasing strategy is started or closed, judging whether the anti-aliasing strategy is closed or not;
and if the anti-aliasing strategy is not closed, closing the anti-aliasing strategy.
12. A processing apparatus for special effect resource packages, comprising:
the special effect resource package acquisition module is used for acquiring a special effect resource package, and rendering the special effect resource package to an interface for display based on preset configuration information;
The processing process judging module is used for judging whether the processing process of the special effect resource packet reaches a set sampling period or not;
the rendering parameter acquisition module is used for acquiring rendering parameters of the rendered resource package in a set sampling period if the set sampling period is reached;
the adjusting module is used for adjusting the preset configuration information according to the rendering parameters;
and the display module is used for continuously rendering the special effect resource package to an interface for display based on the adjusted preset configuration information, and returning to execute the operation of judging whether the processing process of the special effect resource package reaches the set sampling period or not until the special effect resource package processing is completed.
13. An electronic device, the electronic device comprising:
one or more processors;
storage means for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method of processing a special effects resource package as recited in any one of claims 1-11.
14. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the method of processing the effect resource package of any of claims 1-11.
CN202210697907.2A 2022-06-20 2022-06-20 Method, device, equipment and storage medium for processing special effect resource package Pending CN117315057A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210697907.2A CN117315057A (en) 2022-06-20 2022-06-20 Method, device, equipment and storage medium for processing special effect resource package

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210697907.2A CN117315057A (en) 2022-06-20 2022-06-20 Method, device, equipment and storage medium for processing special effect resource package

Publications (1)

Publication Number Publication Date
CN117315057A true CN117315057A (en) 2023-12-29

Family

ID=89254021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210697907.2A Pending CN117315057A (en) 2022-06-20 2022-06-20 Method, device, equipment and storage medium for processing special effect resource package

Country Status (1)

Country Link
CN (1) CN117315057A (en)

Similar Documents

Publication Publication Date Title
US20230251703A1 (en) Switching method between running modes of application program, apparatus, electronic device and storage medium
US11856266B2 (en) Bullet-screen comment display method and apparatus, electronic device, and computer storage medium
CN113395572B (en) Video processing method and device, storage medium and electronic equipment
CN110636367A (en) Video loading method and device, terminal equipment and medium
CN114699767A (en) Game data processing method, device, medium and electronic equipment
CN110633433B (en) Page caching method and device, electronic equipment and storage medium
CN114786055A (en) Preloading method, preloading device, electronic equipment and medium
CN115474086B (en) Play control method, device, electronic equipment and storage medium
CN114584826B (en) Video dynamic downloading method and device, electronic equipment and storage medium
CN117315057A (en) Method, device, equipment and storage medium for processing special effect resource package
CN112636971B (en) Service degradation method and device, electronic equipment and storage medium
CN112867119B (en) Terminal control method, device, terminal and storage medium
CN110809166B (en) Video data processing method and device and electronic equipment
CN114063843A (en) Interaction method, interaction device, electronic equipment, storage medium and computer program product
CN114915849B (en) Video preloading method, device, equipment and medium
CN117975983A (en) Voice processing method, device, equipment and storage medium
CN117793444A (en) Video caching method and device, electronic equipment and storage medium
CN111949325B (en) Display method and device and electronic equipment
CN115103023B (en) Video caching method, device, equipment and storage medium
CN117641022A (en) Video playing method and device, electronic equipment and medium
CN116304427A (en) Preloading method and device, storage medium and electronic equipment
CN116208787A (en) Video downloading control method, device, equipment and storage medium
CN116156267A (en) Virtual resource acquisition and transmission method and device, storage medium and electronic equipment
CN116958857A (en) Model training method, video processing method, device, medium and equipment
CN115775290A (en) Animation frame rate processing method, device, equipment and storage medium

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