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?