feat: add 1% low FPS field to benchmark submission wizard

This commit is contained in:
2026-04-28 22:43:46 +08:00
parent 943fcff12b
commit 4d759160db
5 changed files with 23 additions and 1 deletions
+2
View File
@@ -101,6 +101,7 @@ export const performanceSubmitRoutes = new Elysia({ prefix: "/performance" })
hardwareSlug: body.hardwareSlug,
userId: guard.user.id,
fpsAvg: body.fpsAvg,
fpsOnePercentLow: body.fpsOnePercentLow ?? null,
fpsLow: body.fpsLow ?? null,
fpsHigh: body.fpsHigh ?? null,
protonVersion: body.protonVersion ?? null,
@@ -129,6 +130,7 @@ export const performanceSubmitRoutes = new Elysia({ prefix: "/performance" })
versionId: t.String(),
hardwareSlug: t.String(),
fpsAvg: t.Number(),
fpsOnePercentLow: t.Optional(t.Union([t.Number(), t.Null()])),
fpsLow: t.Optional(t.Union([t.Number(), t.Null()])),
fpsHigh: t.Optional(t.Union([t.Number(), t.Null()])),
protonVersion: t.Optional(t.Union([t.String(), t.Null()])),