[C#] MemoryPool(메모리풀)
프로그래밍/C#2014. 1. 8. 13:45
http://cafe.naver.com/unityhub/3410 << 글 삭제됨 ㅜㅜ
http://hyunity3d.tistory.com/195
MemoryPool을 이용해서 사용하자!
오브젝트를 일반적으로 생성 - 삭제를 반복할 경우 Memory 사용량이 많아지기 때문에 MemoryPool을 이용하여 최소한의 오브젝트를 생성해놓고 사용하고 비활성화 되도록 사용하면 부담이 적어진다(불필요할만큼 많이 만들면 손해!)
MemoryPool - 메모리 공간을 미리 할당하고, 호출하게 되면 미리 할당된 공간을 반환하여 사용함
'프로그래밍 > C#' 카테고리의 다른 글
Invalid rank specifier: expected `,' or `]' (0) | 2015.02.16 |
---|---|
java.lang.IllegalStateException: Could not execute method of the activity (0) | 2014.11.25 |
error CS1519: Unexpected symbol `for' in class, struct, or interface member declaration (0) | 2014.11.04 |
자기상위오브젝트(parent object)를 호출하는 방법! (0) | 2014.01.24 |
코루틴(Coroutine)이란? Update()와 차이 (2) | 2014.01.03 |