protected override void LoadContent() { if (compiler == null) { return; } foreach (var effectPool in GraphicsDevice.EffectPools) { AddEffectPool(effectPool); } GraphicsDevice.EffectPools.ItemAdded += EffectPools_ItemAdded; GraphicsDevice.EffectPools.ItemRemoved += EffectPools_ItemRemoved; base.LoadContent(); isThreadRunning = true; TaskUtil.Run(ThreadCompiler); }