Tanoda
TriLibCore.GCHelper Class Reference

Represents a class that forces GC collection using a fixed interval. More...

Inheritance diagram for TriLibCore.GCHelper:

Public Member Functions

void RegisterLoading ()
 Indicates a new model is loading. More...
 
void UnRegisterLoading (float interval)
 Indicates a model has finished loading or an error occurred. More...
 

Static Public Member Functions

static GCHelper GetInstance ()
 Gets the GCHelper instance and setup the given internal. More...
 

Public Attributes

float Interval = 1f
 The interval to do the GC Collection. More...
 

Detailed Description

Represents a class that forces GC collection using a fixed interval.

Definition at line 10 of file GCHelper.cs.

Member Function Documentation

◆ GetInstance()

static GCHelper TriLibCore.GCHelper.GetInstance ( )
static

Gets the GCHelper instance and setup the given internal.

Returns
The GCHelper singleton instance.

Definition at line 25 of file GCHelper.cs.

◆ RegisterLoading()

void TriLibCore.GCHelper.RegisterLoading ( )

Indicates a new model is loading.

Definition at line 82 of file GCHelper.cs.

◆ UnRegisterLoading()

void TriLibCore.GCHelper.UnRegisterLoading ( float  interval)

Indicates a model has finished loading or an error occurred.

Parameters
intervalInterval used to decrease the model loading counter.

Definition at line 91 of file GCHelper.cs.

Member Data Documentation

◆ Interval

float TriLibCore.GCHelper.Interval = 1f

The interval to do the GC Collection.

Definition at line 15 of file GCHelper.cs.


The documentation for this class was generated from the following file: