distriqt / airnativeextensions

DEPRECATED: Original repository of the distriqt native extensions and is no longer maintained. Please see our site for the latest ANEs
https://airnativeextensions.com
2 stars 0 forks source link

NativeMaps ANE with Starling-Feathers iOS 8 - Map freezes sometimes #237

Closed svonnidmeg closed 9 years ago

svonnidmeg commented 9 years ago

Hi @koriner ,

I have opened this new issue to not interfere with # 213 of @interactivemartin .

I have noticed that the freezing of the map, it happens in most cases:

In all cases, to unfreeze map, there are 2 ways (sometimes map don't freeze):

It's clear? Sorry my bad English... I suppose all this issues will be solved when you'll release iOS 8 upgrade of ANE... right?

Please, need solution!

Tx!

svonnidmeg commented 9 years ago

Hi @koriner ,

I think found the solution for this issue. Please confirm it.

I’ve noticed that all your examples of all your ANE uses 30 fps (SWF Frames Per Second), like SWF for web I ever work at 60 fps when use Starling-Feathers (recommended fps)

Just test my app publishing at 30 fps and… VOILÀ! All runs perfect… no freezes map at this moment (6-7 tests)… Seems not freeze anymore using 30 fps, but… The app looks poor than 60 fps (Feathers transitions are not as fluid in 30 than 60)

Then: Can you rebuilt the ANE to support 60 fps? (I don’t know if it’s possible)… If you can’t, don’t worry… I suppose the app will be great… but not greatest, understand? I prefer a 10 app than 8-9 app (I mean punctuation, excellence)

If you can adjust this I’ll be happiest man in the world

crooksy88 commented 9 years ago

As a workaround you could try switching the frame rate when the maps are being used.

function showMaps():void { //show maps this.stage.frameRate = Starling.current.nativeOverlay.stage.frameRate = 30; }

function hideMaps():void { //hide maps this.stage.frameRate = Starling.current.nativeOverlay.stage.frameRate = 60; }

svonnidmeg commented 9 years ago

Hi @crooksy88 ,

I work with Flash and not Flex... Flash publish the SWF for AIR with preferences on Preferences tab. It's possible to change this FPS using Flash? It will work?

Tx!

crooksy88 commented 9 years ago

I work with Flash as well. Flash Pro CC. You can set the FPS in the preferences tab but also change the FPS of your app at any time via ActionScript.

svonnidmeg commented 9 years ago

Perfect @crooksy88 ,

Many Thanks! Works great. But... don't you think will be greatest if ANE can work at 60 FPS?

But great solution... you've saved my ass, lol

And I recommend you to use Flash Pro CC 2014... works better!

Tx!

koriner commented 9 years ago

@svonnidmeg The ANE has no real concept of a frame rate, and I'm not sure that your app's framerate would make a difference for the actual map rendering or not.

@crooksy88 beat me to it, but that's what I would recommend too (change your framerate down to 20 or 30 while the map is active).

svonnidmeg commented 9 years ago

really works fine... Many Thanks for help me!

harry248 commented 9 years ago

Had the same problem, reducing the framerate solved it for me. Seems as if it is just too much to handle at the same time.