[update] Made GC to collect forcibly before start playing music.

This commit is contained in:
falsycat 2019-10-18 00:00:00 +00:00
parent 952a5825d6
commit 49408c0695

View File

@ -1,6 +1,8 @@
/// License: MIT
module sj.LoadingScene;
import core.memory;
import std.math,
std.typecons;
@ -95,6 +97,8 @@ class LoadingScene : SceneInterface {
if (anime_.isFinished) {
// TODO: parallelize context creation
auto context = music_.CreatePlayerContext(posteffect_, programs_.player);
GC.collect();
play_scene_.Initialize(music_, context, offset_beat_);
return play_scene_;
}