본문 바로가기
프로그래밍/Unity

30프레임에 한번씩 미리 가비지 컬렉션

by neive 2021. 2. 8.
728x90
if (Time.frameCount % 30 == 0)
{
   System.GC.Collect();
}

 

728x90

댓글