C# 클래스 Smooth.Dispose.DisposalQueue

Queues pooled resources for cleanup by a background thread. By default, the disposal thread is woken up at the end of LateUpdate, when there is likely to be free CPU time available while GPU operations are in progress. Various pools may be locked and unlocked while resources are released, potentially causing contention if pooled resources are borrowed during the disposal process. Advanced users who are using pools from the main thread during the rendering phase may want to customize the point in the Unity event loop when the queue lock is pulsed, potentially pulsing from a Camera event.
파일 보기 프로젝트 열기: GuuD/smooth.foundations 1 사용 예제들

공개 메소드들

메소드 설명
Enqueue ( IDisposable item ) : void

Adds the specified item to the disposal queue.

Pulse ( ) : void

Pulses the queue lock, potentially waking up the disposal thread.

비공개 메소드들

메소드 설명
DisposalQueue ( ) : UnityEngine
Dispose ( ) : void

메소드 상세

Enqueue() 공개 정적인 메소드

Adds the specified item to the disposal queue.
public static Enqueue ( IDisposable item ) : void
item IDisposable
리턴 void

Pulse() 공개 정적인 메소드

Pulses the queue lock, potentially waking up the disposal thread.
public static Pulse ( ) : void
리턴 void