Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for playing animation

A playback method and playback device technology, applied in the computer field, can solve problems such as stuck, uneven playback speed, animation playback freeze, etc., to achieve the effects of avoiding freeze, ensuring non-interruptibility, and ensuring fluency

Active Publication Date: 2016-03-23
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0013] The above method assumes that the timer can always be called back on time, but in the actual running process, the main thread is affected by the dual impact of the CPU busyness and the number of threads in the thread pool. In fact, the timer started in the main thread cannot always be called back on time, which leads to The animation playback is stuck, not smooth, or the playback speed is uneven, or the animation is severely slowed down or even stuck, which affects the final animation playback effect

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for playing animation
  • A method and device for playing animation
  • A method and device for playing animation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples.

[0064] The present invention mainly improves the timing callback part of the existing timer, and proposes a thread timing method. Wake up from dormant waiting at the moment, and at the same time make the timing thread only process independent animation events without interference from other events. In this way, an independent timing thread is used instead of timer, which guarantees the fluency and uninterruptibility of animation in principle. In order to avoid the freeze of animation playback.

[0065] Specifically, the animation playing method of an embodiment of the present invention is as follows figure 2 shown, including the following steps:

[0066] Step 201, starting an independent timing thread outside the main thread of animation playback;

...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an animation playing method and device. The method comprises the steps of starting an independent timing thread outside a main thread of animation playing; when the timing thread is waken up and animation frame starting playing is confirmed, calculating the current playing progress and playing animation frames according to the playing progress; after the animation frames playing is finished, calculating time needed by the timing thread for rest and entering rest to wait until rest time is reached, and the timing thread being waken up again. The invention further discloses an animation playing device. The animation playing method and device can avoid stuck phenomena of animation playing, and improve animation playing effect.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to an animation playing method and device. Background technique [0002] Traditional animation is played by the main thread timer (timer). This solution realizes the timing callback of the animation frame by setting a timer. The specific animation playback process is as follows: figure 1 shown, including the following steps: [0003] Step 101, start a timer, suppose the interval of Timer is T-Interval, T-Interval=animation total time / animation total frame number; [0004] Step 102, first record the time T-AniStart when the complete animation starts; [0005] Step 103, the timer is triggered; [0006] Step 104, judging whether the animation has been played, if so, then end the playback, otherwise enter step 105; [0007] Step 105, performing animation rendering, that is, playing specific animation frames; [0008] Step 106, recording the start time T-Frame of the curre...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G11B20/00G11B27/10
Inventor 周笑宇李昶博
Owner TENCENT TECH (SHENZHEN) CO LTD