js control the phone screen remains lit library, solve h5 mobile terminal, automatic information screen problem

Some explanation: I use Laya (ts) the development of small game, there is a need to keep the needs of the mobile phone screen lit (non-essential), then as white on the Internet, I found the library, probably under the understanding, it should be by playing principle empty video screen to keep the phone constantly, then on into the project tried, really useful, can reach the screen lit effect, but unfortunately that is from 60 fps stable becomes 40 (or less) wavering between -60, the picture is very slow, it seems that my game is impossible, looking at another method, or is my improper use, but feel that the library is still very powerful, so record share,
reprint address: https://github.com/richtr/NoSleep.js

The following is a specific operation and results
Import library
unopened Always
Here Insert Picture Description
Open Steady

Guess you like

Origin www.cnblogs.com/youqc/p/11988416.html