feat: replace fsrVersion with upscalerType/upscalerVersion, add battery & custom system columns
This commit is contained in:
@@ -106,7 +106,10 @@ export const performanceSubmitRoutes = new Elysia({ prefix: "/performance" })
|
||||
fpsHigh: body.fpsHigh ?? null,
|
||||
protonVersion: body.protonVersion ?? null,
|
||||
osVersion: body.osVersion ?? null,
|
||||
fsrVersion: body.fsrVersion ?? "none",
|
||||
upscalerType: body.upscalerType ?? "none",
|
||||
upscalerVersion: body.upscalerVersion ?? null,
|
||||
estimatedBatteryMin: body.estimatedBatteryMin ?? null,
|
||||
customSystem: body.customSystem ?? false,
|
||||
frameGenMethod: body.frameGenMethod ?? "none",
|
||||
loadTimeSsd: body.loadTimeSsd ?? null,
|
||||
loadTimeSd: body.loadTimeSd ?? null,
|
||||
@@ -131,19 +134,26 @@ export const performanceSubmitRoutes = new Elysia({ prefix: "/performance" })
|
||||
fpsHigh: t.Optional(t.Union([t.Number(), t.Null()])),
|
||||
protonVersion: t.Optional(t.Union([t.String(), t.Null()])),
|
||||
osVersion: t.Optional(t.Union([t.String(), t.Null()])),
|
||||
fsrVersion: t.Optional(
|
||||
upscalerType: t.Optional(
|
||||
t.Union([
|
||||
t.Literal("none"),
|
||||
t.Literal("fsr1"),
|
||||
t.Literal("fsr2"),
|
||||
t.Literal("fsr3"),
|
||||
t.Literal("fsr"),
|
||||
t.Literal("dlss"),
|
||||
t.Literal("xess"),
|
||||
t.Literal("lsfg"),
|
||||
t.Literal("other"),
|
||||
]),
|
||||
),
|
||||
upscalerVersion: t.Optional(t.Union([t.String(), t.Null()])),
|
||||
estimatedBatteryMin: t.Optional(t.Union([t.Number(), t.Null()])),
|
||||
customSystem: t.Optional(t.Boolean()),
|
||||
frameGenMethod: t.Optional(
|
||||
t.Union([
|
||||
t.Literal("none"),
|
||||
t.Literal("fsr_fg"),
|
||||
t.Literal("dlss_fg"),
|
||||
t.Literal("lsfg"),
|
||||
t.Literal("other"),
|
||||
]),
|
||||
),
|
||||
loadTimeSsd: t.Optional(t.Union([t.Number(), t.Null()])),
|
||||
|
||||
Reference in New Issue
Block a user