Banc GPU (20/10) : mesures GTX 1660 SUPER, pic 5448 FPS (ciel), documentation et outils

Cette révision appartient à :
Théo Gastinel a révisé 2026-10-20 19:00:04 +02:00
1 Parent 60b17c2399
révision 2228b1181c
7 fichiers modifiés
+258 -3

Aucun fichier ne correspond à votre recherche

+33
Voir le fichier
@@ -0,0 +1,33 @@
param(
[Parameter(Mandatory = $true)][string]$ArgsString,
[Parameter(Mandatory = $true)][string]$LogFile,
[string]$TargetDesktop = "Bench Vercora"
)
$root = "C:\Users\theog\Documents\_CODE\4-vercors\vercora"
$exe = Join-Path $root "build\vercora.exe"
$vd = Join-Path $root "tools\VirtualDesktop.exe"
$logPath = Join-Path $root $LogFile
$errPath = "$logPath.err"
# Verifier ou recuperer l'indice du bureau actuel
# Par defaut, le bureau 0 est le bureau principal
$origDesktop = 0
Write-Host "1. Bascule vers le bureau virtuel '$TargetDesktop'..."
& $vd /Switch:$TargetDesktop
Start-Sleep -Milliseconds 150
Write-Host "2. Demarrage de Vercora..."
$proc = Start-Process -FilePath $exe -ArgumentList $ArgsString -WorkingDirectory $root `
-RedirectStandardOutput $logPath -RedirectStandardError $errPath -PassThru
# Attendre que la fenetre soit initialisee (environ 800ms) pour qu'elle s'ancre sur ce bureau
Start-Sleep -Milliseconds 900
Write-Host "3. Retour immediat vers le bureau d'origine ($origDesktop)..."
& $vd /Switch:$origDesktop
Write-Host "4. Benchmark en cours sur '$TargetDesktop' (PID $($proc.Id))..."
$proc.WaitForExit()
Write-Host "Benchmark termine avec le code de sortie : $($proc.ExitCode)."
+97
Voir le fichier
@@ -0,0 +1,97 @@
param(
[string]$GameArgs = "assets\terrain\vercora_zone_1m.vchm"
)
$code = @"
using System;
using System.Runtime.InteropServices;
public class DesktopLauncher {
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct STARTUPINFO {
public int cb;
public string lpReserved;
public string lpDesktop;
public string lpTitle;
public int dwX;
public int dwY;
public int dwXSize;
public int dwYSize;
public int dwXCountChars;
public int dwYCountChars;
public int dwFillAttribute;
public int dwFlags;
public short wShowWindow;
public short cbReserved2;
public IntPtr lpReserved2;
public IntPtr hStdInput;
public IntPtr hStdOutput;
public IntPtr hStdError;
}
[StructLayout(LayoutKind.Sequential)]
public struct PROCESS_INFORMATION {
public IntPtr hProcess;
public IntPtr hThread;
public int dwProcessId;
public int dwThreadId;
}
[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
public static extern bool CreateProcess(
string lpApplicationName,
string lpCommandLine,
IntPtr lpProcessAttributes,
IntPtr lpThreadAttributes,
bool bInheritHandles,
uint dwCreationFlags,
IntPtr lpEnvironment,
string lpCurrentDirectory,
ref STARTUPINFO lpStartupInfo,
out PROCESS_INFORMATION lpProcessInformation
);
public const uint CREATE_NEW_CONSOLE = 0x00000010;
public static int Launch(string appPath, string cmdLine, string workDir, string desktop) {
STARTUPINFO si = new STARTUPINFO();
si.cb = Marshal.SizeOf(si);
si.lpDesktop = desktop;
PROCESS_INFORMATION pi = new PROCESS_INFORMATION();
bool ok = CreateProcess(
appPath,
cmdLine,
IntPtr.Zero,
IntPtr.Zero,
false,
CREATE_NEW_CONSOLE,
IntPtr.Zero,
workDir,
ref si,
out pi
);
if (!ok) {
int err = Marshal.GetLastWin32Error();
Console.WriteLine("CreateProcess failed with error: " + err);
return -1;
}
Console.WriteLine("Process launched successfully! PID: " + pi.dwProcessId);
return pi.dwProcessId;
}
}
"@
Add-Type -TypeDefinition $code
$root = "C:\Users\theog\Documents\_CODE\4-vercors\vercora"
$exe = Join-Path $root "build\vercora.exe"
$cmd = "`"$exe`" $GameArgs"
Write-Host "Lancement avec console sur le bureau interactif utilisateur (WinSta0\default)..."
$pidResult = [DesktopLauncher]::Launch($exe, $cmd, $root, "WinSta0\default")
if ($pidResult -gt 0) {
Write-Host "Vercora est demarre sur l'ecran utilisateur avec le PID $pidResult."
}
+30
Voir le fichier
@@ -0,0 +1,30 @@
$root = "C:\Users\theog\Documents\_CODE\4-vercors\vercora"
$runner = Join-Path $root "tools\bench_runner.ps1"
$scenarios = @(
@{
Name = "Survol 900 m/s (Stress Streaming 25 km2)"
Log = "build\bench_survol.log"
Args = "assets/terrain/vercora_zone_1m.vchm --flythrough=900,120 --time-scale=0 --freeze-anim --lock-input --hour=13 --quit-after=30"
},
@{
Name = "Panorama Sommet (Vue Longue Portee)"
Log = "build\bench_panorama.log"
Args = "assets/terrain/vercora_zone_1m.vchm --start=900175,6438524 --look=45,-6 --time-scale=0 --freeze-anim --lock-input --hour=13 --quit-after=30"
},
@{
Name = "Foret Dense au Sol (Vegetation, Rochers & Faune)"
Log = "build\bench_foret.log"
Args = "assets/terrain/vercora_zone_1m.vchm --start=901800,6435800 --look=0,-8 --time-scale=0 --freeze-anim --lock-input --hour=13 --quit-after=30"
}
)
foreach ($sc in $scenarios) {
Write-Host "=========================================================="
Write-Host "Lancement du scenario : $($sc.Name)"
Write-Host "=========================================================="
& powershell -ExecutionPolicy Bypass -File $runner -ArgsString $sc.Args -LogFile $sc.Log
Start-Sleep -Seconds 1
}
Write-Host "Tous les benchmarks sont termines avec succes !"