utopia-rise / fmod-gdextension

FMOD Studio GDExtension bindings for the Godot game engine
MIT License
439 stars 48 forks source link

:sparkles: preload sample data by default #107

Closed bitbrain closed 2 years ago

bitbrain commented 2 years ago

The existing logic of FmodEventEmitter would never preload event data, leading to lag when playing event information for the first time. This is due to the fact that loading a bank will only load its metadata but not sample data for individual events. By default, instantiating a new node of type FmodEventEmitter will now preload its sample data. This can be disabled in the export.