Intel XDK CW16 - Framerate boost with Intel FPS counter on.

0 favourites
From the Asset Store
Make a displayed number gradually increase or decrease, making an impression of a real-time counting.
  • - I hope, I've been trying to ask them about the white bar on splashscreen startup but still ....

  • I think the white bar is not Intel XDK team case. I believe it's a Crosswalk Project thing (https://crosswalk-project.org/), but still they should at least reply that it's not their case.

  • I have posted on the Intel forum a few days ago but haven't got a reply yet...

  • tomhaiger -- as you know, there is an active thread on the XDK forum regarding the FPS question you've posed. Unfortunately, I am unable to reproduce what you are seeing (I get the same results with or without the FPS flag). Your test project has been provided to the Crosswalk project, so see if they have any comments.

    -- the Crosswalk project folks did respond with the following interesting bits regarding gpu rasterization in this post software.intel.com/en-us forums/intel-xdk/topic/624966#comment-1869352 (remove the space in the URL to get the correct URL, I can't post live URLS here).

  • -- I think the white bar thing is actually something to do with how you configure the SplashScreen plugin, and might be related to the specific version of that plugin, as well. Unfortunately, nobody has ever shown us a good visual of precisely what you mean by the "white bar on startup" -- I've never seen it and it would help to see it in action (for instance, a video of what happens or a sample APK that I could install and run so I could see it).

    As a guess, try adding these options into your intelxdk.config.additions.xml file:

    <preference name="FadeSplashScreen" value="false"/>

    <preference name="FadeSplashScreenDuration" value="0"/>

    That fade splashscreen thing is screwy and causes odd stuff on my test apps. It might be what you are describing, or it might not, I'm not sure, since I don't really know what this "white bar" thing looks like.

  • xmnboy - I haven't tried adding those in my xml file but I recorded a video of my past game project that shows the white bar and published on youtube.

    Subscribe to Construct videos now
  • In my case the bottom bar blink was for CW15. With CW16 I have a full screen white blink.

  • - Crosswalk 17 has a much faster blink now and only shows at the bottom, you should try it.

  • -- thank you for posting that video, I have definitely not seen that. I suspect your app has not finished initializing and needs more time for the splash screen.

    Check this post:

    scirra.com forum /viewtopic.php?f=146&t=170399&p=1033522#p1033522

    (remove the spaces from the URL, I don't have enough points to post URLs on this forum)

    It might provide some useful bits on how to address that.

    If you could do this simple experiment for me and report if you continue to see the white line, it would help me to understand more about what's going on. Add the following lines to your intelxdk.config.additions.xml file:

    <platform name="android">
        <!-- below requires the splash screen plugin -->
        <!-- see https://github.com/apache/cordova-plugin-splashscreen for details -->
        <preference name="SplashScreen" value="screen" />
        <preference name="AutoHideSplashScreen" value="true" />
        <preference name="SplashScreenDelay" value="10000" />
        <preference name="FadeSplashScreen" value="false"/>
        <preference name="SplashMaintainAspectRatio" value="false" />
        <preference name="SplashShowOnlyFirstTime" value="false" />
    </platform>
    [/code:2htlt6ph]
    In particular, the 10000 value for the splash screen delay should delay the splash screen for 10 seconds, but only if the AutoHideSplashScreen is set to "true". 
    
    Unfortunately, I don't know if Ashley is adding anything in the auto-generated app code to do something programmatically with the splash screen API, so I can't say with certainty this will last 10 seconds, but if he's not doing anything, it should last ~10 seconds. Then let me know if the splash screen "hides" that stuff or if it just gets tacked onto the 10 second delay. 
    
    In other words, what I want to know is, by doing this, does it simply delay the appearance of the white bar by 10 seconds or do you no longer see the white bar (because it's "behind" the splash screen). In either case, the splash screen should last for ~10 seconds. If it does not last for ~10 seconds, I want to know that, as well.
    
    Thanks.
  • xmnboy - I followed your instructions and found out that the splashscreen did not last for 10 seconds(still the same) and the white blink is still there and the bad news is that a loading image has shown on the splashscreen. I can't explain everything so, I uploaded a recording on youtube: https://youtu.be/zlWdh8RqGfw . BTW, the :100%" on the screen is part of the Construct 2 custom loader layout I made.

  • -- can you share a project with me that suffers from this problem? You can send me a PM on this forum with a download link. What I would need is for your to ZIP the ENTIRE Intel XDK project folder. Then I can look at configuration issues and try to change a few things in order to understand what's going on.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • xmnboy - https://onedrive.live.com/redir?resid=A ... file%2crar . Here is the link, I hope you can find a solution.

  • -- it is definitely not being caused by the splash screen plugin or the XDK. It appears to be the result of some competition between the Crosswalk webview init and the Android webview init and the C2 canvas init or some other init code ???

    I was able to come up with a solution that works with your example. I hope this works for others, as well.

    Add the following lines to your intelxdk.config.additions.xml file:

    <platform name="android">
        <!-- set Crosswalk default background color -->
        <!-- see http://developer.android.com/reference/android/graphics/Color.html -->
        <!-- <preference name="BackgroundColor" value="0xFFFF0000" /> -->
        <preference name="BackgroundColor" value="0x00000000" />
    </platform>
    [/code:tchgc4ej]
    0x00000000 is supposed to configure the webview background color to be "transparent black"; at least according to the docs and the plugin code...
    [code:tchgc4ej]
    https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview[/code:tchgc4ej]
    [code:tchgc4ej]https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview/search?utf8=%E2%9C%93&q=BackgroundColor[/code:tchgc4ej]
    ...and you should be able to set that color to anything you want. However, I was only able to get black and white out of it. It could be that setting it to fully transparent is having some other impact, I don't know and, honestly, don't have time to pursue this further at this time.
    
    I see you were building against CW18, I did most of my testing against CW17 because I wanted to compare with a non-Crosswalk Android build on Android 5+, as well. So I had to remove your CW override in the additions.xml file (seems there is a bug with leaving that in on Android builds, I've informed XDK engineering). The white band appears to cause your "100% image" to bounce up and down momentarily, which the "transparent black" does not appear to do. I saw a similar "bouncing" with the Android webview, but no color band. All of this makes me suspicious that there is something else going on beyond just the color of the webview background.
    
    Regardless, this solution appears to work.
    
    Regarding the inability to effect the timeout value of the splash screen delay using the "SplashScreenDelay" directive, that is due to some code tucked inside the C2 lib file that is making a call to navigator.splashscreen.hide() during initialization. It appears there is no wait on the Cordova ready and document ready (at least as far as my limited investigation revealed). I will recommend a different approach to Ashley, because the approach in the code you provided does not give you a way to control that part of your app just using the delay directive.
  • its possible make splash screen in fullscreen (Cordova Crosswalk)?

  • xmnboy

    Thanks, it works fine now. Here is the result of the fix : https://youtu.be/MH1tjMWN_74 .

    Also as you said that this must be a Construct 2 problem with setting the splashscreen, will you inform and talk to Ashley about this yourself or should we tag him here?

    Edit:

    I also made a tutorial for this page topic, in case that this page is covered by next topics inside this forum topic.

    https://www.scirra.com/tutorials/5342/c ... sition-fix

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)