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()])),
+2
View File
@@ -233,6 +233,7 @@ export const performanceVerifyRoutes = new Elysia({
}
if (body.fpsAvg !== undefined) updateData.fpsAvg = body.fpsAvg
if (body.fpsOnePercentLow !== undefined) updateData.fpsOnePercentLow = body.fpsOnePercentLow
if (body.fpsLow !== undefined) updateData.fpsLow = body.fpsLow
if (body.fpsHigh !== undefined) updateData.fpsHigh = body.fpsHigh
if (body.protonVersion !== undefined)
@@ -264,6 +265,7 @@ export const performanceVerifyRoutes = new Elysia({
params: t.Object({ id: t.String() }),
body: t.Object({
fpsAvg: t.Optional(t.Number()),
fpsOnePercentLow: t.Optional(t.Number()),
fpsLow: t.Optional(t.Number()),
fpsHigh: t.Optional(t.Number()),
protonVersion: t.Optional(t.Union([t.String(), t.Null()])),