User Tag List

Page 1 of 5 1 2 3 ... LastLast
Results 1 to 10 of 42

Thread: Att: Fernando, Samples causing lag

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module

    Join Date
    Oct 2018
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Att: Fernando, Samples causing lag

    Ok so posting this here to hopefully find a answer to my issue and to help others that might be having the same problem.

    I have created several games now targeted for android that work really good except when it comes to samples, so most of my games have had little to no sound and it does impact the overall feel of the games limiting me to what I can produce.

    The devices I have for testing are Oppo a54, a16, R17, galaxy S9, S10, s21 and a Huawei flip phone.

    The game I am currently playing around with has a very small resolution of 192x255 and each level has less then 600 objects including backdrops (sub 30 actives on most levels, as I am trying to keep it small to fix this issue). The game is supposed to have probably about 10ish samples playing during parts of the level but due to sound issues I have 1 sample playing background music and a jump sound.

    The issue is when the character jumps there is a noticeable lag like the whole game freezes for just a few split seconds including all objects and the sample too. When the sample is removed or disabled in the sound menu there is no issue. The background music makes no difference l, just the samples tied to an action or loop.

    I also have fireworks at the end of the level and the sample for the bangs are fine after the initial first few loops however are delayed or missing to begin with on the loop but I have covered this up with the background music fading a little slower.

    With the jump I have tried a direct action (playing sample on event jump), playing the sample from a flag, from a loop and from dedicated channels. I have tried different formats including wav, ogg and mp3 with no change. I have also talked with very knowledgeable people on discord without success.

    Another reason this is hard for others to help with is the devices I have access to. In windows or an android emulator there is no issue including some of the phones. The main phones that have the issues are the a54, a16, Huawei and s9. It is not as far as I can tell a power/performance issue because it works on less powerful devices and different android versions. Oh I have also tried all 3 versions of OpenGL.

    So to put all that in a lesser term, I am having issues with delayed sounds as well as lag (kinda like fps drop) on a game (and others) that is very basic and simple.

    I am happy to send a MFA via message.

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleXNA Export Module
    Dobermann's Avatar
    Join Date
    Feb 2009
    Location
    France
    Posts
    1,144
    Mentioned
    38 Post(s)
    Tagged
    0 Thread(s)
    We all have this terrible issue, we have discussed a lot about it and so far there is no solution... I've tried everything to solve this issue and nothing work. You remove sounds and FPS is perfect... It's really disappointing.

  3. #3
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,692
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by spinaljamin View Post
    Ok so posting this here to hopefully find a answer to my issue and to help others that might be having the same problem.

    I have created several games now targeted for android that work really good except when it comes to samples, so most of my games have had little to no sound and it does impact the overall feel of the games limiting me to what I can produce.

    The devices I have for testing are Oppo a54, a16, R17, galaxy S9, S10, s21 and a Huawei flip phone.

    The game I am currently playing around with has a very small resolution of 192x255 and each level has less then 600 objects including backdrops (sub 30 actives on most levels, as I am trying to keep it small to fix this issue). The game is supposed to have probably about 10ish samples playing during parts of the level but due to sound issues I have 1 sample playing background music and a jump sound.

    The issue is when the character jumps there is a noticeable lag like the whole game freezes for just a few split seconds including all objects and the sample too. When the sample is removed or disabled in the sound menu there is no issue. The background music makes no difference l, just the samples tied to an action or loop.

    I also have fireworks at the end of the level and the sample for the bangs are fine after the initial first few loops however are delayed or missing to begin with on the loop but I have covered this up with the background music fading a little slower.

    With the jump I have tried a direct action (playing sample on event jump), playing the sample from a flag, from a loop and from dedicated channels. I have tried different formats including wav, ogg and mp3 with no change. I have also talked with very knowledgeable people on discord without success.

    Another reason this is hard for others to help with is the devices I have access to. In windows or an android emulator there is no issue including some of the phones. The main phones that have the issues are the a54, a16, Huawei and s9. It is not as far as I can tell a power/performance issue because it works on less powerful devices and different android versions. Oh I have also tried all 3 versions of OpenGL.

    So to put all that in a lesser term, I am having issues with delayed sounds as well as lag (kinda like fps drop) on a game (and others) that is very basic and simple.

    I am happy to send a MFA via message.
    thanks for the info, yes, this is a problem which involve the Android OS, and have becoming more problematic with new version, can you please make a small mfa (please remove any external files and proprietary graphics), where this problem can be reproduced and sent it to me
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  4. #4
    Forum Moderator Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleFirefly 3D ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    NaitorStudios's Avatar
    Join Date
    May 2010
    Location
    Brazil
    Posts
    1,618
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    I know another dev which was porting a game to Android which also had this problem, but with multiple samples playing at the same time, in this instance it even happened on my Galaxy S21 Ultra...
    FPS would dip below 10, disabling samples would prevent it... I've tried fixing or working around it in many ways, like having the samples playing in loop and setting position and volume so they are never unloaded, didn't helped.
    I've talked with the OP, and his example didn't cause the same issue on my phone and Windows 11 Android emulator, but he did reproduce it in multiple devices.

  5. #5
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,692
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    Even using open SL sound still need to go through OS, is on my work to-do list seeing a wrapper for this.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  6. #6
    Forum Moderator Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleFirefly 3D ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    NaitorStudios's Avatar
    Join Date
    May 2010
    Location
    Brazil
    Posts
    1,618
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    I think this is quite important for the future of Android exporter, since it can make all kinds of games unplayable...
    I hope you can find some time and figure this out soon enough, I wish you the best

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module

    Join Date
    Oct 2018
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey sorry i am not being notified about forum posts anymore... I do not know how to send you the file as I cannot pm you and there is a 1mb limit here. Can you please advise how to send it to you?

  8. #8
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,692
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by spinaljamin View Post
    hey sorry i am not being notified about forum posts anymore... I do not know how to send you the file as I cannot pm you and there is a 1mb limit here. Can you please advise how to send it to you?
    Upload to a cloud service like Google Drive, OneDrive Dropbox or anything similar and PM the link.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module

    Join Date
    Sep 2015
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yep, I have been having the exact same issue on my android build over the last several weeks and it's blown my development schedule out of the water - tested a basic background sound loop with a jump action sound when the player jumps. There's a severe drop in FPS to the point where it's unplayable. Tried all sorts of events, conditions, loops and different formats such as ogg and wav to the same unfortunate result too.

    Fingers crossed it gets ironed out in an update soon.

  10. #10
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module

    Join Date
    Oct 2018
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Fernando View Post
    Upload to a cloud service like Google Drive, OneDrive Dropbox or anything similar and PM the link.
    I have the link on a cloud but the problem is i cannot PM you like i can others, when i click to PM you it only shows your posting/commenting history. I can definitely understand why it is set up to not directly PM; is there a moderator on Discord I can send the file/link to? I would rather not post my work, even if its not that great....

Page 1 of 5 1 2 3 ... LastLast

Similar Threads

  1. Replies: 2
    Last Post: 19th October 2016, 07:49 PM
  2. Problem FACEBOOK with Fernando example
    By arthurh in forum Android Export Module 2.5
    Replies: 1
    Last Post: 19th June 2015, 08:05 AM
  3. Welcome Fernando!
    By Jeff in forum News
    Replies: 0
    Last Post: 6th November 2013, 08:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •