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 2 of 5 1 2 3 4 »
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#26

bejoy

[GLOBAL: userInfoPane.html]
bejoy
  • Contributor

  • 111 posts
  • Corona SDK

Thanx for the update Dell.

Let's hope this get's fixed soon enough..
uid: 84539 topic_id: 18556 reply_id: 78114


[TOPIC: post.html]
#27

jonathanbeebe

[GLOBAL: userInfoPane.html]
jonathanbeebe
  • Contributor

  • 654 posts
  • Alumni

Does anyone know if this issue affects the 3GS, or is the only affected device just the first generation iPad? (the iPhone3G and iPod2G are no longer supported by Corona-made apps).
uid: 52430 topic_id: 18556 reply_id: 78163


[TOPIC: post.html]
#28

jonathanbeebe

[GLOBAL: userInfoPane.html]
jonathanbeebe
  • Contributor

  • 654 posts
  • Alumni

Does anyone know if this issue affects the 3GS, or is the only affected device just the first generation iPad? (the iPhone3G and iPod2G are no longer supported by Corona-made apps).
uid: 52430 topic_id: 18556 reply_id: 78164


[TOPIC: post.html]
#29

ocq

[GLOBAL: userInfoPane.html]
ocq
  • Observer

  • 5 posts
  • Corona SDK

I tested on iPhone4. It's present.
uid: 107830 topic_id: 18556 reply_id: 78166


[TOPIC: post.html]
#30

jonathanbeebe

[GLOBAL: userInfoPane.html]
jonathanbeebe
  • Contributor

  • 654 posts
  • Alumni

Hi everyone, just wanted to give you a quick update with this...

We've been able to identify the source of the delay and fix the issue with non-effect scene changes.

We're still working on the best solution for solving the issue with scene changes with effects in place, so I ask you to continue to be patient for those changes.

Do know that this is being looked into though. The fix for the non-effect scene changes will be in the daily builds soon (not sure exactly which one yet, but most-likely mon or tues). Thanks again everyone.
uid: 52430 topic_id: 18556 reply_id: 78212


[TOPIC: post.html]
#31

Yogamatta

[GLOBAL: userInfoPane.html]
Yogamatta
  • Enthusiast

  • 45 posts
  • Corona SDK

Thanks jB,

It is reinsuring to know You are working on a solution.

Keep up the good work!
uid: 40334 topic_id: 18556 reply_id: 78301


[TOPIC: post.html]
#32

Dell

[GLOBAL: userInfoPane.html]
Dell
  • Enthusiast

  • 32 posts
  • Corona SDK

Thanks for the update Jonathan, good to know you've found the source of the problem :)
uid: 8600 topic_id: 18556 reply_id: 78332


[TOPIC: post.html]
#33

Joe Meenen

[GLOBAL: userInfoPane.html]
Joe Meenen
  • Observer

  • 8 posts
  • Guests

Just tried the daily build 2012.723. The delay is still there. I'm testing on an iPhone 4.

Thanks for looking into this.
uid: 2334 topic_id: 18556 reply_id: 79145


[TOPIC: post.html]
#34

NexGen Group

[GLOBAL: userInfoPane.html]
NexGen Group
  • Enthusiast

  • 48 posts
  • Corona SDK

I am seeing the same "delay" between screen transitions using Director. Although I am using Tabbar widget and director. In the simulator, it seems to work fine, but when I build for Android device, HTC Sensation, "delay" is present. I don't know what it could be.

If someone can give me some insight on this other thread, it would also be much appreciated.

http://developer.anscamobile.com/forum/2012/01/04/help-director-and-tabbar-widget
uid: 71201 topic_id: 18556 reply_id: 79246


[TOPIC: post.html]
#35

jkrassman

[GLOBAL: userInfoPane.html]
jkrassman
  • Contributor

  • 573 posts
  • Corona SDK

Yepp, it is still there - running on a iPhone 4S, simulator works fine.

Joakim
uid: 81188 topic_id: 18556 reply_id: 79255


[TOPIC: post.html]
#36

jonathanbeebe

[GLOBAL: userInfoPane.html]
jonathanbeebe
  • Contributor

  • 654 posts
  • Alumni

Just a quick update —

The delay issue has been fixed for non-effect scene changes and will be in the *next* daily build (after 2012.724). You can test it out by going to the WidgetDemo and press the tab buttons (those are scene changes without effects).

Unfortunately at the moment you'll still get the delay when you specify an effect, and will have an update on that for you shortly.

Thanks for your patience and continued feedback.
uid: 52430 topic_id: 18556 reply_id: 79274


[TOPIC: post.html]
#37

jkrassman

[GLOBAL: userInfoPane.html]
jkrassman
  • Contributor

  • 573 posts
  • Corona SDK

0.5 + for that Jonathan, you will get the rest 0.5 when it is fixed for the effects as well :)

Regards, Joakim
uid: 81188 topic_id: 18556 reply_id: 79287


[TOPIC: post.html]
#38

jkrassman

[GLOBAL: userInfoPane.html]
jkrassman
  • Contributor

  • 573 posts
  • Corona SDK

So it is a new build out with the fix, anyone had tried it now?

I am heading a way for a meeting so I can't verify this until tonight, to bad ;)

Regards, Joakim

uid: 81188 topic_id: 18556 reply_id: 79354


[TOPIC: post.html]
#39

jkrassman

[GLOBAL: userInfoPane.html]
jkrassman
  • Contributor

  • 573 posts
  • Corona SDK

So I just did a fresh build with the latest release, but I didn't remove my transitions.

Running on an iPhone 4S I can see a small improvement. I haven't tried without transitions yet.

Regards, Joakim
uid: 81188 topic_id: 18556 reply_id: 79415


[TOPIC: post.html]
#40

jkrassman

[GLOBAL: userInfoPane.html]
jkrassman
  • Contributor

  • 573 posts
  • Corona SDK

*bump* - any information if / when this will be fixed?

Joakim
uid: 81188 topic_id: 18556 reply_id: 81042


[TOPIC: post.html]
#41

Johantd04

[GLOBAL: userInfoPane.html]
Johantd04
  • Enthusiast

  • 62 posts
  • Corona SDK

Same issue here after building my app for my device. I hold my thumbs hoping for a fix in the daily build very soon!
uid: 106083 topic_id: 18556 reply_id: 81187


[TOPIC: post.html]
#42

jeremybell

[GLOBAL: userInfoPane.html]
jeremybell
  • Observer

  • 29 posts
  • Corona SDK

Could this problem be related to storyboard saving "oldscene.jpg" to the tmp directory each time you load a new scene?

Is there no way to simply turn off that functionality?
uid: 35618 topic_id: 18556 reply_id: 85915


[TOPIC: post.html]
#43

optionniko

[GLOBAL: userInfoPane.html]
optionniko
  • Enthusiast

  • 46 posts
  • Corona SDK

Hey Jonathan,

any news about the delays when you specify an effect?

Thanks!
Nick
uid: 77183 topic_id: 18556 reply_id: 87159


[TOPIC: post.html]
#44

Dell

[GLOBAL: userInfoPane.html]
Dell
  • Enthusiast

  • 32 posts
  • Corona SDK

Still waiting on this too, the oldscene.jpg find is interesting, I wonder if they are some how using that for the transition.
uid: 8600 topic_id: 18556 reply_id: 87163


[TOPIC: post.html]
#45

Bladko

[GLOBAL: userInfoPane.html]
Bladko
  • Contributor

  • 342 posts
  • Enterprise

Dear Ansca,

Could You inform us about possible schedule (target date) to solve this issue called "Latency in storyboard" (or in general quality of this API) - need target date for some budget planning.

a) FEB
b) MAR / APR, use Director instead
c) forever Young :)

Improved transitions: pause/resume methods is a part of roadmap but without any target date or progress level.

Regards,
Tom
uid: 111283 topic_id: 18556 reply_id: 87165


[TOPIC: post.html]
#46

Omnigeek Media

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

  • 2,975 posts
  • Corona SDK

This delay issue and the full page ads not being able to be skipped is holding up a release of a new app and a release of an upgrade.
uid: 19626 topic_id: 18556 reply_id: 87167


[TOPIC: post.html]
#47

Hive

[GLOBAL: userInfoPane.html]
Hive
  • Enthusiast

  • 86 posts
  • Corona SDK

This happening to me too and im really needing a fix update. Any leads?
uid: 42417 topic_id: 18556 reply_id: 87414


[TOPIC: post.html]
#48

Bladko

[GLOBAL: userInfoPane.html]
Bladko
  • Contributor

  • 342 posts
  • Enterprise

i hope fix update to storyboard API will be made soon... not when pigs fly

Regards,
Tom
uid: 111283 topic_id: 18556 reply_id: 88179


[TOPIC: post.html]
#49

Johantd04

[GLOBAL: userInfoPane.html]
Johantd04
  • Enthusiast

  • 62 posts
  • Corona SDK

I'm working on fix for this. Just got my app to work much better but I think there is more to optimize in my code (I noticed some performance issues when switching to views with alot of objects). Also I have just included some effect transistion while testing.

storyboardGotoScene.lua

-- Project: Storyboard MoveTo
--
-- Version: 1.0
--
-- Author: Johan Johansson @ Baboons.se
--
-- Support: www.baboons.se
--
-- Copyright (C) Baboons. All Rights Reserved.
--

local storyboard = require "storyboard"

-- OnComplete Event
local function onComplete(view)        
    view.lastScene:exitScene()    
    view.scene:enterScene()
end

-- Set helper
local function Set(list)
    local set = {}
    for _, l in ipairs(list) do set[l] = true end
    return set
end

-- Move To Scene
local gotoScene = function ( sceneName, effect, effectTime)

    local loadedScenes = Set{unpack(storyboard.loadedSceneMods)}

    -- Get The previous scene name
    local lastSceneName = storyboard.getPrevious()
    pr("Last  Scene " .. lastSceneName)

    -- Get the previous scne
    local lastScene = storyboard.getScene( lastSceneName )

    -- Get or Load New Scene
    local scene = storyboard.getScene( sceneName ) or require( sceneName )
    pr("Testing " .. sceneName)
    -- Create Scene if not loaded
    if loadedScenes[sceneName] == nil then
       scene.view = display.newGroup()
       storyboard.scenes[sceneName] = scene
       table.insert(storyboard.loadedSceneMods, sceneName)

       scene:createScene()
    end

    -- Create View Group
    scene.view.scene = scene
    scene.view.lastScene = lastScene

    -- Set positions
    local newX = 0
    local newY = 0
    local curX = 0
    local curY = 0

    if     effect == "fromRight" then
        newX =  -display.contentWidth
    elseif effect == "fromLeft" then
        newX =  display.contentWidth
    elseif effect == "fromTop" then
        newY =  -display.contentHeight
    elseif effect == "fromBottom" then
        newY =  display.contentHeight
    elseif effect == "toBottom" then
        curY = display.contentHeight
    elseif effect == "toTop" then
        curY = -display.contentHeight
    elseif effect == "slideLeft" then
        newX = display.contentWidth
        curX = -display.contentWidth
    elseif effect == "slideRight" then
        newX = -display.contentWidth
        curX = display.contentWidth
    end

    -- Move New Scene View out of screen
    scene.view.x = newX
    scene.view.y = newY

    -- Move New Scene
    transition.to( scene.view, { time=effectTime,  x=(0), y=(0), onComplete=onComplete } )

    -- Move Current Scene
    transition.to( lastScene.view, { time=effectTime,  x=(curX), y=(curY) } )
end

return gotoScene

And then in you'r scene file just add
storyboard.gotoScene = require("storyboardGotoScene")

...to overide the built in function
uid: 106083 topic_id: 18556 reply_id: 88181


[TOPIC: post.html]
#50

Hive

[GLOBAL: userInfoPane.html]
Hive
  • Enthusiast

  • 86 posts
  • Corona SDK

I haven't tried Baboons fix yet but I can confirm that Storyboard has the same issues on android Gingerbread as people mention on ipad/iphone.
uid: 42417 topic_id: 18556 reply_id: 88187



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