WO2023130808A1 - 动画帧的显示方法、装置、设备及存储介质 - Google Patents
动画帧的显示方法、装置、设备及存储介质 Download PDFInfo
- Publication number
- WO2023130808A1 WO2023130808A1 PCT/CN2022/127133 CN2022127133W WO2023130808A1 WO 2023130808 A1 WO2023130808 A1 WO 2023130808A1 CN 2022127133 W CN2022127133 W CN 2022127133W WO 2023130808 A1 WO2023130808 A1 WO 2023130808A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- animation
- virtual model
- update frequency
- virtual
- frame
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 95
- 230000000875 corresponding effect Effects 0.000 claims description 108
- 238000012216 screening Methods 0.000 claims description 27
- 238000004590 computer program Methods 0.000 claims description 22
- 238000009877 rendering Methods 0.000 claims description 10
- 230000001360 synchronised effect Effects 0.000 claims description 9
- 230000002596 correlated effect Effects 0.000 claims description 5
- 230000003993 interaction Effects 0.000 abstract description 7
- 230000008569 process Effects 0.000 description 29
- 230000000694 effects Effects 0.000 description 28
- 238000001914 filtration Methods 0.000 description 17
- 238000010586 diagram Methods 0.000 description 14
- 238000005457 optimization Methods 0.000 description 14
- 230000009467 reduction Effects 0.000 description 12
- 238000012545 processing Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 9
- 238000004364 calculation method Methods 0.000 description 8
- 230000009286 beneficial effect Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000002452 interceptive effect Effects 0.000 description 5
- 238000009499 grossing Methods 0.000 description 4
- 238000004088 simulation Methods 0.000 description 3
- 230000004931 aggregating effect Effects 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000001276 controlling effect Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002411 adverse Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000009193 crawling Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/55—Controlling game characters or game objects based on the game progress
- A63F13/56—Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T13/00—Animation
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/52—Controlling the output signals based on the game progress involving aspects of the displayed game scene
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/80—Special adaptations for executing a specific game genre or game mode
- A63F13/837—Shooting of targets
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/70—Denoising; Smoothing
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/60—Methods for processing data by generating or executing the game program
- A63F2300/66—Methods for processing data by generating or executing the game program for rendering three dimensional images
- A63F2300/6607—Methods for processing data by generating or executing the game program for rendering three dimensional images for animating game characters, e.g. skeleton kinematics
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2340/00—Aspects of display data processing
- G09G2340/04—Changes in size, position or resolution of an image
- G09G2340/0407—Resolution change, inclusive of the use of different resolutions for different screen areas
- G09G2340/0435—Change or adaptation of the frame rate of the video stream
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2350/00—Solving problems of bandwidth in display systems
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/001—Arbitration of resources in a display system, e.g. control of access to frame buffer by video controller and/or main processor
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/36—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
- G09G5/363—Graphics controllers
Definitions
- the embodiments of the present application relate to the field of computer technology, and in particular, to a display method, device, device, and storage medium of an animation frame.
- the virtual environment includes at least one virtual model.
- the terminal displays the picture of the virtual environment, it will display the animation frame of the at least one virtual model in the picture. , for viewing by the interacting object.
- the animation frames corresponding to the virtual model are displayed directly according to the update frequency of the initial animation of the virtual model.
- the initial animation update frequency of the virtual model is determined based on the ratio of the rendering size of the virtual model to the reference size.
- Embodiments of the present application provide a method, device, device, and storage medium for displaying animation frames, which can be used to improve the smoothness of displaying animation frames. Described technical scheme is as follows:
- an embodiment of the present application provides a method for displaying an animation frame, the method comprising:
- a device for displaying animation frames comprising:
- the first acquisition unit is configured to acquire a resource consumption index based on the initial animation update frequency of at least one virtual model, and the resource consumption index is used to indicate resources that need to be consumed for animation update according to the initial animation update frequency of the at least one virtual model quantity;
- a second acquiring unit configured to acquire a target animation update frequency of the at least one virtual model based on the resource consumption index and the initial animation update frequency
- a display unit configured to display animation frames corresponding to the at least one virtual model according to the target animation update frequency.
- a computer device in another aspect, includes a processor and a memory, at least one computer program is stored in the memory, the at least one computer program is loaded and executed by the processor, so that all The above-mentioned computer device realizes the display method of any one of the above-mentioned animation frames.
- a non-volatile computer-readable storage medium wherein at least one computer program is stored in the non-volatile computer-readable storage medium, and the at least one computer program is loaded and executed by a processor , so that the computer can realize any of the animation frame display methods described above.
- a computer program product includes a computer program or a computer instruction, the computer program or the computer instruction is loaded and executed by a processor, so that the computer implements any of the above-mentioned The display method for animation frames.
- the animation frame corresponding to at least one virtual model is displayed according to the target animation update frequency of at least one virtual model, wherein the target animation update frequency of at least one virtual model is at least one virtual model's initial Animation update frequency is determined based on resource consumption metrics.
- the target animation update frequency of at least one virtual model resource consumption can be effectively and globally controlled, which is beneficial to improving the display fluency of animation frames, and further improving the human-computer interaction rate.
- FIG. 1 is a schematic diagram of an implementation environment of a method for displaying animation frames provided in an embodiment of the present application
- FIG. 2 is a flow chart of a method for displaying an animation frame provided in an embodiment of the present application
- FIG. 3 is a schematic diagram of an animation update synchronization situation provided by an embodiment of the present application.
- Fig. 4 is a schematic diagram of a screen display effect provided by an embodiment of the present application.
- Fig. 5 is a schematic diagram of a screen display effect provided by an embodiment of the present application.
- Fig. 6 is a schematic diagram of a screen display effect provided by an embodiment of the present application.
- Fig. 7 is a schematic diagram of the distribution of a virtual model provided by the embodiment of the present application.
- Fig. 8 is a schematic diagram of the distribution of a virtual model provided by the embodiment of the present application.
- Fig. 9 is a schematic diagram of a screen display effect provided by an embodiment of the present application.
- Fig. 10 is a schematic diagram of a screen display effect provided by an embodiment of the present application.
- Fig. 11 is a schematic diagram of a display process of an animation frame provided by an embodiment of the present application.
- Fig. 12 is a schematic diagram of a display device for an animation frame provided by an embodiment of the present application.
- FIG. 13 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
- Virtual environment an environment provided (or displayed) when an application program runs on a terminal.
- the virtual environment refers to an environment created for virtual objects to perform activities.
- the virtual environment may be a two-dimensional virtual environment, a 2.5-dimensional virtual environment or a three-dimensional virtual environment.
- the virtual environment can be a simulation environment of the real world, a semi-simulation and semi-fictional environment, or a purely fictitious environment.
- Virtual object refers to the movable object in the virtual environment.
- the virtual object may be a virtual character, a virtual animal, an animation character, or the like.
- Interactive objects can manipulate virtual objects through peripheral components or by clicking on a touch screen.
- Each virtual object has its own shape and volume in the virtual environment, occupying a part of the space in the virtual environment.
- the virtual object is a three-dimensional model created based on animation skeleton technology.
- Virtual model refers to a model composed of skeletons in a virtual environment.
- Virtual models include but are not limited to virtual objects, virtual props, virtual pets, etc.
- the terminal presents the virtual model by displaying the animation of the virtual model, and the animation of the virtual model is composed of multiple animation frames.
- Each animation frame in the animation of the virtual model is obtained through complex logic calculation based on the relationship between the bones, which consumes more resources (such as CPU (Central Processing Unit, central processing unit) resources).
- CPU Central Processing Unit, central processing unit
- FPS Frames Per Second, the number of frames per second to update the picture: referred to as frame rate, the higher the frame rate, the smoother the picture experience.
- URO Update Rate Optimizations, animation update frequency optimization
- URO can be used to describe the animation update frequency, for example, URO1 means that the animation is updated every frame, URO2 means that the animation is updated every two frames, and so on.
- Resource consumption The resources consumed by the animation update of the virtual model.
- the consumed resources refer to the CPU time consumed. The higher the resource consumption, the longer the CPU time required for each frame update.
- the animation frames corresponding to the virtual model are displayed directly according to the update frequency of the initial animation of the virtual model.
- the initial animation update frequency of the virtual model is determined based on the ratio of the rendering size of the virtual model to the reference size.
- the information considered in the way of displaying animation frames based on the initial animation update frequency of the virtual model is relatively limited, and it is easy to reduce the display fluency of animation frames, resulting in a low rate of human-computer interaction.
- FIG. 1 shows a schematic diagram of an implementation environment of a method for displaying an animation frame provided by an embodiment of the present application.
- the implementation environment includes: a terminal 11 and a server 12 .
- the terminal 11 installs and runs applications supporting a virtual environment.
- the interactive object can use the terminal 11 to control the virtual object to perform activities in the virtual environment provided by the application program, the activities include but not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, Throwing, changing positions, etc.
- the terminal 11 is also referred to as an electronic device.
- the embodiment of the present application does not limit the application programs that support the virtual environment.
- the application programs that support the virtual environment include but are not limited to: VR (Virtual Reality, virtual reality) applications, AR (Augmented Reality, augmented reality) Class applications, 3D map programs, game applications, social applications, interactive entertainment applications, etc.
- game applications include but are not limited to shooting games, MOBA (Multiplayer Online Battle Arena, multiplayer online battle arena) games, SLG (Simulation Game, strategy games) and the like.
- Shooting games refer to all games that use props for long-range attacks, including but not limited to FPS (First-Person Shooting, first-person shooting) games and TPS (Third-Personal Shooting, third-person shooting) games.
- the application program supporting the virtual environment can support at least one operating system in Windows operating system, Apple operating system, Android operating system, IOS operating system and Linux operating system, and the application programs running in different operating systems Can be interconnected.
- the application program supporting the virtual environment is an application program developed based on a three-dimensional engine.
- the application program supporting the virtual environment is a stand-alone application program or a network online version application program.
- the server 12 is used to provide background services for the application programs installed on the terminal 11 that support the virtual environment.
- the server 12 undertakes the main calculation work, and the terminal 11 undertakes the secondary calculation work; or, the server 12 undertakes the secondary calculation work, and the terminal 11 undertakes the main calculation work; or, the server 12 and the terminal 11 undertake the main calculation work;
- a distributed computing architecture is used for collaborative computing.
- the terminal 11 is any electronic product that can perform human-computer interaction with an interactive object in one or more ways such as a keyboard, a touchpad, a touch screen, a remote control, voice interaction, or a handwriting device, such as , PC (Personal Computer, personal computer), mobile phone, smart phone, PDA (Personal Digital Assistant, personal digital assistant), wearable device, handheld portable game device, PPC (Pocket PC, handheld computer), tablet computer, smart car machine , smart TV, smart speaker, vehicle terminal, etc.
- the server 12 may be one server, or a server cluster composed of multiple servers, or a cloud computing service center.
- the terminal 11 establishes a communication connection with the server 12 through a wired or wireless network.
- terminal 11 and server 12 are only examples, and other existing or future terminals or servers that may be applicable to this application should also be included in the scope of protection of this application, and are referred to herein as Citations are included here.
- An embodiment of the present application provides a method for displaying an animation frame, and the method can be applied to the implementation environment shown in FIG. 1 . Take this method applied to terminal 11 as an example.
- the animation frame display method provided by the embodiment of the present application includes the following steps 201 to 203 .
- a resource consumption index is obtained based on the initial animation update frequency of at least one virtual model, and the resource consumption index is used to indicate the amount of resources that need to be consumed for animation update according to the initial animation update frequency of at least one virtual model.
- At least one virtual model refers to a virtual model in a virtual environment that needs to display animation frames by considering resource consumption indicators.
- the embodiment of the present application does not limit the quantity of the at least one virtual model.
- at least one virtual model is a virtual model of the target category.
- the embodiment of the present application does not limit the way of classifying the categories of virtual models, which can be set according to experience, or flexibly adjusted according to application scenarios.
- all virtual models are divided into one category, and at least one virtual model is all virtual models that need to display animation frames on the same screen.
- the virtual model is divided into a virtual object category and a virtual prop category.
- the target category is a virtual object category
- at least one virtual model is a virtual model that belongs to the virtual object category among all virtual models that need to display animation frames on the same screen.
- there may be other ways to classify the categories of virtual models which is not limited in this embodiment of the present application.
- each virtual model will identify its category through a unique character string, so as to facilitate subsequent statistics on resource consumption at the granularity of category.
- the displayed virtual environment picture is constantly updated, and the animation frame display method provided by the embodiment of the present application occurs during the process of displaying the latest frame of the virtual environment picture.
- a frame of a virtual environment is displayed, at least one animation frame of a virtual model will be displayed in the screen.
- the embodiment of the present application introduces the implementation process of displaying at least one animation frame of a virtual model. It should be noted that when displaying a frame of a virtual environment, in addition to displaying at least one animation frame of a virtual model in the screen, animation frames of other virtual models or environmental elements may also be displayed in the screen. The embodiment does not limit this. Unless otherwise specified, the screens mentioned in the embodiments of the present application all refer to the screens of the virtual environment.
- the initial animation update frequency of the at least one virtual model refers to the animation update frequency of the at least one virtual model on which the resource consumption indicator is obtained.
- the animation update frequency is used to indicate how many frames of the screen to update the animation, and each time the animation is updated, there is a new animation frame for performance.
- the new animation frame refers to an animation frame in the animation. Exemplarily, if an animation update frequency is to update the animation every n (n is an integer not less than 1) frames, the animation update frequency may be expressed as UROn.
- the initial animation update frequency of at least one virtual model needs to be acquired.
- the principle of obtaining the initial animation update frequency of each virtual model is the same, and the process of obtaining the initial animation update frequency of the first virtual model is taken as an example for illustration.
- the first virtual model is any one of at least one virtual model.
- the manner of acquiring the initial animation update frequency of the first virtual model includes: using the animation update frequency of the first virtual model when the last frame of the virtual environment is displayed as the initial animation update frequency of the first virtual model.
- the manner of obtaining the initial animation update frequency of the first virtual model includes: using the default animation update frequency of the first virtual model as the initial animation update frequency of the first virtual model, and the default animation update frequency of the first virtual model may be Refers to an inherent property of the first virtual model.
- the way of obtaining the initial animation update frequency of the first virtual model includes: determining the proportion of the first virtual model, and using the animation update frequency corresponding to the proportion of the first virtual model as the initial animation update frequency of the first virtual model .
- the ratio of the first virtual model is the ratio of the rendering size of the first virtual model to the reference size.
- the rendering size of the first virtual model refers to the rendering size of the first virtual model presented in the previous frame of the virtual environment.
- the reference size is set according to experience, or flexibly adjusted according to the application scenario.
- the reference size can be the same or different.
- the reference size may be the size of the screen of the virtual environment.
- the rendering size of the first virtual model presented in the previous frame of the virtual environment picture can be obtained by identifying the animation frame of the first virtual model displayed when the last frame of the virtual environment picture is displayed. That is to say, the percentage value of the first virtual model may continuously change with the update of the virtual environment picture.
- the update frequency of the initial animation of at least one virtual model will be obtained according to the display result of the last frame of the virtual environment, so as to further count resource consumption indicators.
- the initial animation update frequency of the virtual model determined in this way has a higher degree of matching with the real-time display results of the animation frames of the virtual model, which makes the initial animation update frequency more reliable, thereby improving the resources determined based on the initial animation update frequency. Reliability of consumption indicators.
- the corresponding relationship between the proportion value and the animation update frequency is stored in the terminal. After the proportion value of the first virtual model is determined, the proportion value of the first virtual model can be searched according to the corresponding relationship between the proportion value and the animation update frequency. The corresponding animation update frequency, and then use the found animation update frequency as the initial animation update frequency of the first virtual model.
- the corresponding relationship between the proportion value and the animation update frequency is set according to experience, or flexibly adjusted according to the application scenario, which is not limited in this embodiment of the present application.
- the animation update frequency corresponding to the first proportion value is not lower than the animation update frequency corresponding to the second proportion value, wherein the first proportion value is greater than the second proportion value. That is to say, as the ratio increases, the animation update frequency corresponding to the ratio remains unchanged or increases.
- the terminal stores the corresponding relationship between the proportion value range and the animation update frequency.
- the animation update frequency corresponding to the proportion value of the first virtual model refers to the proportion value of the first virtual model.
- the animation update frequency corresponding to the ratio range After determining the ratio of the first virtual model, determine the ratio range of the ratio of the first virtual model, and then find the ratio of the ratio of the first virtual model according to the corresponding relationship between the ratio range and the animation update frequency.
- the animation update frequency corresponding to the range and then use the found animation update frequency as the initial animation update frequency of the first virtual model.
- the corresponding relationship between the proportion value range and the animation update frequency is set according to experience, or flexibly adjusted according to application scenarios, which is not limited in this embodiment of the present application.
- the animation update frequency corresponding to the first proportion value range is not lower than the animation update frequency corresponding to the second proportion value range, wherein the lower limit of the first proportion value range greater than the upper limit of the second proportion value range.
- the initial animation update frequency of at least one virtual model can be obtained by referring to the manner of obtaining the initial animation update frequency of the first virtual model. After acquiring the initial animation update frequency of the at least one virtual model, the resource consumption index is acquired based on the initial animation update frequency of the at least one virtual model.
- the resource consumption index is used to indicate the amount of resources that need to be consumed for animation update according to the initial animation update frequency of at least one virtual model. For example, the greater the amount of resources consumed for animation update according to the initial animation update frequency of at least one virtual model, the more resources are consumed to display the animation frame corresponding to at least one virtual model according to the initial animation update frequency of at least one virtual model. More, the worse the display fluency of the animation frame.
- the method of obtaining the resource consumption index includes: obtaining the resource consumption sub-index of at least one virtual model, summarizing the resource consumption sub-index of at least one virtual model, and obtaining Resource consumption metrics.
- the resource consumption sub-index of any virtual model is positively correlated with the initial animation update frequency of any virtual model. That is to say, the higher the initial animation update frequency of any virtual model, the greater the resource consumption sub-index of any virtual model; the lower the initial animation update frequency of any virtual model, the greater the resource consumption sub-index of any virtual model.
- the index is smaller.
- the resource consumption sub-indicator of any virtual model is used to indicate the amount of resources that need to be consumed for animation update according to the initial animation update frequency of any virtual model.
- the principle of obtaining the resource consumption sub-indicator of at least one virtual model is the same, and the acquisition of the resource consumption sub-index of the first virtual model is taken as an example for illustration.
- the first virtual model is any virtual model in the at least one virtual model.
- the method of obtaining the resource consumption sub-indicator of the first virtual model includes: determining the frame number corresponding to the initial animation update frequency of the first virtual model, and using a positive number that is negatively correlated with the frame number of the screen as the first virtual model The model's resource consumption sub-metric.
- the reciprocal of the frame number corresponding to the initial animation update frequency of the first virtual model is used as the resource consumption sub-indicator of the first virtual model.
- the product of the reciprocal of the frame number corresponding to the initial animation update frequency of the first virtual model and a certain positive number is used as the resource consumption sub-indicator of the first virtual model.
- the number of frames corresponding to the initial animation update frequency of the first virtual model refers to the number of frames of the screen that needs to be passed through to update an animation indicated by the initial animation update frequency of the first virtual model. For example, if the initial animation update frequency of the first virtual model The animation is updated every 5 frames, and the number of frames corresponding to the initial animation update frequency of the first virtual model is 5.
- the default animation update frequency of the first virtual model is to update the animation once per frame
- the larger the number of frames corresponding to the initial animation update frequency of the first virtual model the greater the initial animation of the first virtual model
- the greater the reduction of the update frequency relative to the default animation update frequency the smaller the resource consumption required for animation update according to the initial animation update frequency of the first virtual model.
- At least one resource consumption sub-indicator of the virtual model can be obtained.
- the resource consumption sub-indices of at least one virtual model are aggregated to obtain the resource consumption indicators.
- aggregating the resource consumption sub-indices of at least one virtual model refers to calculating the sum of the resource consumption sub-indices of at least one virtual model.
- aggregating the resource consumption sub-indices of the at least one virtual model refers to weighting and summing the resource consumption sub-indices of the at least one virtual model by using the weight of the at least one virtual model, and the weight of the at least one virtual model is set according to experience.
- a target animation update frequency of at least one virtual model is obtained based on the resource consumption index and the initial animation update frequency.
- the target animation update frequency of the at least one virtual model is obtained.
- the acquisition process of the target animation update frequency of at least one virtual model takes into account the resource consumption index, and the resource consumption can be effectively controlled globally according to the target animation update frequency of at least one virtual model, so as to avoid excessive resource consumption. It takes a long time to display the animation frame, which is beneficial to improve the display fluency of the animation frame.
- the process of obtaining the target animation update frequency of at least one virtual model includes: when the resource consumption index is not greater than the resource consumption threshold, taking the initial animation update frequency as at least The target animation update frequency for an avatar.
- the resource consumption threshold is used to limit the maximum amount of resources that need to be consumed for animation update according to the animation update frequency of at least one virtual model.
- the resource consumption threshold is a pre-configured threshold.
- the resource consumption threshold corresponding to each category is set through the configuration table, so that the resource consumption caused by the animation update of the virtual model of each category can be utilized by using the resource consumption threshold corresponding to each category. to constrain.
- at least one virtual model is a virtual model of the target category.
- the resource consumption threshold is the resource consumption threshold corresponding to the target category.
- the resource consumption threshold is used to constrain the global maximum number of avatars that are allowed to update the animation every frame.
- the resource consumption threshold may also be referred to as a resource consumption budget, or an animation update budget, and the like.
- the initial animation of at least one virtual model can be directly updated
- the frequency serves as a target animation update frequency for at least one virtual model. It should be noted that taking the initial animation update frequency of at least one virtual model as the target animation update frequency of at least one virtual model refers to taking the initial animation update frequency of each virtual model as the target animation update frequency of each virtual model.
- the process of obtaining the target animation update frequency of at least one virtual model based on the resource consumption index and the initial animation update frequency includes the following steps 1 to 3.
- Step 1 Determine the adjustment coefficient based on the resource consumption index and the resource consumption threshold.
- the animation update based on the initial animation update frequency of at least one virtual model will bring large resource consumption.
- at least one virtual model needs to be The initial animation update frequency of the model is adjusted to obtain a first animation update frequency that can bring less resource consumption.
- the process of adjusting the update frequency of the initial animation of the at least one virtual model is implemented based on an adjustment coefficient, and the adjustment coefficient is determined based on the resource consumption index and the resource consumption threshold.
- a manner of determining the adjustment coefficient based on the resource consumption index and the resource consumption threshold is: using a ratio of the resource consumption index to the resource consumption threshold as the adjustment coefficient. Since the resource consumption index is greater than the resource consumption threshold, the adjustment coefficient is a coefficient greater than 1.
- the manner of determining the adjustment coefficient based on the resource consumption index and the resource consumption threshold may also be other manners, which are not limited in this embodiment of the present application.
- the ratio of the resource consumption threshold to the resource consumption index is used as the adjustment coefficient, and in this case, the adjustment coefficient is a coefficient smaller than 1.
- Step 2 Adjust the initial animation update frequency based on the adjustment coefficient to obtain a first animation update frequency of at least one virtual model.
- the initial animation update frequency of the at least one virtual model is adjusted based on the adjustment coefficient to obtain a first animation update frequency of the at least one virtual model.
- the adjustment coefficient since the adjustment coefficient is used to adjust the initial animation update frequency of each virtual model, the adjustment coefficient may also be referred to as a global load balancing scaling coefficient.
- the first animation update frequency of each virtual model is obtained by adjusting the initial animation update frequency of each virtual model based on the adjustment coefficient.
- the principle of adjusting the initial animation update frequency of each virtual model based on the adjustment coefficient is the same, and the adjustment of the initial animation update frequency of the first virtual model based on the adjustment coefficient is taken as an example for illustration.
- the first virtual model is any one of at least one virtual model.
- the method of adjusting the initial animation update frequency of the first virtual model based on the adjustment coefficient is related to the determination method of the adjustment coefficient.
- the adjustment principle is that the first animation update frequency of the first virtual model is lower than the initial animation update frequency of the first virtual model.
- the way to adjust the initial animation update frequency of the first virtual model based on the adjustment coefficient is: calculate the initial animation update frequency of the first virtual model The product of the picture frame number corresponding to the animation update frequency and the adjustment coefficient is rounded to obtain the target value; the corresponding picture frame number is the animation update frequency of the target value as the first animation update frequency of the first virtual model.
- the manner of rounding the product may be set according to experience, or flexibly adjusted according to the application scenario, which is not limited in this embodiment of the present application.
- the manner of rounding the product may be rounding up, rounding down, or rounding.
- the product can be rounded up according to the Ceil function (rounding up function) to obtain the target value.
- the animation update frequency corresponding to the frame number of the target value is used as the first animation update frequency of the first virtual model.
- the initial animation update frequency of the first virtual model is to update the animation every 2 frames (URO2)
- the adjustment factor is 1.2.
- the number of screen frames corresponding to the initial animation update frequency of the first virtual model is 2
- the product of the screen frame number corresponding to the initial animation update frequency of the first virtual model and the adjustment coefficient is 2.4
- the target obtained after rounding up the product If the value is 3, then the animation update frequency corresponding to the frame number of the screen being 3 is used as the first animation update frequency of the first virtual model.
- the first animation update frequency of the first virtual model determined at this time is updated every 3 frames animation (URO3).
- the adjustment coefficient is the ratio of the resource consumption index to the resource consumption threshold as an example, and the process of adjusting the initial animation update frequency of the first virtual model based on the adjustment coefficient is introduced.
- the embodiment of the present application is not limited thereto.
- the process of adjusting the initial animation update frequency of the first virtual model based on the adjustment coefficient can also be other processes, as long as the adjusted first animation update frequency of the first virtual model is guaranteed Just below the initial animation update frequency.
- the first animation update frequency of at least one virtual model can be obtained by referring to the manner of obtaining the first animation update frequency of the first virtual model, and then step 3 is performed.
- the process of obtaining the first animation update frequency of at least one virtual model according to the above step 1 and step 2 can be regarded as the animation update frequency obtained according to an animation frequency reduction optimization technology with load balance (Load Balance URO).
- Load Balance URO load balance
- Step 3 Obtain a target animation update frequency of at least one virtual model based on the first animation update frequency.
- the process of obtaining the target animation update frequency of at least one virtual model based on the first animation update frequency refers to the process of obtaining the target animation update frequency of each virtual model based on the first animation update frequency of each virtual model.
- the principle of obtaining the target animation update frequency of each virtual model is the same.
- the target animation update frequency of the first virtual model is obtained as Example to illustrate.
- the first virtual model is any one of at least one virtual model.
- the first animation update frequency of the first virtual model is directly used as the target animation update frequency of the first virtual model. This method is more efficient.
- the process of obtaining the target animation update frequency of at least one virtual model based on the first animation update frequency includes: when the first virtual model satisfies the first model filtering condition, and the first animation of the first virtual model When the updating frequency is not higher than the updating frequency of the reference animation, the updating frequency of the reference animation is taken as the target animation updating frequency of the first virtual model.
- the first virtual model satisfies the first model screening condition, and the first animation update frequency of the first virtual model is higher than the reference animation update frequency; or, when the first virtual model does not meet the first model screening condition, the first The first animation update frequency of the virtual model is used as the target animation update frequency of the first virtual model.
- the first model screening condition is additionally considered, which is beneficial to improving the reliability of the obtained target animation update frequency of the first virtual model.
- the first model filtering condition is used to filter the virtual model, and the first model filtering condition is set according to experience, or flexibly adjusted according to the application scenario, which is not limited in this embodiment of the present application.
- the virtual models satisfying the first model screening condition refer to the virtual models that have a high demand for animation performance.
- a virtual model satisfying the first model filtering condition refers to a virtual model whose initial animation update frequency is not lower than the reference animation update frequency. The higher the update frequency of the initial animation, the higher the importance of the virtual model can be considered.
- the virtual model that meets the first model screening condition can be called a high-importance virtual model, and the virtual model that does not meet the first model screening condition The model is called a low importance virtual model.
- the update frequency of the reference animation is set according to experience, or flexibly adjusted according to application scenarios, which is not limited in this embodiment of the present application.
- the reference animation update frequency is denoted as URO5, assuming that the initial animation update frequency of a virtual model is denoted as URO2, since the animation update frequency represented by URO2 is higher than the animation update frequency represented by URO5, the virtual model satisfies the first model screening condition.
- the threshold of the number of picture frames is set based on experience, or flexibly adjusted according to the application scenario, which is not limited in this embodiment of the present application. For example, the threshold of the number of picture frames is 5.
- the virtual model satisfying the first model screening condition may also refer to a virtual model whose proportion is not less than the proportion threshold.
- the proportion threshold is set according to experience, or flexibly adjusted according to application scenarios, which is not limited in this embodiment of the present application.
- the reference animation update frequency is set as the target animation update frequency of the first virtual model. If the first virtual model satisfies the first model screening condition, and the first animation update frequency of the first virtual model is higher than the reference animation update frequency, then the first animation update frequency of the first virtual model is used as the target animation of the first virtual model update frequency. That is to say, when the first virtual model satisfies the first model filtering condition, the larger value of the first animation update frequency of the first virtual model and the reference animation update frequency is taken as the target animation update frequency of the first virtual model.
- the first virtual model does not meet the first model screening condition, it means that the animation performance requirements of the first virtual model are small, and there is no need to limit the target animation update frequency of the first virtual model. Therefore, the first virtual model can be directly The first animation update frequency is used as the target animation update frequency of the first virtual model.
- the additional consideration of the first model screening condition is to ensure the animation performance of the virtual model with high importance.
- the first animation update frequency adjusted according to the adjustment coefficient that is, the animation update frequency obtained after load balancing frequency reduction optimization
- the first animation update frequency corresponds to The number of frames of the picture becomes very large, which leads to excessive frequency reduction of the nearby virtual model. Therefore, for the virtual model with high importance, the target animation update frequency needs to be limited, so that the target animation update frequency of the virtual model with high importance is not high. Lower than reference animation update frequency.
- the near virtual model refers to the virtual model that is relatively close to the virtual camera in the virtual environment, and the demand for animation performance of the near virtual model is usually greater.
- the virtual camera refers to a camera used to capture images of the virtual environment. For a virtual model, the closer the distance between the virtual model and the virtual camera, the larger the size of the virtual model displayed in the virtual environment frame.
- the screen frame number threshold is 5, then at least one virtual model whose screen frame number corresponding to the initial animation update frequency is less than or equal to 5 in at least one virtual model satisfies the first model screening condition, that is, all belong to high-importance virtual models.
- the number of screen frames corresponding to the target animation update frequency of this part of the virtual model needs to be limited to no more than 5, that is, the minimum target animation update frequency is to update the animation every 5 frames, so as to ensure that the high-importance model updates the animation at most 5 frames .
- step 203 at least one animation frame corresponding to the virtual model is displayed according to the target animation update frequency.
- the target animation update frequency is determined based on the resource consumption index on the basis of the initial animation update frequency of at least one virtual model, which can effectively control the resource consumption globally, and display the animation frame corresponding to at least one virtual model according to the target animation update frequency
- the effect is better, which is conducive to improving the display fluency of the animation frame, thereby improving the smoothness of the screen update.
- the process of displaying the animation frame corresponding to at least one virtual model according to the target animation update frequency refers to the process of displaying the animation frame corresponding to each virtual model according to the target animation update frequency of each virtual model. It should be noted that the animation frames corresponding to each virtual model are displayed in the same frame of the virtual environment picture.
- the principle of displaying the animation frame corresponding to each virtual model is the same. Take the process of displaying the animation frame corresponding to the first virtual model according to the target animation update frequency of the first virtual model as an example. illustrate.
- the first virtual model refers to any virtual model in at least one virtual model.
- the implementation process of displaying the animation frame corresponding to the first virtual model is: directly according to the target animation update frequency of the first virtual model, displaying the first virtual model The corresponding animation frame.
- the animation frame corresponding to the first virtual model refers to the animation frame of the first virtual model corresponding to the target animation update frequency. That is to say, there is no need to judge whether the first virtual model satisfies a certain condition, and the animation frame corresponding to the target animation update frequency of the first virtual model is directly displayed.
- the process of displaying the animation frame corresponding to the first virtual model directly according to the target animation update frequency of the first virtual model includes: when the target animation update frequency of the first virtual model and the count value of the first virtual model When it does not match, display the first animation frame or the target animation frame of the first virtual model; when the target animation update frequency of the first virtual model matches the count value of the first virtual model, display the second animation frame of the first virtual model .
- the first animation frame is the latest animation frame displayed in the animation of the first virtual model
- the second animation frame is an animation frame located one position behind the first animation frame in the animation of the first virtual model.
- the first animation frame and the second animation frame are two adjacent animation frames in the animation of the first virtual model, the first animation frame has been displayed, and the second animation frame has not been displayed yet.
- the calculation logic of the first animation frame and the second animation frame is relatively complicated, and it takes a long time to determine the first animation frame and the second animation frame.
- the terminal can calculate and cache the second animation frame, and then extract the second animation frame from the cache for display when the second animation frame needs to be displayed.
- the count value of the first virtual model refers to the current count value of the first virtual model.
- the count value of the first virtual model is used to indicate the unupdated frame number of the animation of the first virtual model.
- the count value of the first virtual model is updated in the following manner: when an animation frame in the animation of the first virtual model is displayed for the first time, the count value of the first virtual model is 0, and every frame In the animation of the first avatar, the animation frame that is one bit behind the one animation frame is not displayed, and the count value of the first avatar is increased by 1.
- the match between the target animation update frequency of the first virtual model and the count value of the first virtual model indicates that the second animation frame of the first virtual model needs to be displayed.
- the match between the target animation update frequency of the first virtual model and the count value of the first virtual model means that the count value of the first virtual model is not less than the number of picture frames corresponding to the target animation update frequency of the first virtual model and 1 difference. For example, if the number of screen frames corresponding to the target animation update frequency of the first avatar is 5, and the count value of the first avatar is not less than 4, it is considered that the target animation update frequency of the first avatar is equal to the count value of the first avatar match.
- the target animation update frame rate of the first virtual model matches the count value of the first virtual model, it means that the animation frame currently to be displayed is the second animation frame of the first virtual model, so the second animation frame of the first virtual model is displayed. animation frame.
- the target animation update frequency of the first virtual model does not match the count value of the first virtual model, it means that the animation frame currently to be displayed is not the second animation frame of the first virtual model. In this case, the first virtual The model's first or target animation frame.
- the target animation frame is determined based on the count value of the first animation frame, the second animation frame and the first virtual model. Before displaying the target animation frame, the target animation frame needs to be determined first.
- the manner of determining the target animation frame includes: determining candidate interpolation smooth animation frames based on the first animation frame and the second animation frame; determining the interpolation smooth animation frame corresponding to the count value of the first virtual model in the candidate interpolation smooth animation frame An animation frame, using an interpolation smooth animation frame corresponding to the count value of the first virtual model as a target animation frame of the first virtual model.
- the interpolated smooth animation frame may be determined according to the first animation frame and the second animation frame in the cache, so that the interpolated smooth animation frame is displayed after the first animation frame is displayed and before the second animation frame is displayed, so as to achieve a value close to The animation effect updated every frame is close to the animation effect without frequency reduction.
- the number of candidate interpolation smooth animation frames may be one or more. When the number of candidate interpolation smooth animation frames is one, the one candidate interpolation smooth animation frame is directly used as the interpolation smooth animation frame corresponding to the count value of the first virtual model.
- the target animation frame of the first virtual model is an interpolation smooth animation frame corresponding to the count value of the first virtual model among the multiple candidate interpolation smooth animation frames.
- the terminal stores the corresponding relationship between the candidate interpolated smooth animation frame and the count value, and then the interpolated smooth animation frame corresponding to the count value of the first virtual model can be determined among the candidate interpolated smooth animation frames according to the corresponding relationship.
- the number of candidate interpolation smooth animation frames determined is the same as the number of count values that do not match the target animation update frequency of the first virtual model, and each candidate The interpolated smooth animation frame corresponds to a count value that does not match the target animation update frequency of the first avatar.
- the number of count values that do not match the target animation update frequency of the first virtual model is the difference between the frame number corresponding to the target animation update frequency of the first virtual model and 1. For example, if the frame number corresponding to the target animation update frequency of the first virtual model is 5, the number of count values that do not match the target animation update frequency of the first virtual model is 4, and 4 candidate interpolation smooth animations can be determined frame.
- the candidate interpolation smooth animation frame can be calculated by the difference between the first animation frame and the second animation frame. Compared with the time consumption of calculating the first animation frame and the second animation frame, the time for calculating the candidate interpolation smooth animation frame Less consumption.
- An interpolation smooth animation frame corresponding to the count value of the first virtual model is queried from each candidate interpolation smooth animation, and the interpolation smooth animation frame is the target animation frame.
- the embodiment of the present application does not limit the implementation manner of displaying the first animation frame or the target animation frame of the first virtual model when the target animation update frequency of the first virtual model does not match the count value of the first virtual model.
- the target animation update frequency of the first virtual model does not match the count value of the first virtual model
- the first animation frame of the first virtual model is displayed.
- the target animation frame is displayed.
- the target animation update frequency of the first virtual model when the first virtual model does not match the count value of the first virtual model, when the first virtual model does not satisfy the second model filtering condition, the first animation of the first virtual model is displayed.
- Animation frame when the first virtual model satisfies the second model filtering condition, display the target animation frame of the first virtual model.
- the second model filtering condition is used to filter the virtual model, and the second model filtering condition is set according to experience, or flexibly adjusted according to the application scenario, which is not limited in this embodiment of the present application.
- the second model filter condition can be the same as the first model filter condition, or can be different from the first model filter condition.
- the virtual models satisfying the second model filtering condition are virtual models that need to display the target animation frame when the target animation update frequency does not match the count value.
- the second model filtering condition is the same as the first model filtering condition, that is, the avatars satisfying the second model filtering condition refer to avatars that have greater animation performance requirements.
- the target animation frame of the first virtual model is displayed, so as to alleviate the adverse effect of frequency reduction on animation performance to a large extent. That is to say, for high-importance virtual models, turn on animation interpolation smoothing, and high-importance virtual models will use the cached first animation frame and second animation frame for interpolation performance in the screen that skips the update, to achieve close to For animation effects without frequency reduction.
- the animation performance of the first virtual model is less concerned, and the first animation frame can be displayed directly.
- the implementation process of displaying the animation frame corresponding to the first virtual model is: when the first virtual model is not associated with other virtual models, directly according to the first The target animation update frequency of the virtual model, displaying the animation frame corresponding to the first virtual model; when the first virtual model is associated with the second virtual model, adjust the target animation update frequency of the first virtual model to the animation update of the second virtual model frequency, to obtain the adjusted animation update frequency of the first virtual model; and display the animation frame corresponding to the first virtual model according to the adjusted animation update frequency of the first virtual model.
- the second virtual model may refer to one of the at least one virtual model, or may be a virtual model other than the at least one virtual model, which is not limited in this embodiment of the present application.
- the animation update frequency of the second virtual model refers to the current latest animation update frequency of the second virtual model.
- the terminal records the relationship between the virtual models. According to the relationship, it can be judged whether the first virtual model is related to other virtual models. If the first virtual model is related to the second virtual model, the target animation of the first virtual model is updated. The frequency is adjusted to the animation update frequency of the second virtual model.
- the first virtual model being associated with the second virtual model may also be referred to as the first virtual model being dependent on the second virtual model.
- after adjusting the target animation update frequency of the first virtual model to the animation update frequency of the second virtual model it further includes: adjusting the count value of the first virtual model to the count value of the second virtual model value to synchronize animation updates for the first avatar with animation updates for the second avatar.
- the animation update of the first virtual model is synchronized with the animation update of the second virtual model to ensure the correctness of the animation performance.
- Different virtual models may have different animation update frequencies after optimization, but the animation performance of the related virtual models is required to be consistent.
- the animation performance of the virtual object and the virtual props equipped with the virtual object is required to be consistent . If the animation update frequency of the related avatars is different, it may cause incorrect performance.
- the first virtual model may be called a child model, and the second virtual model may be called a parent model.
- the implementation details of down-frequency synchronization are: the update frequency of the parent-child model is kept synchronized, and the child model adopts the update frequency of the parent model; the count values of the parent-child model are aligned.
- the alignment of the update start frames of the parent and child models can be achieved.
- the update start frame is a screen on which the latest animation frame that has already been displayed is displayed for the first time.
- the animation update frequency and update start frame of the parent model and the child model have four situations: the animation update frequency and update start frame of the parent model and the child model are inconsistent; the animation update frequency of the parent model and the child model are consistent, and the update start frame The start frame is inconsistent; the animation update frequency of the parent model and the child model are inconsistent, and the update start frame is consistent; the animation update frequency and update start frame of the parent model and the child model are consistent.
- FIG. 3 shows animation update synchronization situations in the above four situations.
- a frame whose animation is updated is called an update frame
- a frame whose animation is not updated is called a skip frame.
- the animation update frequency and update start frame of the parent model and the child model are inconsistent; or, the animation update frequency of the parent model and the child model are consistent, and the update start frame is inconsistent; or, the animation update frequency of the parent model and the child model Inconsistency and the same update start frame are not enough to fully synchronize the animation updates of the parent model and the child model. Therefore, by adjusting the animation update frequency of the child model to the animation update frequency of the parent model, and adjusting the count value of the child model to the count value of the parent model, the animation update synchronization effect is achieved.
- FIG. 4 shows the screen display effect when the animation update frequency and the update start frame of the parent model and the child model are inconsistent.
- the parent model is a virtual object 410
- the child model is a virtual prop 420 .
- the animation update frequency of the virtual object 410 is URO4
- the animation update frequency of the virtual prop 420 is URO7
- the update start frame of the virtual object 410 is inconsistent with the update start frame of the virtual prop 420 .
- the virtual prop 420 is out of the hand of the virtual object 410 , indicating that the animation updates of the virtual object 410 and the virtual prop 420 are not synchronized.
- Fig. 5 shows the screen display effect when the animation update frequency of the parent model and the child model are consistent, but the update start frame is inconsistent.
- the parent model is a virtual object 510
- the child model is a virtual prop 520 .
- the animation update frequency of the virtual object 510 and the animation update frequency of the virtual prop 520 are both URO4, and the update start frame of the virtual object 510 is inconsistent with the update start frame of the virtual prop 520 .
- the virtual prop 520 is out of the hand of the virtual object 510 , indicating that the animation update of the virtual object 510 and the virtual prop 520 are not synchronized.
- Figure 6 shows the screen display effect when the animation update frequency and update start frame of the parent model and the child model are consistent.
- the parent model is a virtual object 610
- the child model is a virtual prop 620 .
- the animation update frequency of the virtual object 610 and the animation update frequency of the virtual prop 620 are both URO4, and the update start frame of the virtual object 610 is consistent with the update start frame of the virtual prop 620 .
- the virtual prop 620 is not out of the hand of the virtual object 610 , and the picture appears normal, which shows that the animation updates of the virtual object 610 and the virtual prop 620 are synchronized.
- the animation frame corresponding to the first virtual model is displayed according to the adjusted animation update frequency of the first virtual model.
- the realization principle of displaying the animation frame corresponding to the first virtual model according to the adjusted animation update frequency of the first virtual model and the realization principle of displaying the animation frame corresponding to the first virtual model directly according to the target animation update frequency of the first virtual model will not be repeated here.
- the above-mentioned steps 201 to 203 may be performed each time it is necessary to display at least one animation frame of the virtual model.
- the above steps 201 to 203 are executed when the virtual model satisfies the reference condition, which can reduce the amount of calculation.
- the embodiment of the present application does not limit the display manner of the animation frame when the virtual model does not satisfy the reference condition.
- the display of the animation frame is realized by using the method in the related art.
- the method in the related art is: use the animation update frequency corresponding to the proportion of at least one virtual model as the initial animation update frequency of at least one virtual model, and display at least one virtual model according to the initial animation update frequency of at least one virtual model The animation frame corresponding to the model.
- the proportion value may also be referred to as the screen proportion, and the manner in the related art is based on the display manner of the animation frame realized by the URO optimization scheme that comes with the UE4 engine.
- the UE4 engine comes with a URO optimization solution, which calculates the screen-to-body ratio of each virtual model. The smaller the screen-to-body ratio, the lower the animation update frequency.
- a small screen-to-body ratio means that the virtual model is far away from the virtual camera.
- the animation update frequency of the virtual model far from the camera can effectively reduce the resource consumption of the animation update of the virtual model.
- the corresponding relationship between the screen ratio and the frame number of the screen may be preset, and the larger the frame number of the screen, the lower the animation update frequency.
- the picture frame number can also be represented by URO level.
- the reference conditions are used to constrain the conditions for realizing the display of animation frames according to the manners of steps 201 to 203 .
- the reference condition is set according to experience, or flexibly adjusted according to the application scenario, which is not limited in this embodiment of the present application.
- the reference condition is used to constrain the condition of at least one virtual model.
- the reference condition is used to constrain the situation that all virtual models of animation frames need to be displayed on the same screen.
- the fact that the virtual models meet the reference condition may mean that the number of all virtual models that need to display animation frames on the same screen is greater than the first number threshold.
- the fact that the avatar meets the reference condition may mean that the number of avatars whose proportion is greater than the proportion threshold among all the avatars that need to display animation frames on the same screen is greater than the second quantity threshold.
- the fact that the virtual models meet the reference condition may mean that the number of all virtual models that need to display animation frames on the same screen is greater than the first number threshold, and the number of virtual models with a proportion greater than the proportion threshold among all virtual models is greater than the first number threshold.
- Two quantity thresholds Two quantity thresholds.
- the first number threshold is not less than the second number threshold, and the first number threshold and the second number threshold are set according to experience, or flexibly adjusted according to application scenarios, which are not limited in this embodiment of the present application.
- the display mode of animation frames in the related art is used to continue to maintain the URO optimization feature. Perform frequency reduction optimization. For virtual models with a small proportion, update animations at a lower frequency to reduce time consumption caused by animation updates. Exemplarily, a virtual model with a smaller ratio can be regarded as a virtual model that is farther away from the virtual camera. Because such a virtual model is located far away, interactive objects may not be seen clearly, so the animation update frequency can be reduced.
- the animation update frequencies for displaying the animation frames of each virtual model are URO1 , URO2 , and URO3 , respectively, in order from the closest to the farthest from the virtual camera.
- the virtual model that is closer to the virtual camera will still update the animation with a higher animation update frequency, for example, from the distance
- the order of the virtual camera from near to far, the animation update frequency based on which the animation frames of each virtual model are displayed are URO1, URO2 and URO3 respectively, which will put a lot of pressure on the global animation update, resulting in virtual models that are closer to the virtual camera
- the resource consumption is high, which may cause the terminal to heat up, and may also affect the FPS, the display fluency of animation frames, and the smoothness of application running.
- the performance of this kind of scene can be effectively improved by using the display mode of the animation frame provided by the embodiment of the present application.
- the display mode of the animation frame provided by the embodiment of the present application will globally count the resource consumption index of the virtual model for each frame, and if it exceeds the allocated resource consumption threshold, the animation update frequency of each virtual model will be further reduced, and at the same time, the first model selection condition will be satisfied.
- the virtual model is optimized for animation interpolation smoothing to avoid detailed animation performance problems due to frequency reduction. Through this optimization method, from near to far from the virtual camera, the animation update frequency based on which the animation frames of each virtual model are displayed is optimized to URO2, URO4 and URO6, which can effectively control the animation of multiple virtual models displayed on the same screen The time consumption of frames.
- the screen display effect in the animation frame display mode in the related art is shown in FIG. 9
- the screen display effect in the animation frame display mode in the embodiment of the present application is shown in FIG. 10 .
- the number of virtual models also referred to as close-range virtual models
- the initial animation update frequency of the 20 virtual models is URO1, that is, the The 20 virtual models keep updating the animation once per frame. In this case, it takes about 20ms (milliseconds) for the application to update each frame, and the FPS is 50.
- the animation update frequency of the 20 virtual models is URO20, because the 20 virtual models all meet The first model screening condition (that is, all belong to high-importance models), the animation update frequency of the high-importance model is not allowed to be lower than URO5, then using the method provided in the embodiment of this application, the target animation update frequency of the 20 virtual models Both are URO5, that is, the animation is updated every 5 frames.
- the update time of each frame of the application is about 15.6ms, and the FPS is increased to 64. Compared with related technologies, the update time of each frame is reduced by 4.4ms, and the FPS is increased by 16. According to FIG. 9 and FIG. 10 , it can be seen that different animation frame display modes have different screen display effects.
- the display process of the animation frame is shown in Figure 11.
- set the resource consumption threshold corresponding to the target category An animation frame matching the Nth frame of a virtual model, the at least one virtual model is a virtual model of the target category; according to the display result of the Nth frame, calculate the proportion of at least one virtual model, and at least one virtual model
- the animation update frequency corresponding to the proportion value of is used as the initial animation update frequency of at least one virtual model.
- the resource consumption index is obtained, and it is judged whether the resource consumption index is greater than the resource consumption threshold.
- the animation frame corresponding to at least one virtual model refers to at least one virtual model with the first ( N+1) The animation frame that the frame picture matches.
- the ratio of the resource consumption index to the resource consumption threshold is used as an adjustment coefficient; the initial animation update frequency of at least one virtual model is adjusted according to the adjustment coefficient to obtain the first animation update frequency of at least one virtual model.
- a target animation update frequency of the at least one virtual model is acquired to ensure performance. Synchronize animation update frequency and count value between associated models to ensure performance.
- the animation frame corresponding to at least one virtual model is displayed, and the animation frame corresponding to the at least one virtual model refers to the animation frame matching the (N+1)th frame picture of at least one virtual model .
- the animation frames of other categories of virtual models can be realized by referring to the process provided by the embodiment of the present application, so as to ensure the display effect of the animation frames of all the virtual models that need to display the animation frames on the same screen.
- Animation interpolation smooth conditions and other key parameters can effectively control the resources consumed by animation updates in multi-person scenes, effectively reduce the time consumption of animation frames of multiple virtual models displayed on the same screen, and achieve performance Balance with performance, improve FPS, and improve the experience of the application program, for example, if the application program is a game application program, the game experience can be improved.
- the animation frame corresponding to at least one virtual model is displayed according to the target animation update frequency of at least one virtual model, wherein the target animation update frequency of at least one virtual model is at least one virtual model
- the model's initial animation update frequency is determined based on resource consumption metrics. According to the target animation update frequency of at least one virtual model, resource consumption can be effectively and globally controlled, which is beneficial to improving the display fluency of animation frames, and further improving the human-computer interaction rate.
- the resource consumption index is compared with the resource consumption threshold, and when the resource consumption index is greater than the resource consumption threshold, the adjustment coefficient is determined according to the two, and the animation is reduced according to the adjustment coefficient Update frequency, thereby reducing the amount of resources consumed by animation updates, achieving the purpose of reducing the time consumption of global animation updates, thereby increasing FPS.
- the target animation update frequency of the high-importance virtual model is limited by considering the first model screening condition, so that the target animation update frequency of the high-importance virtual model is not lower than the reference animation update frequency, ensuring high importance The animation performance of the virtual model.
- the target animation update frequency of the virtual model is compared with the count value of the virtual model.
- the target animation frame determined based on the first animation frame, the second animation frame and the count value of the virtual model can be displayed, and the target animation frame is an interpolation smoothing between the first animation frame and the second animation frame.
- the animation frame shows that the target animation frame can achieve an animation effect close to updating every frame, that is, close to an animation effect without frequency reduction, and improve the display effect of the animation frame.
- the virtual model is associated with other virtual models, and if the virtual model is associated with other virtual models, then by adjusting the target animation update frequency of the virtual model to the animation update frequency of other virtual models and adjusting the count value of the virtual model to other
- the counter value of the virtual model is used to realize down-frequency synchronization, that is, the animation update of the virtual model is synchronized with the animation update of the associated virtual model to ensure that the animation performance is correct.
- an embodiment of the present application provides a display device for animation frames, which includes:
- the first obtaining unit 1201 is configured to obtain a resource consumption index based on the initial animation update frequency of at least one virtual model, and the resource consumption index is used to indicate the amount of resources that need to be consumed for animation update according to the initial animation update frequency of at least one virtual model;
- the second acquiring unit 1202 is configured to acquire the target animation update frequency of at least one virtual model based on the resource consumption index and the initial animation update frequency;
- the display unit 1203 is configured to display at least one animation frame corresponding to the virtual model according to the target animation update frequency.
- the second acquiring unit 1202 is configured to determine an adjustment coefficient based on the resource consumption index and the resource consumption threshold when the resource consumption index is greater than the resource consumption threshold; adjust the initial animation update frequency based on the adjustment coefficient, A first animation update frequency of the at least one virtual model is obtained; based on the first animation update frequency, a target animation update frequency of the at least one virtual model is obtained.
- the second obtaining unit 1202 is configured to refer to
- the animation update frequency is used as the target animation update frequency of the first virtual model, and the first virtual model is any one of the at least one virtual model.
- the second obtaining unit 1202 is configured to: when the first virtual model satisfies the first model screening condition, and the first animation update frequency of the first virtual model is higher than the reference animation update frequency; or, when When the first virtual model does not meet the first model screening condition, the first animation update frequency of the first virtual model is used as the target animation update frequency of the first virtual model, and the first virtual model is any virtual model in at least one virtual model .
- the adjustment coefficient is the ratio of the resource consumption index to the resource consumption threshold;
- the second acquisition unit 1202 is used to calculate the product of the number of picture frames corresponding to the update frequency of the initial animation of the first virtual model and the adjustment coefficient, The product is rounded to obtain the target value, and the first virtual model is any virtual model in at least one virtual model; the animation update frequency with the corresponding frame number as the target value is used as the first animation update frequency of the first virtual model .
- the second acquiring unit 1202 is configured to use the initial animation update frequency as the target animation update frequency of at least one virtual model when the resource consumption index is not greater than the resource consumption threshold.
- the display unit 1203 is configured to display the first animation frame or the target animation frame of the first virtual model when the target animation update frequency of the first virtual model does not match the count value of the first virtual model , the first virtual model is any virtual model in at least one virtual model; wherein, the first animation frame is the latest animation frame displayed in the animation of the first virtual model, and the target animation frame is based on the first animation frame, the second The animation frame is determined by the count value of the first virtual model, and the second animation frame is an animation frame that is one bit behind the first animation frame in the animation of the first virtual model.
- the display unit 1203 is configured to display the first animation frame of the first virtual model when the first virtual model does not meet the second model filtering condition; when the first virtual model meets the second model filtering condition , display the target animation frame of the first virtual model.
- the display unit 1203 is further configured to determine candidate interpolation smooth animation frames based on the first animation frame and the second animation frame;
- the interpolated smooth animation frame, the interpolated smooth animation frame corresponding to the count value of the first virtual model is used as the target animation frame of the first virtual model.
- the display unit 1203 is configured to display the second animation frame of the first virtual model when the target animation update frequency of the first virtual model matches the count value of the first virtual model, and the first virtual model It is any virtual model in at least one virtual model; wherein, the second animation frame is an animation frame located one bit behind the first animation frame in the animation of the first virtual model, and the first animation frame is in the animation of the first virtual model The latest animation frame that was displayed.
- the display unit 1203 is configured to adjust the target animation update frequency of the first virtual model to the animation update frequency of the second virtual model when the first virtual model is associated with the second virtual model, to obtain the second An adjusted animation update frequency of the virtual model, where the first virtual model is any one of the at least one virtual model; according to the adjusted animation update frequency of the first virtual model, an animation frame corresponding to the first virtual model is displayed.
- the display unit 1203 is further configured to adjust the count value of the first virtual model to the count value of the second virtual model, so that the animation update of the first virtual model is the same as the animation update of the second virtual model Synchronize.
- the first obtaining unit 1201 is configured to obtain the resource consumption sub-indicator of at least one virtual model, and the resource consumption sub-index of any virtual model is positively correlated with the initial animation update frequency of any virtual model;
- the resource consumption sub-indices of at least one virtual model are aggregated to obtain the resource consumption indicators.
- the first acquisition unit 1201 is configured to determine the number of picture frames corresponding to the initial animation update frequency of the first virtual model, where the first virtual model is any virtual model in at least one virtual model; A positive number with a negative correlation between the number of picture frames is used as a resource consumption sub-indicator of the first virtual model.
- the first acquiring unit 1201 is further configured to determine the proportion of the first virtual model, where the first virtual model is any one of at least one virtual model, and the proportion of the first virtual model is The ratio of the rendering size of the first virtual model to the reference size; the animation update frequency corresponding to the ratio of the first virtual model is used as the initial animation update frequency of the first virtual model.
- the resource consumption threshold is a resource consumption threshold corresponding to the target category
- at least one virtual model is a virtual model of the target category.
- the first acquiring unit 1201 is configured to acquire the resource consumption index based on the initial animation update frequency of at least one virtual model when the condition of the virtual model satisfies the reference condition; wherein, the condition of the virtual model meets the reference condition
- the conditions include any of the following: the number of all virtual models that need to display animation frames on the same screen is greater than the first number threshold; the number of virtual models that need to display animation frames on the same screen with a proportion greater than the proportion threshold is greater than the second Quantity threshold; the number of all virtual models that need to display animation frames on the same screen is greater than the first quantity threshold, and the number of virtual models with a proportion greater than the proportion threshold of all virtual models is greater than the second quantity threshold; the proportion of any virtual model is the ratio of the rendered size of any virtual model to the reference size.
- the animation frame corresponding to at least one virtual model is displayed according to the target animation update frequency of at least one virtual model, wherein the target animation update frequency of at least one virtual model is at least one virtual model
- the model's initial animation update frequency is determined based on resource consumption metrics. According to the target animation update frequency of at least one virtual model, resource consumption can be effectively and globally controlled, which is beneficial to improving the display fluency of animation frames, and further improving the human-computer interaction rate.
- the resource consumption index is compared with the resource consumption threshold, and when the resource consumption index is greater than the resource consumption threshold, the adjustment coefficient is determined according to the two, and the animation is reduced according to the adjustment coefficient Update frequency, thereby reducing the amount of resources consumed by animation updates, achieving the purpose of reducing the time consumption of global animation updates, thereby increasing FPS.
- the target animation update frequency of the high-importance virtual model is limited by considering the first model screening condition, so that the target animation update frequency of the high-importance virtual model is not lower than the reference animation update frequency, ensuring high importance The animation performance of the virtual model.
- the target animation update frequency of the virtual model is compared with the count value of the virtual model.
- the target animation frame determined based on the first animation frame, the second animation frame and the count value of the virtual model can be displayed, and the target animation frame is an interpolation smoothing between the first animation frame and the second animation frame.
- the animation frame shows that the target animation frame can achieve an animation effect close to updating every frame, that is, close to an animation effect without frequency reduction, and improve the display effect of the animation frame.
- the virtual model is associated with other virtual models, and if the virtual model is associated with other virtual models, then by adjusting the target animation update frequency of the virtual model to the animation update frequency of other virtual models and adjusting the count value of the virtual model to other
- the counter value of the virtual model is used to realize down-frequency synchronization, that is, the animation update of the virtual model is synchronized with the animation update of the associated virtual model to ensure that the animation performance is correct.
- the device provided by the above-mentioned embodiments implements its functions, it only uses the division of the above-mentioned functional units as an example. In practical applications, the above-mentioned function allocation can be completed by different functional units according to needs. The internal structure of the device is divided into different functional units to complete all or part of the functions described above. In addition, the device and the method embodiment provided by the above embodiment belong to the same idea, and the specific implementation process thereof is detailed in the method embodiment, and will not be repeated here.
- FIG. 13 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
- the computer device can be a terminal, and the terminal can be: PC, mobile phone, smart phone, PDA, wearable device, handheld portable game device, PPC, tablet computer, smart car machine, smart TV, smart speaker, and vehicle-mounted terminal.
- a terminal may also be called user equipment, portable terminal, laptop terminal, desktop terminal, etc. by other names.
- a terminal includes: a processor 1301 and a memory 1302 .
- the processor 1301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. Processor 1301 can adopt at least one hardware form in DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, programmable logic array) accomplish.
- the processor 1301 may also include a main processor and a coprocessor.
- the main processor is a processor for processing data in the wake-up state, also called a CPU; the coprocessor is used for processing data in the standby state.
- a low-power processor for processing is a processor for processing data in the wake-up state, also called a CPU; the coprocessor is used for processing data in the standby state.
- the processor 1301 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is used for rendering and drawing the content that needs to be displayed on the display screen.
- the processor 1301 may also include an AI (Artificial Intelligence, artificial intelligence) processor, where the AI processor is used to process computing operations related to machine learning.
- AI Artificial Intelligence, artificial intelligence
- Memory 1302 may include one or more computer-readable storage media, which may be non-transitory.
- the memory 1302 may also include high-speed random access memory and non-volatile memory, such as one or more magnetic disk storage devices and flash memory storage devices.
- the non-transitory computer-readable storage medium in the memory 1302 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 1301, so that the terminal implements the method embodiment in this application A display method for the provided animation frames.
- the terminal may optionally further include: a display screen 1305 .
- the display screen 1305 is used to display a UI (User Interface, user interface).
- the UI can include graphics, text, icons, video, and any combination thereof.
- the display screen 1305 also has the ability to collect touch signals on or above the surface of the display screen 1305 .
- the touch signal can be input to the processor 1301 as a control signal for processing.
- the display screen 1305 can also be used to provide virtual buttons and/or virtual keyboards, also called soft buttons and/or soft keyboards.
- the display screen 1305 may be a flexible display screen, which is disposed on a curved surface or a folded surface of the terminal. Even, the display screen 1305 can also be set as a non-rectangular irregular figure, that is, a special-shaped screen.
- the display screen 1305 can be made of LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light-emitting diode) and other materials.
- the animation frame corresponding to at least one virtual model is displayed through the display screen 1305 .
- FIG. 13 does not limit the terminal, and may include more or less components than shown in the figure, or combine certain components, or adopt different component arrangements.
- a non-volatile computer-readable storage medium is also provided, and at least one computer program is stored in the non-volatile computer-readable storage medium, and the at least one computer program is processed by a computer device The device is loaded and executed, so that the computer can realize any one of the above animation frame display methods.
- the above-mentioned non-volatile computer-readable storage medium may be a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a read-only optical disc (Compact Disc Read-Only Memory, CD-ROM), magnetic tape, floppy disk and optical data storage devices, etc.
- a computer program product includes a computer program or a computer instruction, and the computer program or computer instruction is loaded and executed by a processor, so that the computer realizes any one of the above-mentioned animation frame display method.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
Claims (21)
- 一种动画帧的显示方法,其中,所述方法由电子设备执行,所述方法包括:基于至少一个虚拟模型的初始动画更新频率,获取资源消耗指标,所述资源消耗指标用于指示根据所述至少一个虚拟模型的初始动画更新频率进行动画更新需要消耗的资源量;基于所述资源消耗指标以及所述初始动画更新频率,获取所述至少一个虚拟模型的目标动画更新频率;根据所述目标动画更新频率,显示所述至少一个虚拟模型对应的动画帧。
- 根据权利要求1所述的方法,其中,所述基于所述资源消耗指标以及所述初始动画更新频率,获取所述至少一个虚拟模型的目标动画更新频率,包括:当所述资源消耗指标大于资源消耗阈值时,基于所述资源消耗指标和所述资源消耗阈值,确定调整系数;基于所述调整系数对所述初始动画更新频率进行调整,得到所述至少一个虚拟模型的第一动画更新频率;基于所述第一动画更新频率,获取所述至少一个虚拟模型的目标动画更新频率。
- 根据权利要求2所述的方法,其中,所述基于所述第一动画更新频率,获取所述至少一个虚拟模型的目标动画更新频率,包括:当第一虚拟模型满足第一模型筛选条件,且所述第一虚拟模型的第一动画更新频率不高于参考动画更新频率时,将所述参考动画更新频率作为所述第一虚拟模型的目标动画更新频率,所述第一虚拟模型为所述至少一个虚拟模型中的任一虚拟模型。
- 根据权利要求2所述的方法,其中,所述基于所述第一动画更新频率,获取所述至少一个虚拟模型的目标动画更新频率,包括:当第一虚拟模型满足第一模型筛选条件,且所述第一虚拟模型的第一动画更新频率高于参考动画更新频率时;或者,当所述第一虚拟模型不满足所述第一模型筛选条件时,将所述第一虚拟模型的第一动画更新频率作为所述第一虚拟模型的目标动画更新频率,所述第一虚拟模型为所述至少一个虚拟模型中的任一虚拟模型。
- 根据权利要求2所述的方法,其中,所述调整系数为所述资源消耗指标与所述资源消耗阈值的比值;所述基于所述调整系数对所述初始动画更新频率进行调整,得到所述至少一个虚拟模型的第一动画更新频率,包括:计算第一虚拟模型的初始动画更新频率对应的画面帧数与所述调整系数的乘积,对所述乘积进行取整,得到目标值,所述第一虚拟模型为所述至少一个虚拟模型中的任一虚拟模型;将对应的画面帧数为所述目标值的动画更新频率作为所述第一虚拟模型的第一动画更新频率。
- 根据权利要求1所述的方法,其中,所述基于所述资源消耗指标以及所述初始动画更新频率,获取所述至少一个虚拟模型的目标动画更新频率,包括:当所述资源消耗指标不大于资源消耗阈值时,将所述初始动画更新频率作为所述至少一个虚拟模型的目标动画更新频率。
- 根据权利要求1-6任一所述的方法,其中,所述根据所述目标动画更新频率,显示所述至少一个虚拟模型对应的动画帧,包括:当第一虚拟模型的目标动画更新频率与所述第一虚拟模型的计数值不匹配时,显示所述第一虚拟模型的第一动画帧或目标动画帧,所述第一虚拟模型为所述至少一个虚拟模型中的 任一虚拟模型;其中,所述第一动画帧为所述第一虚拟模型的动画中已显示的最新的动画帧,所述目标动画帧基于所述第一动画帧、第二动画帧和所述第一虚拟模型的计数值确定,所述第二动画帧为所述第一虚拟模型的动画中位于所述第一动画帧后一位的动画帧。
- 根据权利要求7所述的方法,其中,所述显示所述第一虚拟模型的第一动画帧或目标动画帧,包括:当所述第一虚拟模型不满足第二模型筛选条件时,显示所述第一虚拟模型的第一动画帧;当所述第一虚拟模型满足所述第二模型筛选条件时,显示所述第一虚拟模型的目标动画帧。
- 根据权利要求8所述的方法,其中,所述显示所述第一虚拟模型的目标动画帧之前,所述方法还包括:基于所述第一动画帧和所述第二动画帧,确定候选插值平滑动画帧;在所述候选插值平滑动画帧中确定与所述第一虚拟模型的计数值对应的插值平滑动画帧,将所述与所述第一虚拟模型的计数值对应的插值平滑动画帧作为所述第一虚拟模型的目标动画帧。
- 根据权利要求1-6任一所述的方法,其中,所述根据所述目标动画更新频率,显示所述至少一个虚拟模型对应的动画帧,包括:当第一虚拟模型的目标动画更新频率与所述第一虚拟模型的计数值匹配时,显示所述第一虚拟模型的第二动画帧,所述第一虚拟模型为所述至少一个虚拟模型中的任一虚拟模型;其中,所述第二动画帧为所述第一虚拟模型的动画中位于第一动画帧后一位的动画帧,所述第一动画帧为所述第一虚拟模型的动画中已显示的最新的动画帧。
- 根据权利要求1-6任一所述的方法,其中,所述根据所述目标动画更新频率,显示所述至少一个虚拟模型对应的动画帧,包括:当第一虚拟模型关联于第二虚拟模型时,将所述第一虚拟模型的目标动画更新频率调整为所述第二虚拟模型的动画更新频率,得到所述第一虚拟模型的调整后的动画更新频率,所述第一虚拟模型为所述至少一个虚拟模型中的任一虚拟模型;根据所述第一虚拟模型的调整后的动画更新频率,显示所述第一虚拟模型对应的动画帧。
- 根据权利要求11所述的方法,其中,所述将所述第一虚拟模型的目标动画更新频率调整为所述第二虚拟模型的动画更新频率之后,所述方法还包括:将所述第一虚拟模型的计数值调整为所述第二虚拟模型的计数值,以使所述第一虚拟模型的动画更新与所述第二虚拟模型的动画更新同步。
- 根据权利要求1-6任一所述的方法,其中,所述基于至少一个虚拟模型的初始动画更新频率,获取资源消耗指标,包括:获取所述至少一个虚拟模型的资源消耗子指标,任一虚拟模型的资源消耗子指标与所述任一虚拟模型的初始动画更新频率呈正相关关系;汇总所述至少一个虚拟模型的资源消耗子指标,得到所述资源消耗指标。
- 根据权利要求13所述的方法,其中,所述获取至少一个虚拟模型的资源消耗子指标,包括:确定第一虚拟模型的初始动画更新频率对应的画面帧数,所述第一虚拟模型为所述至少 一个虚拟模型中的任一虚拟模型;将与所述画面帧数呈负相关关系的正数作为所述第一虚拟模型的资源消耗子指标。
- 根据权利要求1-6任一所述的方法,其中,所述基于至少一个虚拟模型的初始动画更新频率,获取资源消耗指标之前,所述方法还包括:确定第一虚拟模型的占比值,所述第一虚拟模型为所述至少一个虚拟模型中的任一虚拟模型,所述第一虚拟模型的占比值为所述第一虚拟模型的渲染尺寸与参考尺寸的比值;将所述第一虚拟模型的占比值对应的动画更新频率作为所述第一虚拟模型的初始动画更新频率。
- 根据权利要求2-6任一所述的方法,其中,所述资源消耗阈值为目标类别对应的资源消耗阈值,所述至少一个虚拟模型均为所述目标类别的虚拟模型。
- 根据权利要求1-6任一所述的方法,其中,所述基于至少一个虚拟模型的初始动画更新频率,获取资源消耗指标,包括:当虚拟模型的情况满足参考条件时,基于至少一个虚拟模型的初始动画更新频率,获取资源消耗指标;其中,所述虚拟模型的情况满足参考条件包括以下任一项:需要同屏显示动画帧的全部虚拟模型的数量大于第一数量阈值;需要同屏显示动画帧的全部虚拟模型中占比值大于占比值阈值的虚拟模型的数量大于第二数量阈值;需要同屏显示动画帧的全部虚拟模型的数量大于所述第一数量阈值,且所述全部虚拟模型中占比值大于所述占比值阈值的虚拟模型的数量大于所述第二数量阈值;任一虚拟模型的占比值为所述任一虚拟模型的渲染尺寸与参考尺寸的比值。
- 一种动画帧的显示装置,其中,所述装置包括:第一获取单元,用于基于至少一个虚拟模型的初始动画更新频率,获取资源消耗指标,所述资源消耗指标用于指示根据所述至少一个虚拟模型的初始动画更新频率进行动画更新需要消耗的资源量;第二获取单元,用于基于所述资源消耗指标以及所述初始动画更新频率,获取所述至少一个虚拟模型的目标动画更新频率;显示单元,用于根据所述目标动画更新频率,显示所述至少一个虚拟模型对应的动画帧。
- 一种计算机设备,其中,所述计算机设备包括处理器和存储器,所述存储器中存储有至少一条计算机程序,所述至少一条计算机程序由所述处理器加载并执行,以使所述计算机设备实现如权利要求1至17任一所述的动画帧的显示方法。
- 一种非易失性计算机可读存储介质,其中,所述非易失性计算机可读存储介质中存储有至少一条计算机程序,所述至少一条计算机程序由处理器加载并执行,以使计算机实现如权利要求1至17任一所述的动画帧的显示方法。
- 一种计算机程序产品,其中,所述计算机程序产品包括计算机程序或计算机指令,所述计算机程序或所述计算机指令由处理器加载并执行,以使计算机实现如权利要求1至17任一所述的动画帧的显示方法。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US18/455,592 US20230401772A1 (en) | 2022-01-05 | 2023-08-24 | Animation frame display method and apparatus, device, and storage medium |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210006550.9 | 2022-01-05 | ||
CN202210006550.9A CN114299201A (zh) | 2022-01-05 | 2022-01-05 | 动画帧的显示方法、装置、设备及存储介质 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US18/455,592 Continuation US20230401772A1 (en) | 2022-01-05 | 2023-08-24 | Animation frame display method and apparatus, device, and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023130808A1 true WO2023130808A1 (zh) | 2023-07-13 |
Family
ID=80975310
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/127133 WO2023130808A1 (zh) | 2022-01-05 | 2022-10-24 | 动画帧的显示方法、装置、设备及存储介质 |
Country Status (3)
Country | Link |
---|---|
US (1) | US20230401772A1 (zh) |
CN (1) | CN114299201A (zh) |
WO (1) | WO2023130808A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114299201A (zh) * | 2022-01-05 | 2022-04-08 | 腾讯科技(深圳)有限公司 | 动画帧的显示方法、装置、设备及存储介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090167768A1 (en) * | 2007-12-31 | 2009-07-02 | Apple Inc. | Selective frame rate display of a 3D object |
US20110096077A1 (en) * | 2009-10-27 | 2011-04-28 | Microsoft Corporation | Controlling animation frame rate of applications |
CN106816134A (zh) * | 2017-01-24 | 2017-06-09 | 广东欧珀移动通信有限公司 | 显示帧率调整方法、装置和终端设备 |
CN112927332A (zh) * | 2021-04-02 | 2021-06-08 | 腾讯科技(深圳)有限公司 | 骨骼动画更新方法、装置、设备及存储介质 |
CN114299201A (zh) * | 2022-01-05 | 2022-04-08 | 腾讯科技(深圳)有限公司 | 动画帧的显示方法、装置、设备及存储介质 |
-
2022
- 2022-01-05 CN CN202210006550.9A patent/CN114299201A/zh active Pending
- 2022-10-24 WO PCT/CN2022/127133 patent/WO2023130808A1/zh active Application Filing
-
2023
- 2023-08-24 US US18/455,592 patent/US20230401772A1/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090167768A1 (en) * | 2007-12-31 | 2009-07-02 | Apple Inc. | Selective frame rate display of a 3D object |
US20110096077A1 (en) * | 2009-10-27 | 2011-04-28 | Microsoft Corporation | Controlling animation frame rate of applications |
CN106816134A (zh) * | 2017-01-24 | 2017-06-09 | 广东欧珀移动通信有限公司 | 显示帧率调整方法、装置和终端设备 |
CN112927332A (zh) * | 2021-04-02 | 2021-06-08 | 腾讯科技(深圳)有限公司 | 骨骼动画更新方法、装置、设备及存储介质 |
CN114299201A (zh) * | 2022-01-05 | 2022-04-08 | 腾讯科技(深圳)有限公司 | 动画帧的显示方法、装置、设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
US20230401772A1 (en) | 2023-12-14 |
CN114299201A (zh) | 2022-04-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111652121B (zh) | 一种表情迁移模型的训练方法、表情迁移的方法及装置 | |
WO2020228406A1 (zh) | 图像风格化生成方法、装置及电子设备 | |
CN108211352B (zh) | 一种调节画质的方法及终端 | |
CN111190926B (zh) | 资源缓存方法、装置、设备及存储介质 | |
CN111767554B (zh) | 屏幕分享方法、装置、存储介质及电子设备 | |
CN112802172B (zh) | 三维模型的纹理映射方法、装置、存储介质及计算机设备 | |
US20190080512A1 (en) | Three-dimensional graphics image processing | |
WO2023130808A1 (zh) | 动画帧的显示方法、装置、设备及存储介质 | |
CN113350793B (zh) | 一种界面元素设置方法、装置、电子设备和存储介质 | |
WO2022247204A1 (zh) | 游戏的显示控制方法、非易失性存储介质及电子装置 | |
US20220109617A1 (en) | Latency determinations for human interface devices | |
CN108290071B (zh) | 用于在预测游戏者的意图的情况下确定用于执行绘制的资源分配的介质、装置、系统和方法 | |
US20230082928A1 (en) | Virtual aiming control | |
CN112927332A (zh) | 骨骼动画更新方法、装置、设备及存储介质 | |
WO2020156487A1 (zh) | 场景识别方法及装置、终端、存储介质 | |
CN109302523B (zh) | 一种手机端和服务器端手机性能评估方法 | |
CN111277904B (zh) | 一种视频的播放控制方法、装置及计算设备 | |
CN110197459B (zh) | 图像风格化生成方法、装置及电子设备 | |
CN110089076B (zh) | 实现信息互动的方法和装置 | |
CN114863008B (zh) | 图像处理方法、装置、电子设备及存储介质 | |
US8633932B1 (en) | Animation with adjustable detail level | |
CN106547339A (zh) | 计算机设备的控制方法和装置 | |
CN118159341A (zh) | 一种图像帧的渲染方法及相关装置 | |
US20220253807A1 (en) | Context aware annotations for collaborative applications | |
CN113941152A (zh) | 虚拟对象控制方法、装置、电子设备及存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22918260 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2023575358 Country of ref document: JP Kind code of ref document: A |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2022918260 Country of ref document: EP |
|
ENP | Entry into the national phase |
Ref document number: 2022918260 Country of ref document: EP Effective date: 20240610 |