/// <summary> /// レンダリング完了後の更新 /// </summary> private void AfterRendering() { //Debug.Log("After Rendering Update!" + Time.frameCount); if (useDelay) { // 遅延実行 // シミュレーション終了待機 Compute.UpdateCompleteSimulation(); // 結果の保持 Compute.UpdateSwapBuffer(); Compute.UpdateSyncBuffer(); } // シミュレーションに必要なボーンの状態をもとに戻す //Compute.InitJob(); //Compute.UpdateRestoreBone(); //Compute.CompleteJob(); // FixedUpdateCountクリア UpdateTime.ResetFixedUpdateCount(); }