Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Initial delay with storyboard.gotoScene() ?
Started by Dell Dec 02 2011 11:21 PM

- - - - -
122 replies to this topic
[TOPIC CONTROLS]
Page 1 of 5 1 2 3 »
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Dell

[GLOBAL: userInfoPane.html]
Dell
  • Enthusiast

  • 32 posts
  • Corona SDK

Hi,

Has anyone else noticed a delay of maybe 500ms between calling storyboard.gotoScene() and the transition actually starting?

The delay is there even if not using a transition effect and does not seem to improve if the scene has been loaded previously.

At first I thought it may be due to the preloading of the scene but the delay is still there if it contains nothing but a newRect().

If I either roll my own or use Director the transition starts immediately.

Is this just the overhead associated with using the storyboard API? Its not a long time by any means, less than a second, but its enough to make navigation feel laggy.

Im using 2011.701 on an iPad 1st Gen, but I see it in the last 4 daily builds, I also went back to 2011.678 - same problem ( though it may be ever so slightly quicker, could be my imagination though ).
uid: 8600 topic_id: 18556 reply_id: 318556


[TOPIC: post.html]
#2

Dirtybit

[GLOBAL: userInfoPane.html]
Dirtybit
  • Enthusiast

  • 72 posts
  • Enterprise

We can confirm it too, it's the exact same problem. The delay is even longer on older devices, up to about 2 sec on iPhone 3G.
uid: 88922 topic_id: 18556 reply_id: 71304


[TOPIC: post.html]
#3

Yogamatta

[GLOBAL: userInfoPane.html]
Yogamatta
  • Enthusiast

  • 45 posts
  • Corona SDK

Same here. I am doing a couple of projects for children and they manage to tap the screen 3 - 4 times before transition begins. And it's hard to explain they need to take it easy. ;)
uid: 40334 topic_id: 18556 reply_id: 71308


[TOPIC: post.html]
#4

peach pellen

[GLOBAL: userInfoPane.html]
peach pellen
  • Corona Geek

  • 8,866 posts
  • Alumni

Thanks for posting this - I will bring it up in our next meeting.

Peach :)
uid: 52491 topic_id: 18556 reply_id: 71374


[TOPIC: post.html]
#5

Dell

[GLOBAL: userInfoPane.html]
Dell
  • Enthusiast

  • 32 posts
  • Corona SDK

Ah at least its not just me!

Thats great, thanks Peach :)
uid: 8600 topic_id: 18556 reply_id: 71401


[TOPIC: post.html]
#6

PixelEnvision

[GLOBAL: userInfoPane.html]
PixelEnvision
  • Contributor

  • 305 posts
  • Corona SDK

Any updates on this?
uid: 10478 topic_id: 18556 reply_id: 71629


[TOPIC: post.html]
#7

darkconsoles

[GLOBAL: userInfoPane.html]
darkconsoles
  • Contributor

  • 795 posts
  • Guests

i plan to use storyboard a lot, so i'd really like for ansca to resolve this
uid: 16142 topic_id: 18556 reply_id: 71634


[TOPIC: post.html]
#8

ocq

[GLOBAL: userInfoPane.html]
ocq
  • Observer

  • 5 posts
  • Corona SDK

Any news on a fix?
uid: 107830 topic_id: 18556 reply_id: 71883


[TOPIC: post.html]
#9

Dell

[GLOBAL: userInfoPane.html]
Dell
  • Enthusiast

  • 32 posts
  • Corona SDK

Hopefully it will get fixed in a daily soon :)

Im hoping to submit this app before the Christmas shutdown and I wouldnt feel comfortable doing so using the storyboard API as it is.

If we dont hear anything for a few days I think ill probably shoe horn my code into Director and then just revert back again when its been fixed.
uid: 8600 topic_id: 18556 reply_id: 71975


[TOPIC: post.html]
#10

peach pellen

[GLOBAL: userInfoPane.html]
peach pellen
  • Corona Geek

  • 8,866 posts
  • Alumni

I don't have any news for you guys yet; only that the team is aware of the issue.

If any of you would like to file a bug report, that would be appreciated as well. (Post bug # here please.)

I'll update you as soon as I've got any news.

Peach :)
uid: 52491 topic_id: 18556 reply_id: 72049


[TOPIC: post.html]
#11

Dell

[GLOBAL: userInfoPane.html]
Dell
  • Enthusiast

  • 32 posts
  • Corona SDK

Thanks for the update Peach :)

Ive submitted bug report #3406 ( though email confirmation says case #10346 ).
uid: 8600 topic_id: 18556 reply_id: 72060


[TOPIC: post.html]
#12

Dirtybit

[GLOBAL: userInfoPane.html]
Dirtybit
  • Enthusiast

  • 72 posts
  • Enterprise

Thanks Dell and Peach:-)
@Peach: Do you think that it can be solved before the 15th December? If not, we have to port our code back to Director again.
uid: 88922 topic_id: 18556 reply_id: 72130


[TOPIC: post.html]
#13

peach pellen

[GLOBAL: userInfoPane.html]
peach pellen
  • Corona Geek

  • 8,866 posts
  • Alumni

@Dell - Thank you very much!

@dirtyBit I can't comment on that as it isn't my department, however I am doing my best to get some info.

Peach :)
uid: 52491 topic_id: 18556 reply_id: 72133


[TOPIC: post.html]
#14

jonathanbeebe

[GLOBAL: userInfoPane.html]
jonathanbeebe
  • Contributor

  • 654 posts
  • Alumni

Hello,

I have a quick question: Does the delay occur even if no effects are specified, or only when using a transition effect?

Thanks,
uid: 52430 topic_id: 18556 reply_id: 72242


[TOPIC: post.html]
#15

Dell

[GLOBAL: userInfoPane.html]
Dell
  • Enthusiast

  • 32 posts
  • Corona SDK

Hi Jonathan, The delay happens for me whether I specify an effect or not.
uid: 8600 topic_id: 18556 reply_id: 72243


[TOPIC: post.html]
#16

ocq

[GLOBAL: userInfoPane.html]
ocq
  • Observer

  • 5 posts
  • Corona SDK

Same here, delay is present for:

storyboard.gotoScene( "level")
storyboard.gotoScene( "level", "crossFade", 0 )
storyboard.gotoScene( "level", "crossFade", 500 )
uid: 107830 topic_id: 18556 reply_id: 72244


[TOPIC: post.html]
#17

Dell

[GLOBAL: userInfoPane.html]
Dell
  • Enthusiast

  • 32 posts
  • Corona SDK

Unfortunately it looks like this is still present in today's release, I guess that is to be expected as it is essentially the 2011.703 build.

No doubt it was reported too late to squeeze in in time, hopefully soon :)
uid: 8600 topic_id: 18556 reply_id: 72499


[TOPIC: post.html]
#18

Omnigeek Media

[GLOBAL: userInfoPane.html]
Omnigeek Media
  • Corona Geek

  • 2,975 posts
  • Corona SDK

What I'm seeing is that even using CrossFade, I get a brief "fade to black"... I solved it (well hacked/hid the problem) by adding a white rectangle background to main.lua since most of my backgrounds in this game are white based, it doesn't show the black background.

uid: 19626 topic_id: 18556 reply_id: 72508


[TOPIC: post.html]
#19

Dirtybit

[GLOBAL: userInfoPane.html]
Dirtybit
  • Enthusiast

  • 72 posts
  • Enterprise

Any updates on the progress?
uid: 88922 topic_id: 18556 reply_id: 73726


[TOPIC: post.html]
#20

neufdoigts

[GLOBAL: userInfoPane.html]
neufdoigts
  • Observer

  • 22 posts
  • Corona SDK

Big +1 on this question. Would love to use this API for my next project but am concerned about its performance. Lots of potential just slow to react. Maybe image preloading will help.
uid: 74786 topic_id: 18556 reply_id: 74260


[TOPIC: post.html]
#21

Dell

[GLOBAL: userInfoPane.html]
Dell
  • Enthusiast

  • 32 posts
  • Corona SDK

Im still plodding on with this too. Im using as few scenes as possible now to try and minimise the issue, but that defeats the purpose of the API some what ;)

Preloading images was my first thought too, but I still see the delay if my scene doesn't any..
uid: 8600 topic_id: 18556 reply_id: 74272


[TOPIC: post.html]
#22

Dirtybit

[GLOBAL: userInfoPane.html]
Dirtybit
  • Enthusiast

  • 72 posts
  • Enterprise

We really hope there would be a solution soon, or else we have to go back to director.
BTW we have logged the app on Android with logcat, and it seems that the delay is caused by a cleanup. The cleanup is started right after we press a button that changes the scene, and when it's done the fading starts. Our delay is between 500 and 3000 msec.
uid: 88922 topic_id: 18556 reply_id: 74276


[TOPIC: post.html]
#23

peach pellen

[GLOBAL: userInfoPane.html]
peach pellen
  • Corona Geek

  • 8,866 posts
  • Alumni

Hey guys,

This is being worked on but until it is resolved I'd actually encourage you to continue using Director - this will get sorted out but in the meantime you shouldn't let it hold you back.

Peach :)
uid: 52491 topic_id: 18556 reply_id: 74314


[TOPIC: post.html]
#24

bejoy

[GLOBAL: userInfoPane.html]
bejoy
  • Contributor

  • 111 posts
  • Corona SDK

HI Folks,
Was anyone able to find a workaround for this issue. The delay is considerable and it does seem that the application has stopped for few seconds...

Any help will be appreciated. Going back to Director would be lot of work for me at this stage of the project.

thx,
Bejoy
uid: 84539 topic_id: 18556 reply_id: 75115


[TOPIC: post.html]
#25

Dell

[GLOBAL: userInfoPane.html]
Dell
  • Enthusiast

  • 32 posts
  • Corona SDK

Just wanted to mention that the new 721 build still has the problem.
uid: 8600 topic_id: 18556 reply_id: 78106



[topic_controls]
Page 1 of 5 1 2 3 »
 
[/topic_controls]