feat: add TDP and YouTube video inputs to benchmark submission wizard

This commit is contained in:
2026-05-09 23:25:30 +08:00
parent b5d9f0e19b
commit bb45599fe9
4 changed files with 62 additions and 1 deletions
+4
View File
@@ -94,6 +94,7 @@ export function GameEntryWizard({ gameId, gameVersions, defaultVersionId, editEn
fpsHigh: editEntry.fpsHigh ?? undefined,
loadTimeSsd: editEntry.loadTimeSsd ?? undefined,
loadTimeSd: editEntry.loadTimeSd ?? undefined,
tdpWatts: editEntry.tdpWatts ?? undefined,
}
: {},
)
@@ -115,6 +116,7 @@ export function GameEntryWizard({ gameId, gameVersions, defaultVersionId, editEn
launchOptions: editEntry.launchOptions ?? undefined,
estimatedBatteryMin: editEntry.estimatedBatteryMin ?? undefined,
customSystem: editEntry.customSystem ?? false,
youtubeVideoId: editEntry.youtubeVideoId ?? undefined,
}
: {
upscalerType: "none",
@@ -259,6 +261,8 @@ export function GameEntryWizard({ gameId, gameVersions, defaultVersionId, editEn
fpsHigh: performance.fpsHigh !== undefined ? Number(performance.fpsHigh) : null,
loadTimeSsd: performance.loadTimeSsd !== undefined ? Number(performance.loadTimeSsd) : null,
loadTimeSd: performance.loadTimeSd !== undefined ? Number(performance.loadTimeSd) : null,
tdpWatts: performance.tdpWatts !== undefined ? Number(performance.tdpWatts) : null,
youtubeVideoId: environment.youtubeVideoId || null,
protonVersion: environment.protonVersion || null,
osVersion: environment.osVersion || null,
upscalerType: environment.upscalerType ?? "none",