Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master: Improve performance of AS3 implementation (POSIX classes) #51

Open
vpmedia opened this issue Sep 11, 2014 · 3 comments
Open

Master: Improve performance of AS3 implementation (POSIX classes) #51

vpmedia opened this issue Sep 11, 2014 · 3 comments

Comments

@vpmedia
Copy link
Member

vpmedia commented Sep 11, 2014

Investigate why CrossBridge made SWCs are failing to perform when used in an Android APK or iOS IPA project, and which components of the SDK are related (CModule/CRun?)
Possible improvements:

  • Add object pooling where possible for vector . < int > s
  • Don't call enter frame listeners on non-ui based programs
  • Inline often called methods using meta tag
@vpmedia vpmedia changed the title [Master] Improve performance on mobile devices (Adobe AIR SWCs) Master: Improve performance on mobile devices (Adobe AIR SWCs) Sep 11, 2014
@vpmedia vpmedia self-assigned this Sep 12, 2014
vpmedia pushed a commit that referenced this issue Sep 12, 2014
@JoeDupuis
Copy link
Member

Adobe stated somewhere that using Flascc code isn't compatible with mobile (or not supported). I can't find where. I think it was one of their staff posting on the flascc forum.

I don't think it is a good idea to do so, I prefer to port my mobile native app to flash using crossbridge instead of doing them for flash directly in c++ and porting them to mobile through air.

Though I can see the use case where someone with a flash app would want to use a c++ lib ported to flash with crossbridge (like the ones in the samples) and port their app to mobile. So i don't see why it should not be supported.

Have you found a culprit yet by profiling ?

@vpmedia
Copy link
Member Author

vpmedia commented Sep 12, 2014

Somehow I can't see deep enough when using Scout. Only the application code is profiled, but not the embedded ABCs (like C_Run and CModule)
Anyway I've improved performance a bit, since serviceUIRequests() created a new Vector of integers every frame, which was triggering the GC too often, I think.

@vpmedia
Copy link
Member Author

vpmedia commented Sep 12, 2014

I agree that nowadays it's much more easier to create an Air Native Extension (ANE) but still I've read user requirements about using Away (Bullet) Physics for mobile. and Desktop also benefits from performance optimizations. Performance is one of the key thing why I'm using CB in projects.
Also I'm in need to have non-native fallback for native extensions (for web and !maybe! incompatible devices), which is recommended by Adobe too.

@vpmedia vpmedia changed the title Master: Improve performance on mobile devices (Adobe AIR SWCs) Master: Improve performance of AS3 implementation (POSIX classes) Sep 12, 2014
@vpmedia vpmedia removed their assignment Oct 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants