airsdk / Adobe-Runtime-Support

Report, track and discuss issues in Adobe AIR. Monitored by Adobe - and HARMAN - and maintained by the AIR community.
200 stars 11 forks source link

Worker execution is limited to 4FPS #33

Open hardcoremore opened 6 years ago

hardcoremore commented 6 years ago

Problem Description

Worker execution is limited on 4FPS which means that ENTER_FRAME, TIMER, setInterval, setTimeout can not be executed faster than 250ms in between them.

I have tested this on AIR 27.0.132 and AIR 28.0.0.120 Beta.

It occurs on both iOS and Android. I have tested on Huawei P10 Lite, Samsung s6 Edge and iPhone X.

This bug is known to Adobe as they acknowledge it on their forum here:

https://forums.adobe.com/thread/1360885

The bug is already reported in the Adobe issue tracker and has not been fixed since 2013:

https://tracker.adobe.com/#/view/AIR-3687099

itlancer commented 11 months ago

@ajwfrost We have the same issue with Android. Setting bigger Stage::frameRate value in Worker do nothing. Also seems it affect network ProgressEvent.SOCKET_DATA events of Socket inside Worker. Looks like AIR cannot read data from Socket fast if high loaded network functionalities used (such as getting video stream from IP cameras). Or may be Socket buffer size should be increased but we haven't method similar to https://docs.oracle.com/javase/8/docs/api/java/net/Socket.html#setSendBufferSize-int-