Adobe-Runtime-Support icon indicating copy to clipboard operation
Adobe-Runtime-Support copied to clipboard

On Mac, the frequency of ProgressEvent.SOCKET_DATA event calls is affected by the framerate.

Open jeremyheo-nsuslab opened this issue 3 months ago • 2 comments

Problem Description

In Mac, the frequency of ProgressEvent.SOCKET_DATA event calls is affected by the framerate. For example, if the average framerate is 10 and the socket recv event actually occurs 30 times per second, then It looks like the only 10 events will be called in a second. ( The remaining events are called after.) (On Window, all of them would be called in a second.)

  • Air SDK Version : 50.2.3.8

Steps to Reproduce

  1. I add a event listener to a socket..
var socket:Socket = new Socket();
...
socket.addEventListener(ProgressEvent.SOCKET_DATA, onReceiveData);
...
socket.connect(host, port);
  1. Change framerate for reproduce
public function Main() {
        ...
        stage.frameRate = 10;
        ...
}
  1. it runs on...
  • OS : MacOS 14 Sonoma

jeremyheo-nsuslab avatar May 07 '24 12:05 jeremyheo-nsuslab