• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Worker performance slow on mobile

Engaged ,
Dec 10, 2017 Dec 10, 2017

Copy link to clipboard

Copied

Hi all,

I have refactored most of my game to run physics on the worker thread. When I run it on my PC from Flash Builder 4.7 everything works great but when I compile app for mobile performance are terrible but like really terrible. Everything is lagging so much like 10 times slower compared to when I did no have workers at all.

I am using shareable byte array to transfer object and contact data.

I am using mutexes to avoid concurrency when reading and writing from byte arrays.

Is this a known thing that workers are not good for mobile. Why would I get so much degraded performance. Is there any common mistakes when working with workers that I may have done that are visible only when compiled for mobile because on PC when I debug it runs really smooth.

I have tested id with Adobe AIR SDK 27.0.132 and AIR SDK 28.0.0.120 Beta and performance are bad on both with workers.

I did test on both iOS and Android and results are the same on both platforms.

I tested it on iPhone X, Samsung s6 Edge and Huawei P10 Lite.

Does anyone have any clue what might be wrong?

TOPICS
Development

Views

217

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines