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

Discussion and feedback on Construct 2

Post » Sat Apr 30, 2016 5:21 am

@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. https://www.youtube.com/watch?v=hnwyQbYg8aE
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
64
S
18
G
90
Posts: 1,118
Reputation: 59,565

Post » Sat Apr 30, 2016 9:52 am

In my case the bottom bar blink was for CW15. With CW16 I have a full screen white blink.
ImageImageImage
B
27
S
16
G
73
Posts: 975
Reputation: 41,169

Post » Sat Apr 30, 2016 11:26 am

@BackendFreak - Crosswalk 17 has a much faster blink now and only shows at the bottom, you should try it.
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
64
S
18
G
90
Posts: 1,118
Reputation: 59,565

Post » Sun May 01, 2016 11:28 pm

Message: xmnboy can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
@chadorireborn -- 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:

https://www.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:

Code: Select all
<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>

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.
Intel Corporation
B
13
S
3
Posts: 79
Reputation: 925

Post » Mon May 02, 2016 5:16 pm

@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.
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
64
S
18
G
90
Posts: 1,118
Reputation: 59,565

Post » Mon May 02, 2016 6:43 pm

@chadorireborn -- 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.
Intel Corporation
B
13
S
3
Posts: 79
Reputation: 925

Post » Mon May 02, 2016 6:49 pm

@xmnboy - https://onedrive.live.com/redir?resid=A ... file%2crar . Here is the link, I hope you can find a solution.
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
64
S
18
G
90
Posts: 1,118
Reputation: 59,565

Post » Tue May 03, 2016 1:11 am

@chadorireborn -- 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:
Code: Select all
<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>

0x00000000 is supposed to configure the webview background color to be "transparent black"; at least according to the docs and the plugin code...
Code: Select all
https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview

Code: Select all
https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview/search?utf8=%E2%9C%93&q=BackgroundColor

...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.
Intel Corporation
B
13
S
3
Posts: 79
Reputation: 925

Post » Tue May 03, 2016 2:01 am

its possible make splash screen in fullscreen (Cordova Crosswalk)?
B
68
S
17
G
2
Posts: 94
Reputation: 4,742

Post » Tue May 03, 2016 7:34 am

@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
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
64
S
18
G
90
Posts: 1,118
Reputation: 59,565

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 4 guests