+1 vote

I have some issues with the Godot web export on 3.1.2 (but it happens with 3.2.1 too). I have a singleton node (with autoloader function) that handles all the scenes of my game. But sometimes the background music just stops or stuttering when I loading a scene.
I tried some workarounds, but no one resolves my problem:

  • Changed output audio latency on Project Settings > Display > Audio
  • Disabled v-sync option
  • Recreating script processor (link)
  • Separate AudioPlayer on another autoload node
  • Load scenes on background with load_interactive (link)

I think that the only method that really reduces the stuttering was the load_interactive. Now, only scenes with complex scripts made my music stuttering.
Actually, my scene looks like this:

  • Game

    • SceneLoadedByGame
  • BackgroundMusic

Where the Game and BackgroundMusic are loaded by autoloader and the scene is loaded by the game script via load_interactive. The function only clears the last scene and load the new one.
In my knowledge, the Game branch should never block the execution of scripts that don't are a child. This happens only on web export of the game, on Linux and Windows exports it works well. I only found this issue related to iOS.
I imagine that maybe I am not understanding some concept, so I appreciate any kind of help.

in Engine by (13 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.