Skip to content

Variable: ssResourceCache ​

const ssResourceCache: SsRefCache<SsResource>

Defined in: packages/react-native-spritestudio/src/core/caches.ts:17

Loaded .ssab resources, keyed by resolved URI.

The expensive halves are reading the bytes and having the Brain parse them, and both are per-pack rather than per-player — so twenty sprites of one character cost one of each. Keyed on the resolved URI so 'ss/a.ssab' and { uri: 'ss/a.ssab' } are the same entry.

Disposed on the last release, which is what keeps SsRuntime.liveHandles exact — see SsRefCache.