cesisco's Forum Posts

  • Hi, i did some tests on my 3 android devices, and i'm getting a big audio lag in Chrome for android(35.0.1916.141) and beta version too.

    Here's the video of two them performing vs my iPad 2.

    Android devices latency:more than 297 milliseconds.

    iPad 2 Safari latency: no lag.

    Chrome for Android audio latency

    Should i report this to Chrome?... maybe my devices are all crap.

    297 ms is a big and audible lag that ruins any gameplay, if someone can test this and give me the feedback, i would appreciate.

    Edit:I ran the test both on server and wifi local preview, with different audio samples, mono, stereo, file sizes , with different

    conditions, all with the same results.

  • Hi, cesisco, I am from Crosswalk team and working on the Crosswalk development.

    The lower framerate is very likely to be caused by the fact that we only ignore gpu black list for IA platform from Crosswalk 5, and it won't do any additional thing for ARM platform to avoid some crash which is reported from Construct2 user, see XWALK-934 in Crosswalk Bug JIRA.

    From Crosswalk 6, we allow the web developer to append command line options by themselves, for example, you could append '--ignore-gpu-blacklist' in 'assets/xwalk-command-line' file, and Crosswalk runtime will load this cmd option file firstly before launching your app.

    Hi hmin, thanks for your answer, good to know that i will be able to ignore the gpu blacklist(at least for testing purposes).

  • >

    >

    > Thanks Silverforce, but are you getting the same frame rate as the stable build?

    >

    cesisco

    Do you have a device with a blacklisted GPU?

    Crosswalk v5 adopted the chromium GPU blacklist while v4 seems to skipping it. (See here)

    Since almost 1/4 of the android devices out there have GPU blacklisted by the chromium team this may be your issue.

    Hmm, in my debugging text it says "canvas2d" as renderer, in both stable and beta builds but the stable has a better framerate(55 fps vs 32 fps).

    The intel app preview the app is using the "WebGL" renderer.

    Zhiqiang

    I was wondering why the performance is worst in Crosswalk 5, even when both builds are running with canvas2d renderer.

    Thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • cesisco

    I tested XDK beta with my own game and found it running smooth. On a LG G-Pad 8 inch, with Snapdragon S600.

    Thanks Silverforce, but are you getting the same frame rate as the stable build?

  • IntelRobert

    Zhiqiang , hi i made a simple project to see the performance drop in Crosswalk 5 beta vs Crosswalk 4.

    Even with only 2 sprites in this project, i 'm getting a big frame rate drop in Crosswalk 5 beta.

    Crosswalk 4 stable:55/56 FPS

    Crosswalk 5 beta:32/33 FPS

    I'm doing the tests with the ARM build in a 4.2.1 Android device and the latest C2 stable release.

    Here are the files.

    APK stable build

    APK beta build

    Construct 2 exported files

    Construct 2 capx

    It would be great if someone in the forums can test this in different devices to make sure that this is not a problem only related with my device.

    Thanks

    Hi, this is Zhiqiang from Crosswalk team. in terms of performance regression, is it possible to share the related sample code w/ us so we can reproduce it for a further check ?

    > IntelRobert, the audio lag in the Crosswalk 5(beta) build is ok, but the overall performance in every other aspects is very bad in my games, the framerate is almost the half comparing to Crosswalk 4(stable).

    > So i´ll wait until Crosswalk 5 goes stable, and hope everything runs smoothly.

    > Thanks

    >

    >

    > > Our build system gives you the choice of crosswalk 4 & crosswalk 5. The latest app preview uses crosswalk 5. Since you say that App Preview does not have the lag, then I am hoping that it was a problem fixed in crosswalk 5. Please check that you are using crosswalk 5 by going to the bottom of the details tab in the build dialog.

    > >

    > > If crosswalk 5 has the problem, then please PM a capx file that shows the problem.

    > >

    > >

    > >

    >

  • IntelRobert, the audio lag in the Crosswalk 5(beta) build is ok, but the overall performance in every other aspects is very bad in my games, the framerate is almost the half comparing to Crosswalk 4(stable).

    So i´ll wait until Crosswalk 5 goes stable, and hope everything runs smoothly.

    Thanks

    Our build system gives you the choice of crosswalk 4 & crosswalk 5. The latest app preview uses crosswalk 5. Since you say that App Preview does not have the lag, then I am hoping that it was a problem fixed in crosswalk 5. Please check that you are using crosswalk 5 by going to the bottom of the details tab in the build dialog.

    If crosswalk 5 has the problem, then please PM a capx file that shows the problem.

    >

    >

    > IntelRobert, hi, here's a video with a comparison of the audio latency in the device:

    >

    > Crosswalk audio latency

    >

    > Intel AppPreview:less than 30 millisenconds

    > Crosswalk Apk build: 234 millisecods

    >

    > I guess the problem is not with my device, since it play synced in the App Preview.

    > In the Chrome Browser the latency is around 34ms, but i have other problem in Chrome for android, the sound is

    > playing on the earpiece and not on the speaker, i mentioned that on this topic :

    >

    > Android sound problem

    >

    > I can send you the Apk build and my device specifications, but note that the audio lag occurs in every project i have.

    > Thanks

    >

  • Do you see the same problem in chrome browser? If you send me a apk in a PM I can pass it on to crosswalk team to see if they can look at it. Please be specific about what device you are using and what sequence of events are needed to test and recognize the problem.

    > IntelRobert , Hi, i love the Intel XDK workflow, and i have a couple of games ready to upload to Google Play, but i'm having a problem with the lag/latency in the audio, that ruins my games.I read that some other users have the same issue, and i can fix that on my own, any clues?

    > With the audio fix and the Admob support...that would be my dream come true

    >

    > Thanks.

    >

    IntelRobert, hi, here's a video with a comparison of the audio latency in the device:

    Crosswalk audio latency

    Intel AppPreview:less than 30 millisenconds

    Crosswalk Apk build: 234 millisecods

    I guess the problem is not with my device, since it play synced in the App Preview.

    In the Chrome Browser the latency is around 34ms, but i have other problem in Chrome for android, the sound is

    playing on the earpiece and not on the speaker, i mentioned that on this topic :

    Android sound problem

    I can send you the Apk build and my device specifications, but note that the audio lag occurs in every project i have.

    Thanks

  • > IntelRobert , Hi, i love the Intel XDK workflow, and i have a couple of games ready to upload to Google Play, but i'm having a problem with the lag/latency in the audio, that ruins my games.I read that some other users have the same issue, and i can fix that on my own, any clues?

    > With the audio fix and the Admob support...that would be my dream come true

    >

    > Thanks.

    >

    Music will have a lag (which depends on how fast your device is), you can fix it by implementing a short window of time to preload the music, before triggering a start. Best done at start of layout, preload XXXX, then wait 3s, Audio Play XXXX.

    The sound effects, there is also a lag phase the first time that sound is played. You can also fix it the same way, just preload the sound effects you need for that level on start of layout.

    Thanks, but the lag i'm talking about is not the typical lag that happens when the sound is not loaded, this is a problem throughout the game, with preload or without it.

  • IntelRobert , Hi, i love the Intel XDK workflow, and i have a couple of games ready to upload to Google Play, but i'm having a problem with the lag/latency in the audio, that ruins my games.I read that some other users have the same issue, and i can fix that on my own, any clues?

    With the audio fix and the Admob support...that would be my dream come true

    Thanks.

  • That's fixed in the next build as well, the Browser object 'Open URL in new window' will work in Crosswalk and open the default browser app.

    Great! Thanks.

  • The Intel XDK object does absolutely nothing in Crosswalk. It's actually designed for the Intel AGI (formerly directCanvas). I've renamed it in the next build to avoid confusion.

    Ok Ashley thanks, so since Crosswalk is based on Chrome, i have to deal with the Browser object only, but

    with the Browser object only, i can't see a way to open a link(to post the highscore on Twitter) in the default device browser instead of the Crosswalk app itself...but maybe i'm seeing it wrong.

  • Ashley For sure this problem is in Intel XDK, but do you have any clue on this?

    I would love to figure out if the problem is on the Construct 2 side or the Intel XDK , to stop bother you guys

    Tks

  • I don't know if this issue is being addressed by Intel. I found the same with both Crosswalk and Phonegap that they will open a link within themselves as if they are a browser (which I suppose they are, sort of) rather than directing the phone's native/default browser or email app to handle the link. Doesn't happen in CocoonJS or Ejecta....

    Thanks for the information, i made a post in the Intel Forum expecting for some feedback.

    Those actions(Show remote site, Launch external site) doesn't work even with all permissions on.It is weird because it works in the device with the Intel XDK App Preview.

  • Hi, i am working on a Android game(crosswalk for android), and i am trying to share the highscore to Twitter and return to the game after that.The Twitter share is not a problem, but the method to open the new window.

    INTEL XDK OBJECT

    I tried the "Show remote site" and "Launch external site" method, and they work well in the emulator and in the device(app preview) but not in my device.(Android 4.2).

    Anyone can reproduce the same results?Or maybe it is a problem related to my Android version.

    It would be great to see some examples of the Actions and Conditions of the IntelXDK object, because they are not too clear(at least for me), like the Add virtual page action, and how to use it.

    Thanks

  • The new Intel XDK release is available now(v876)

    Release Notes