Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions src/engine/benchmarks/BenchmarkOrchestration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ type Benchmark = {
systemUUIDs: SystemUUID[]
}

export enum BenchmarkStage {
Particles = 'Particles',
Physics = 'Physics',
Avatar = 'Avatar',
Animation = 'Animation',
Rendering = 'Rendering',
IK = 'IK'
}
export const BenchmarkStage = {
Particles: 'Particles',
Physics: 'Physics',
Avatar: 'Avatar',
Animation: 'Animation',
Rendering: 'Rendering',
IK: 'IK'
} as const

export type BenchmarkStageType = (typeof BenchmarkStage)[keyof typeof BenchmarkStage]

const benchmarkOrder = [
BenchmarkStage.Physics,
Expand All @@ -36,7 +38,7 @@ const benchmarkOrder = [
BenchmarkStage.IK
]

export const benchmarks: { [key in BenchmarkStage]: Benchmark | null } = {
export const benchmarks: { [key in BenchmarkStageType]: Benchmark | null } = {
[BenchmarkStage.Avatar]: {
benchmark: AvatarBenchmark,
systemUUIDs: [SkinnedMeshTransformSystem, AvatarAnimationSystem]
Expand All @@ -58,7 +60,7 @@ export const benchmarks: { [key in BenchmarkStage]: Benchmark | null } = {
}

type BenchmarkData = Record<
BenchmarkStage,
BenchmarkStageType,
Record<
SystemUUID,
{
Expand Down
13 changes: 10 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"target": "ESNext",
"useDefineForClassFields": true,
"module": "CommonJS",
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"lib": [
"ESNext",
"DOM",
"DOM.Iterable"
],
"skipLibCheck": true,
"moduleResolution": "node",
"allowImportingTsExtensions": true,
Expand All @@ -24,12 +28,15 @@
"allowSyntheticDefaultImports": true,
"emitDecoratorMetadata": true,
"declaration": false,
"types": ["@types/node"]
"types": [
"@types/node"
],
"erasableSyntaxOnly": true
},
"include": [
"../../../../../__global.d.ts",
"../../../../client-core/src/",
"../../../../server-core/src/",
"./src"
]
}
}