User Tag List

Results 1 to 9 of 9

Thread: What does Play from Disk do? I get terrible performance

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Question What does Play from Disk do? I get terrible performance

    I have been doing some performance tests and one thing I noticed was that when I have a sound that always play and I check in "play from disk" in the data elements section for the sample I get about 1/4 the performance. (So if I have 40fps normally I only get about 10fps with this checked)

    But I have seen people using play from disk, so I wonder what does it do and how is it useful?

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As i understand it makes sure the Sample allways plays ( as sometimes samples dont allways play for some reason in Android ), but this come as a cost of major ingame loading/ pause/ lag on my end as well.
    Not sure what the actuall intention of the setting is, but maybe the documentation description could cast some light?

  3. #3
    Clickteam Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Simon's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    2,735
    Mentioned
    65 Post(s)
    Tagged
    3 Thread(s)
    It plays the file straight from the disk/storage, rather than loading it into memory and playing from there. I think this is intended for medium to large sized files in low memory/resource environments, such as mobiles. Using it will cause repeated access to the file system to stream data to play, so performance will be low. You have to pick your moments to use this feature, in the middle of a heavy action game or cutscene for example is probably not one of them.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just wanted to uppdate on the issue of audio not playing on specific Devices ( i mentione this above, and have mentioned this other places ).
    The new Android Beta fixed these issues

  5. #5
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,784
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    Play from disk does as is mentioned.

    get the sound, load from disk, and play, this is done every time since is not good practice to keep the media player busy for other Application.

    that's why it take more time.

    btw if you use .ogg with high bitrate it take more time to expand and to be ready to play
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export Module

    Join Date
    Feb 2013
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Fernando, when I play from Disk on the LG G Pad 8.3 the sounds are much louder. For example, if music plays from disk and sound effects play from memory then the music is going to be much-much louder than the sound effects.
    One could argue that I could simply lower the volume of the music. However, on my other device (Samsung S4 mini) there is no volume difference when I play from disk compared to when I play from memory (it works fine).
    Is there a workaround for this problem? How do I make all sounds play at the same level on all devices?

  7. #7
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,784
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    Good example, as always explain in each device media player work totally different, this is a hardware matter.

    Did you try to read master volume first and adjust accordingly?
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export Module

    Join Date
    Feb 2013
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you give me an example of what you mean by reading master volume?

  9. #9
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,784
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    try this example, see always conditions

    also it show how to change master volume using keys, this si the same result as set main volume though.

    https://dl.dropboxusercontent.com/u/...ject%20Key.mfa
    Regards,


    Fernando Vivolo

    ... new things are coming ...

Similar Threads

  1. Force play from disk understanding...
    By KLiK-iT in forum Android Export Module 2.5
    Replies: 7
    Last Post: 17th February 2016, 12:50 PM
  2. Terrible Mess when Exporting
    By Nerf in forum Android Export Module 2.5
    Replies: 10
    Last Post: 30th September 2014, 05:43 AM
  3. Sounds not played if I choosed "Play from disk" option
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 6th September 2013, 03:56 PM
  4. Sounds - Play from disk, is it active?
    By Yos in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 20th September 2012, 10:35 AM
  5. terrible Lag
    By ZayLong in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 24th July 2008, 06:14 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
  •