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

A realization method of optimizing android frame animation

An implementation method and animation technology, applied in multi-program device, program control design, instrument, etc., can solve problems such as decoding freeze, achieve the effect of reducing frame loss rate, reducing memory jitter, and reducing CPU consumption

Active Publication Date: 2022-05-03
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The purpose of the present invention is to overcome the deficiencies in the above-mentioned background technology, provide a kind of realization method of optimizing Android frame animation, firstly can solve the problem of how to reduce the internal memory of frame animation by dynamic adjustment when the frame animation resources are large and the number of frames is large; Secondly, it can solve the stuck problem caused by decoding during the animation process. Finally, when dynamic decoding can be realized, the decoding speed can keep up with the frame rate, reducing or avoiding frame loss. At the same time, for real-time decoding sequence frames and needs Recycled sequence frames are used for memory management, which solves the problem of extra cpu overhead and memory usage caused by creating and destroying objects in Android

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 realization method of optimizing android frame animation
  • A realization method of optimizing android frame animation
  • A realization method of optimizing android frame animation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] An implementation method for optimizing Android frame animation. Firstly, it can solve the problem of how to reduce the memory of frame animation through dynamic adjustment when the frame animation resources are large and the number of frames is large; secondly, it can solve the problem of freezing caused by decoding during the animation process. Finally, when dynamic decoding can be realized, the decoding speed can keep up with the frame rate, reducing or avoiding frame loss. At the same time, memory management is performed on the sequence frames decoded in real time and the sequence frames that need to be recycled, which solves the problem of Android creating objects. The additional cpu overhead and memory usage caused by destroying objects.

[0028] Specifically, in this embodiment, for the current frame animation of Android, all the sequence frames are decoded at one time before the animation starts to prepare, which causes the problems of long initialization time an...

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 implementation method for optimizing Android frame animation, which includes: establishing a cache pool to be used as a buffer for sequence frames, and establishing a thread pool for initiating a new decoding request, and when all existing threads are occupied, the thread pool A new thread is opened in the pool to decode immediately, and a recycling pool is established to realize recycling and multiplexing of sequence frames. The method of the present invention can realize the frame animation of any number of frames on the Android device, and the problem of memory overflow will not occur. For most devices, the CPU performance can also be supported, and there will be almost no frame loss, which greatly improves the frame animation. Usability in Android.

Description

technical field [0001] The invention relates to the technical field of optimizing Android frame animation, in particular to a method for realizing optimizing Android frame animation. Background technique [0002] In Android development, in order to present users with better visual effects, animation development is very important and necessary. As an important module in Android animation, Android frame animation can complete many animations with complex effects, and is often used by development. But at present, the official implementation method of Android frame animation is to decode the sequence frames of the frame animation, and fetch the corresponding sequence frames to present to the user when using it. The effect is very bad when the resources are too large and the number of frames is too large. , which has a large overhead for memory and initialization time. [0003] Specifically, at present, the frame animation implementation of Android devices is to decode and load...

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): G06F9/50G06F9/451
CPCG06F9/5061G06F9/451G06F2209/5011G06F2209/5018
Inventor 李金国
Owner SICHUAN CHANGHONG ELECTRIC CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More