Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Windows;
using System.Windows.Input;
using ModernWpf.Controls;
using TweakHub.Localization;
using TweakHub.Services;
using TweakHub.Views;

Expand Down Expand Up @@ -44,6 +45,11 @@ private async void MainWindow_ContentRendered(object? sender, EventArgs e)
while (!TweakService.Instance.RegistryDisclaimerShown) await Task.Delay(500);
await Task.Delay(1000);
await UpdateService.Instance.CheckAndPromptAsync(this, showNoUpdate: false);
// A driver update (often the GPU one) recreates the device key and drops the suggested layout without a word.
var reset = await Task.Run(() => InterruptService.ResetAffinityDevices(DeviceTree.Read()));
if (reset.Count > 0)
await Views.Dialogs.AppDialog.ShowWarningAsync(this, L.Get("Maintenance:LayoutResetTitle"),
L.Format("Maintenance:LayoutResetMessage", string.Join("\n", reset)));
}

private void Navigation_SelectionChanged(NavigationView sender, NavigationViewSelectionChangedEventArgs args)
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ It runs as the current user and requests administrator privileges only when an o
</tr>
</table>

New in 1.7.0:
- **Suggested interrupt layout** (Devices → Affinity): one physical core each for graphics, USB, network and audio, outside core 0, chosen from the CPU topology (P-cores only on hybrid CPUs, the CCD without 3D V-Cache on dual-CCD Ryzen). Only devices in use count: disabled devices, network cards without a link, the graphics card's HDMI/DisplayPort audio and unused sound cards are left out. The USB controller of your DAC or audio interface gets the audio core when no mouse or keyboard shares it. The preview lists what is plugged into each USB controller, warns about headphones on a front-panel jack, shows the measured load of the chosen cores, offers MSI where the driver supports it, and tells whether Windows already uses the layout or needs a restart. One backup and one elevation; each device is undone with its restore button.
- **Driver update check:** at startup TweakHub warns when a driver update has reset the layout on some devices.
- **Disable unused** also suggests, unticked, the slower of two live network connections (wired before Wi-Fi, then the fastest link) and audio devices nobody listens to.
- **External tools:** NVIDIA VBIOS Vix Editor, with its warnings in the description.

New in 1.6.1:
- **Windows Update "Security" mode:** security updates are no longer deferred, but nothing downloads, installs or restarts by itself: Windows notifies you, and you download, install and restart. Drivers stay excluded and feature updates are deferred for 365 days. A clean Windows install is now recognized as "Default". On Windows Home, TweakHub explains which parts the edition ignores.
- **Hardening:** elevated script output goes through a private named pipe instead of temporary files, system folder variables are reset in every script, a running service is stopped before it is deleted, and elevated startup scans by another administrator read the right user.
Expand Down
3 changes: 3 additions & 0 deletions Resources/Devices.es.resx
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,9 @@ TweakHub no puede comprobar lo que hace el script y el autor puede cambiarlo en
<data name="UnusedNic" xml:space="preserve">
<value>tarjeta de red sin enlace; otra tarjeta está conectada</value>
</data>
<data name="UnusedNicSlower" xml:space="preserve"><value>Conectada, pero {0} es más rápida: con dos conexiones activas Windows puede enviar los juegos por la más lenta.</value></data>
<data name="UnusedGpuAudio" xml:space="preserve"><value>Audio HDMI/DisplayPort de la tarjeta gráfica, no es tu dispositivo predeterminado de reproducción ni de grabación. Consérvalo si usas los altavoces del monitor.</value></data>
<data name="UnusedOnboardAudio" xml:space="preserve"><value>Tarjeta de sonido integrada que no es tu dispositivo predeterminado de reproducción ni de grabación. Consérvala si conectas algo a los conectores de audio del PC.</value></data>
<data name="TabDrivers" xml:space="preserve">
<value>Controladores</value>
</data>
Expand Down
3 changes: 3 additions & 0 deletions Resources/Devices.it.resx
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,9 @@ TweakHub non può controllare cosa fa lo script e l'autore può modificarlo in q
<data name="UnusedNic" xml:space="preserve">
<value>scheda di rete senza collegamento; un'altra scheda è connessa</value>
</data>
<data name="UnusedNicSlower" xml:space="preserve"><value>Collegata, ma {0} è più veloce: con due connessioni attive Windows può far passare i giochi da quella più lenta.</value></data>
<data name="UnusedGpuAudio" xml:space="preserve"><value>Audio HDMI/DisplayPort della scheda video, non è il tuo dispositivo predefinito di riproduzione o registrazione. Tienilo se usi le casse del monitor.</value></data>
<data name="UnusedOnboardAudio" xml:space="preserve"><value>Scheda audio integrata che non è il tuo dispositivo predefinito di riproduzione o registrazione. Tienila se colleghi qualcosa ai jack audio del PC.</value></data>
<data name="TabDrivers" xml:space="preserve">
<value>Driver</value>
</data>
Expand Down
3 changes: 3 additions & 0 deletions Resources/Devices.ja.resx
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,9 @@ TweakHub はスクリプトの動作を確認できず、作者はいつでも
<data name="UnusedNic" xml:space="preserve">
<value>リンクのないネットワーク カード(別のカードが接続中)</value>
</data>
<data name="UnusedNicSlower" xml:space="preserve"><value>接続されていますが {0} のほうが高速です。接続が 2 つあると、Windows がゲームを遅いほうで通信することがあります。</value></data>
<data name="UnusedGpuAudio" xml:space="preserve"><value>グラフィックカードの HDMI/DisplayPort オーディオで、既定の再生・録音デバイスではありません。モニターのスピーカーを使う場合は残してください。</value></data>
<data name="UnusedOnboardAudio" xml:space="preserve"><value>既定の再生・録音デバイスではないオンボードのサウンドカードです。PC のオーディオ ジャックに何か接続する場合は残してください。</value></data>
<data name="TabDrivers" xml:space="preserve">
<value>ドライバー</value>
</data>
Expand Down
3 changes: 3 additions & 0 deletions Resources/Devices.resx
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,9 @@ TweakHub cannot check what the script does, and the author can change it at any
<data name="UnusedNic" xml:space="preserve">
<value>network card without a link; another card is connected</value>
</data>
<data name="UnusedNicSlower" xml:space="preserve"><value>Connected, but {0} is faster: with two live connections Windows may send games over the slower one.</value></data>
<data name="UnusedGpuAudio" xml:space="preserve"><value>HDMI/DisplayPort audio of the graphics card, not your default playback or recording device. Keep it if you use the monitor's speakers.</value></data>
<data name="UnusedOnboardAudio" xml:space="preserve"><value>Built-in sound card that is not your default playback or recording device. Keep it if you plug anything into the PC's audio jacks.</value></data>
<data name="TabDrivers" xml:space="preserve">
<value>Drivers</value>
</data>
Expand Down
3 changes: 3 additions & 0 deletions Resources/Devices.ru.resx
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,9 @@ TweakHub не может проверить, что делает скрипт,
<data name="UnusedNic" xml:space="preserve">
<value>сетевая карта без подключения; другая карта подключена</value>
</data>
<data name="UnusedNicSlower" xml:space="preserve"><value>Подключена, но {0} быстрее: при двух активных подключениях Windows может пустить игры через более медленное.</value></data>
<data name="UnusedGpuAudio" xml:space="preserve"><value>Звук HDMI/DisplayPort видеокарты, не ваше устройство воспроизведения или записи по умолчанию. Оставьте, если пользуетесь динамиками монитора.</value></data>
<data name="UnusedOnboardAudio" xml:space="preserve"><value>Встроенная звуковая карта, которая не является устройством воспроизведения или записи по умолчанию. Оставьте, если подключаете что-то к аудиоразъёмам ПК.</value></data>
<data name="TabDrivers" xml:space="preserve">
<value>Драйверы</value>
</data>
Expand Down
3 changes: 3 additions & 0 deletions Resources/Devices.zh-CN.resx
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,9 @@ TweakHub 无法检查脚本的行为,作者也可以随时修改它。如有
<data name="UnusedNic" xml:space="preserve">
<value>网卡未连接;另一张网卡已连接</value>
</data>
<data name="UnusedNicSlower" xml:space="preserve"><value>已连接,但 {0} 更快:有两个活动连接时,Windows 可能让游戏走较慢的那个。</value></data>
<data name="UnusedGpuAudio" xml:space="preserve"><value>显卡的 HDMI/DisplayPort 音频,不是你的默认播放或录音设备。如果使用显示器扬声器请保留。</value></data>
<data name="UnusedOnboardAudio" xml:space="preserve"><value>不是默认播放或录音设备的板载声卡。如果你会在电脑音频插孔上插设备请保留。</value></data>
<data name="TabDrivers" xml:space="preserve">
<value>驱动程序</value>
</data>
Expand Down
40 changes: 40 additions & 0 deletions Resources/Maintenance.es.resx
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,44 @@ Se abre una consola elevada con su aviso. -p -spr -m -sor -se -scs conservan ene
<data name="DisableSleepName" xml:space="preserve"><value>Desactivar por completo la suspensión con corriente</value></data>
<data name="DisableSleepDescription" xml:space="preserve"><value>Con el equipo enchufado, Windows ya no permite los estados de espera (S1–S3), la tecla de suspensión no hace nada y Suspender desaparece del menú de apagado de Inicio. Úsalo solo si nunca suspendes este equipo. Opcional, no se aplica entre los recomendados. Los equipos con Modern Standby no usan S1–S3 y conservan su propia suspensión. Restaurar devuelve los valores originales. Requiere reinicio.</value></data>
<data name="TronBlockedByAntivirus" xml:space="preserve"><value>Microsoft Defender (o tu antivirus) bloqueó el paquete de Tron como software potencialmente no deseado y lo eliminó. TweakHub nunca añade exclusiones al antivirus. Si confías en Tron, añade tú las exclusiones para la carpeta Data\Tools\Tron de esta copia y para C:\ProgramData\TweakHub-Tron-*, y vuelve a intentarlo.</value></data>
<data name="LayoutButton" xml:space="preserve"><value>Distribución sugerida por función</value></data>
<data name="LayoutTitle" xml:space="preserve"><value>Distribución de interrupciones sugerida</value></data>
<data name="LayoutIntro" xml:space="preserve"><value>Un núcleo físico para gráficos, USB, red y audio, fuera del núcleo 0, elegido según la topología de esta CPU. Es una distribución sugerida para medir: el beneficio no está demostrado. Solo cambia la afinidad; MSI y la prioridad no se tocan. Desmarca los dispositivos que quieras dejar como están.</value></data>
<data name="LayoutRoleGpu" xml:space="preserve"><value>Gráficos</value></data>
<data name="LayoutRoleUsb" xml:space="preserve"><value>USB</value></data>
<data name="LayoutRoleNetwork" xml:space="preserve"><value>Red</value></data>
<data name="LayoutRoleAudio" xml:space="preserve"><value>Audio</value></data>
<data name="LayoutNoteHybrid" xml:space="preserve"><value>CPU híbrida: solo se usan núcleos P.</value></data>
<data name="LayoutNoteCache" xml:space="preserve"><value>CPU con varias cachés L3 (CCD): los dispositivos van al CCD sin 3D V-Cache, o al que no tiene la CPU 0 si las cachés son iguales.</value></data>
<data name="LayoutNoteShared" xml:space="preserve"><value>Esta CPU tiene 6 núcleos o menos: red y audio comparten un núcleo.</value></data>
<data name="LayoutRss" xml:space="preserve"><value>El RSS de red no se modifica: mover su inicio hace que Windows cambie también las colas y los procesadores, y no se puede restaurar con exactitud.</value></data>
<data name="LayoutUnavailable" xml:space="preserve"><value>No se puede sugerir una distribución en este PC: varios grupos de procesadores, muy pocos núcleos o topología ilegible.</value></data>
<data name="LayoutNothingToDo" xml:space="preserve"><value>Todos los dispositivos ya tienen la afinidad sugerida.</value></data>
<data name="LayoutReminder" xml:space="preserve"><value>Reinicia con Reiniciar, no con Apagar (el inicio rápido conserva el estado anterior). Vuelve a comprobarlo tras cada actualización del controlador de la GPU, que puede restablecer estos valores. Compara los frame times 1% y 0,1% low, no solo los FPS medios. El botón de restaurar de cada dispositivo lo deshace.</value></data>
<data name="LayoutChoice" xml:space="preserve"><value>{0}: CPU {1} – {2}</value></data>
<data name="LayoutGpuAudio" xml:space="preserve"><value>{0}: audio HDMI/DisplayPort de la tarjeta gráfica, no se mueve (no es el audio para jugar).</value></data>
<data name="LayoutAudioUnused" xml:space="preserve"><value>{0}: ningún dispositivo de audio activo detrás (desactivado o ausente), no se mueve.</value></data>
<data name="LayoutAudioUsb" xml:space="preserve"><value>No hay tarjeta de sonido integrada en uso: el audio USB (auriculares, DAC, interfaces de audio) sigue el núcleo del controlador USB al que está conectado.</value></data>
<data name="LayoutUsbController" xml:space="preserve"><value>USB {0}: {1}</value></data>
<data name="LayoutUsbMouse" xml:space="preserve"><value>ratón</value></data>
<data name="LayoutUsbKeyboard" xml:space="preserve"><value>teclado</value></data>
<data name="LayoutUsbCamera" xml:space="preserve"><value>cámara</value></data>
<data name="LayoutUsbAudio" xml:space="preserve"><value>audio: {0}</value></data>
<data name="LayoutUsbNothing" xml:space="preserve"><value>sin ratón, teclado, cámara ni dispositivo de audio predeterminado</value></data>
<data name="LayoutUsbAudioShared" xml:space="preserve"><value>{0} comparte el controlador USB con el ratón o el teclado, así que se queda en el núcleo USB. Para darle su propio núcleo, conéctalo a un puerto de un controlador sin ratón ni teclado (mira la lista de arriba) y vuelve a abrir este diseño.</value></data>
<data name="LayoutFrontJack" xml:space="preserve"><value>{0} está conectado a un conector frontal de la caja: ese cable pasa por dentro de la caja y suele captar ruido. Para jugar, usa el conector trasero de la placa base.</value></data>
<data name="LayoutLoadTitle" xml:space="preserve"><value>Carga medida ahora durante 2 segundos (con un juego en marcha es distinta):</value></data>
<data name="LayoutLoadCpu" xml:space="preserve"><value>CPU {0}: {1:0}% ocupada, {2:0.0}% interrupciones y DPC, {3:0} interrupciones/s</value></data>
<data name="LayoutLoadBusy" xml:space="preserve"><value>La CPU {0} ya está ocupada al {1:0}%: un programa la está usando. Revisa el Administrador de tareas antes de aplicar.</value></data>
<data name="LayoutDisabled" xml:space="preserve"><value>{0}: desactivado o sin funcionar, fuera del diseño.</value></data>
<data name="LayoutNetDisconnected" xml:space="preserve"><value>{0}: sin conexión de red, fuera del diseño.</value></data>
<data name="LayoutMsiChoice" xml:space="preserve"><value>Activar MSI para {0} (su controlador lo admite, ahora está desactivado)</value></data>
<data name="LayoutStoragePinned" xml:space="preserve"><value>{0} está ligado solo a {1}: los controladores de almacenamiento con varias colas van mejor con el reparto predeterminado de Windows. Usa el botón de restaurar o el editor para quitar su afinidad.</value></data>
<data name="LayoutActive" xml:space="preserve"><value>Activo ahora: {0}</value></data>
<data name="LayoutPendingRestart" xml:space="preserve"><value>Configurado, pero Windows usa los núcleos anteriores hasta reiniciar: {0}</value></data>
<data name="LayoutResetTitle" xml:space="preserve"><value>Diseño de interrupciones restablecido</value></data>
<data name="LayoutResetMessage" xml:space="preserve"><value>La afinidad de interrupciones sugerida ya no está en estos dispositivos, normalmente tras actualizar un controlador:
{0}

Abre Dispositivos → Afinidad y vuelve a aplicar el diseño sugerido.</value></data>
</root>
Loading
Loading