S
S
SEOD2019-06-14 22:05:07
Android
SEOD, 2019-06-14 22:05:07

How many FPS do native android apps have?

How many FPS do native android apps have? Is this a valid question at all? Or is there no screen updates, as it happens in games? If not, then how does the rendering system of native UI elements work differently for applications?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Adamos, 2019-06-14
@Adamos

Dig into the cocos2d-x documentation for example. The engine works in 3D and renders scenes with a given FPS.
Another thing is that static scenes (like scenes with UI elements), of course, are not redrawn 60 times per second (this is the default value, as far as I remember), but are updated only when changes are made (this is usually less often).

D
Denis Zagaevsky, 2019-06-14
@zagayevskiy

In general, we can assume that 60. 16ms is given for rendering one frame. If you make a view that changes the background every frame and calls invalidate(), then there will be 60 frames.
Naturally, there are a lot of optimizations on the topic "do not draw what does not need to be updated", so the usual view has onDraw only when it really needs to be redrawn.
In general, the topic is quite extensive, you need specifics, what exactly interests you.
See related:
https://youtu.be/CaMTIgxCSqU
https://youtu.be/WH9AFhgwmDw
https://youtu.be/we6poP0kw6E

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question