mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: more compression
This commit is contained in:
1 parent
afe041f969
commit
1575b803c0
11 files changed
+135
-59
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import { Vector3Tuple } from 'three';
|
||||
import { asset } from './asset';
|
||||
import { fetchBkonLz4 } from './fetchBkonLz4';
|
||||
|
||||
export type ModelDefinitions = Record<number, ModelDefinition>;
|
||||
|
||||
@@ -53,6 +54,6 @@ export interface PitchLimits {
|
||||
transition?: number;
|
||||
}
|
||||
|
||||
export const modelDefinitions = fetch(asset('definitions/models.json'), {
|
||||
cache: 'no-cache',
|
||||
}).then(async (response) => response.json() as Promise<ModelDefinitions>);
|
||||
export const modelDefinitions = fetchBkonLz4<ModelDefinitions>(
|
||||
asset('definitions/models.bkon.lz4'),
|
||||
);
|
||||
Reference in new issue
Block a user