User Tag List

Results 1 to 3 of 3

Thread: Lag upon music start

  1. #1
    No Products Registered

    Join Date
    Apr 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lag upon music start

    I've created a simple game, that loads music in three key places:
    -Immediately upon loading the application
    -At the start of the third frame
    -Later in the third frame, when the player reaches the "boss"

    The problem is, when the game attempts to load the music track, the entire program stops dead for 2-3 seconds. After that, the game rushes to complete every action that was supposed to occur during the period that the app froze. After that, the game continues to flow normally.

    Obviously, this is creating problems with both delays on startup/frame start, as well as syncing issues when the game plows through all the delayed actions.

    Example: When the player holds spacebar, the player's ship fires a bullet at a rate of once every 1/30th of a second. When the music loads, all the action stops for 2-3 seconds. When the game resumes, it tries to fire every bullet that should have been fired during the delay as fast as the game can process them. This creates an uber-weapon effect that I don't want. (not to mention the annoyance of having the game freeze for 3 seconds).

    The music files are MIDI files, 80-100 KB. I am stopping the previous track when the new track loads, and they are issued on a Frame Start, and When Internal Flag is On conditions.

    I'd apprecite any help you guys could give.

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export 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)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Lag upon music start

    1. Ensure you are using the latest build (244)
    2. Read this thread: Midi lags the game.
    .:::.Joshtek.:::.

  3. #3
    No Products Registered

    Join Date
    Apr 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Lag upon music start

    Thank you. I've got it going now. I'd searched around the forum, but I didn't see anything related to my problem.
    Thanks.

Similar Threads

  1. music in MMF2 - can music play across frames
    By RoguePixel in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 5th April 2017, 06:16 PM
  2. MF2 cannot start
    By wongheungwing in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 14th December 2013, 05:59 AM
  3. [PAID] Seamless Looping OGG/Music Player Extension (to play music with loop points)
    By DinnerSonic in forum Paid Design & Development Requests
    Replies: 0
    Last Post: 6th October 2013, 07:27 PM
  4. New to iOS - Where do I start?
    By JesseDesign in forum iOS Export Module Version 2.0
    Replies: 7
    Last Post: 30th January 2013, 01:33 AM
  5. My game was rejected because game music plays over phone music
    By leuvsion in forum XNA Export Module Version 2.0
    Replies: 18
    Last Post: 1st August 2012, 06:49 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
  •