cesisco's Recent Forum Activity

  • There's not much latency on my Nexus 5. However some older Android devices have pretty laggy audio support. I think it's system wide - try testing a different (native?) app and see if it's the same. Which devices are you testing exactly and what version of Android are they running?

    Hi Ashley, here are the audio latency results, in Chrome for Android, for all my android devices:

    Samsung galaxy core plus, Android 4.2.2, Chrome 35.0.1916.141: 231ms

    LG L4, Android 4.1.2, Chrome 35.0.1916.138:297ms

    Asus Memopad hd 7 tablet, Android 4.2.2, Chrome 35.0.1916.141: 297ms

    Growing Wolf quad core, Android 4.2.1, Chrome 35,0.1916.141: 297ms

    The audio lag is similar in Chrome beta.

    None of these devices come close to my iPad 2/Safari, with no lag at all.

    The performance of these devices with native apps seems to be ok.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There's not much latency on my Nexus 5. However some older Android devices have pretty laggy audio support. I think it's system wide - try testing a different (native?) app and see if it's the same. Which devices are you testing exactly and what version of Android are they running?

    OK Ashley thanks , next week i will try to test this in a few more android devices, and i will report the entire set results.

  • Sound effects? No lag after the first sound is played.

    Music, no lag after preloading either.

    Ok thanks, i have to test this in a extended set of android devices to figure out what's going on, but it's a little bit weird to have this problem in all android devices.

  • Music needs a preload trigger for at least 1 second before playing, to have consistent results on mobiles (most Android devices I've tested).

    Sound itself WILL lag the first time a sound is played, but subsequent play of the same sound will not lag.

    To prevent this lag, I suggest you preload the sounds you need for that stage/level on start of layout.

    Yes i know , i always preload all the sounds.The answer I would like to know is, do you have any lag in your android devices and chrome for android?Thanks.

  • 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.

  • 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.

cesisco's avatar

cesisco

Member since 2 Feb, 2010

None one is following cesisco yet!

Connect with cesisco

Trophy Case

  • 14-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

21/44
How to earn trophies