跳转到内容

AssetRefCounter

此内容尚不支持你的语言。

Defined in: asset/AssetRefCounter.ts:68

new AssetRefCounter(): AssetRefCounter

AssetRefCounter

addFontRef(path, entity): void

Defined in: asset/AssetRefCounter.ts:79

string

number

void


addMaterialRef(path, entity): void

Defined in: asset/AssetRefCounter.ts:85

string

number

void


addTextureRef(path, entity): void

Defined in: asset/AssetRefCounter.ts:73

string

number

void


clear(): void

Defined in: asset/AssetRefCounter.ts:97

void


getAllFontRefs(): AssetRefInfo[]

Defined in: asset/AssetRefCounter.ts:83

AssetRefInfo[]


getAllMaterialRefs(): AssetRefInfo[]

Defined in: asset/AssetRefCounter.ts:89

AssetRefInfo[]


getAllTextureRefs(): AssetRefInfo[]

Defined in: asset/AssetRefCounter.ts:77

AssetRefInfo[]


getFontRefCount(path): number

Defined in: asset/AssetRefCounter.ts:81

string

number


getFontRefs(path): number[]

Defined in: asset/AssetRefCounter.ts:82

string

number[]


getMaterialRefCount(path): number

Defined in: asset/AssetRefCounter.ts:87

string

number


getMaterialRefs(path): number[]

Defined in: asset/AssetRefCounter.ts:88

string

number[]


getTextureRefCount(path): number

Defined in: asset/AssetRefCounter.ts:75

string

number


getTextureRefs(path): number[]

Defined in: asset/AssetRefCounter.ts:76

string

number[]


getTotalRefCount(): object

Defined in: asset/AssetRefCounter.ts:103

object

fonts: number

materials: number

textures: number


getTotalRefRows(): number

Defined in: asset/AssetRefCounter.ts:118

Total (asset, entity) pairs held, across every kind — the number a spawn/despawn round trip must conserve.

getTotalRefCount counts distinct PATHS, which understates a leak: ten thousand entities that never released one texture read as a single ref.

number


removeAllRefsForEntity(entity): void

Defined in: asset/AssetRefCounter.ts:91

number

void


removeFontRef(path, entity): void

Defined in: asset/AssetRefCounter.ts:80

string

number

void


removeMaterialRef(path, entity): void

Defined in: asset/AssetRefCounter.ts:86

string

number

void


removeTextureRef(path, entity): void

Defined in: asset/AssetRefCounter.ts:74

string

number

void