early-access version 3669

This commit is contained in:
pineappleEA 2023-06-13 09:04:01 +02:00
parent abe9c2ff0d
commit fbb35fcc7e
23 changed files with 154 additions and 230 deletions

View File

@ -1,7 +1,7 @@
yuzu emulator early access
=============
This is the source code for early-access 3667.
This is the source code for early-access 3669.
## Legal Notice

View File

@ -26,13 +26,18 @@ enum class IntSetting(
RENDERER_FORCE_MAX_CLOCK(
"force_max_clock",
Settings.SECTION_RENDERER,
1
0
),
RENDERER_ASYNCHRONOUS_SHADERS(
"use_asynchronous_shaders",
Settings.SECTION_RENDERER,
0
),
RENDERER_REACTIVE_FLUSHING(
"use_reactive_flushing",
Settings.SECTION_RENDERER,
0
),
RENDERER_DEBUG(
"debug",
Settings.SECTION_RENDERER,

View File

@ -321,6 +321,15 @@ class SettingsFragmentPresenter(private val fragmentView: SettingsFragmentView)
IntSetting.RENDERER_ASYNCHRONOUS_SHADERS.defaultValue
)
)
add(
SwitchSetting(
IntSetting.RENDERER_REACTIVE_FLUSHING,
R.string.renderer_reactive_flushing,
R.string.renderer_reactive_flushing_description,
IntSetting.RENDERER_REACTIVE_FLUSHING.key,
IntSetting.RENDERER_REACTIVE_FLUSHING.defaultValue
)
)
}
}

View File

@ -235,9 +235,13 @@ void Config::ReadValues() {
Settings::values.async_presentation =
config->GetBoolean("Renderer", "async_presentation", true);
// Enable force_max_clock by default on Android
// Disable force_max_clock by default on Android
Settings::values.renderer_force_max_clock =
config->GetBoolean("Renderer", "force_max_clock", true);
config->GetBoolean("Renderer", "force_max_clock", false);
// Disable use_reactive_flushing by default on Android
Settings::values.use_reactive_flushing =
config->GetBoolean("Renderer", "use_reactive_flushing", false);
// Audio
ReadSetting("Audio", Settings::values.sink_id);

View File

@ -251,7 +251,7 @@ backend =
# 0: Off, 1 (default): On
async_presentation =
# Enable graphics API debugging mode.
# Forces the GPU to run at the maximum possible clocks (thermal constraints will still be applied).
# 0 (default): Disabled, 1: Enabled
force_max_clock =
@ -328,6 +328,10 @@ shader_backend =
# 0 (default): Off, 1: On
use_asynchronous_shaders =
# Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.
# 0 (default): Off, 1: On
use_reactive_flushing =
# NVDEC emulation.
# 0: Disabled, 1: CPU Decoding, 2 (default): GPU Decoding
nvdec_emulation =

View File

@ -176,7 +176,6 @@
<string name="installing_driver">Treiber wird installiert...</string>
<!-- Preferences Screen -->
<string name="preferences_advanced_settings">Erweiterte Einstellungen</string>
<string name="preferences_settings">Einstellungen</string>
<string name="preferences_general">Allgemein</string>
<string name="preferences_system">System</string>
@ -228,7 +227,6 @@
<string name="performance_warning">Das Deaktivieren dieser Einstellung führt zu erheblichen Leistungsverlusten! Für ein optimales Erlebnis wird empfohlen, sie aktiviert zu lassen.</string>
<!-- Region Names -->
<string name="region_auto">Automatisch auswählen</string>
<string name="region_japan">Japan</string>
<string name="region_usa">USA</string>
<string name="region_europe">Europa</string>
@ -301,7 +299,6 @@
<string name="ratio_stretch">Auf Fenster anpassen</string>
<!-- CPU Accuracy -->
<string name="cpu_accuracy_auto">Auto</string>
<string name="cpu_accuracy_accurate">Akkurat</string>
<string name="cpu_accuracy_unsafe">Unsicher</string>
<string name="cpu_accuracy_paranoid">Paranoid (Langsam)</string>

View File

@ -61,11 +61,6 @@
<string name="invalid_keys_file">Archivo de claves inválido seleccionado</string>
<string name="install_keys_success">Claves instaladas correctamente</string>
<string name="reading_keys_failure">Error al leer las claves de cifrado</string>
<string name="install_keys_failure_extension_description">
1. Verifique que sus claves acaben con la extensión .keys.\n\n
2. Las claves no deben de estar almacenadas en la carpeta Descargas.\n\n
Resuelva el/los problema(s) y vuelva a intentarlo.
</string>
<string name="invalid_keys_error">Claves de cifrado no válidas</string>
<string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
<string name="install_keys_failure_description">El archivo seleccionado es incorrecto o está corrupto. Vuelva a redumpear sus claves.</string>
@ -184,7 +179,6 @@
<string name="installing_driver">Instalando driver...</string>
<!-- Preferences Screen -->
<string name="preferences_advanced_settings">Configuración avanzada</string>
<string name="preferences_settings">Ajustes</string>
<string name="preferences_general">General</string>
<string name="preferences_system">Sistema</string>
@ -238,7 +232,6 @@
<string name="performance_warning">¡Desactivar esta configuración reducirá significativamente el rendimiento de la emulación! Para obtener la mejor experiencia, se recomienda dejar esta configuración habilitada.</string>
<!-- Region Names -->
<string name="region_auto">Auto seleccionar</string>
<string name="region_japan">Japón</string>
<string name="region_usa">EEUU</string>
<string name="region_europe">Europa</string>
@ -311,7 +304,6 @@
<string name="ratio_stretch">Ajustar a la ventana</string>
<!-- CPU Accuracy -->
<string name="cpu_accuracy_auto">Auto</string>
<string name="cpu_accuracy_accurate">Preciso</string>
<string name="cpu_accuracy_unsafe">Impreciso</string>
<string name="cpu_accuracy_paranoid">Paranoico (Lento)</string>

View File

@ -61,11 +61,6 @@
<string name="invalid_keys_file">Fichier de clés sélectionné invalide</string>
<string name="install_keys_success">Clés installées avec succès</string>
<string name="reading_keys_failure">Erreur lors de la lecture des clés de chiffrement</string>
<string name="install_keys_failure_extension_description">
1. Vérifiez que vos clés ont l\'extension .keys.\n\n
2. Les clés ne doivent pas être stockées dans le dossier Téléchargements.\n\n
Résolvez le(s) problème(s) et réessayez.
</string>
<string name="invalid_keys_error">Clés de chiffrement invalides</string>
<string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
<string name="install_keys_failure_description">Le fichier sélectionné est incorrect ou corrompu. Veuillez dumper à nouveau vos clés.</string>
@ -184,7 +179,6 @@
<string name="installing_driver">Installation du pilote...</string>
<!-- Preferences Screen -->
<string name="preferences_advanced_settings">Paramètres avancés</string>
<string name="preferences_settings">Paramètres</string>
<string name="preferences_general">Général</string>
<string name="preferences_system">Système</string>
@ -238,7 +232,6 @@
<string name="performance_warning">La désactivation de ce paramètre réduira considérablement les performances d\'émulation ! Pour une expérience optimale, il est recommandé de laisser ce paramètre activé.</string>
<!-- Region Names -->
<string name="region_auto">Sélection automatique</string>
<string name="region_japan">Japon</string>
<string name="region_usa">É.-U.A.</string>
<string name="region_europe">Europe</string>
@ -311,7 +304,6 @@
<string name="ratio_stretch">Étirer à la fenêtre</string>
<!-- CPU Accuracy -->
<string name="cpu_accuracy_auto">Auto</string>
<string name="cpu_accuracy_accurate">Précis</string>
<string name="cpu_accuracy_unsafe">Risqué</string>
<string name="cpu_accuracy_paranoid">Paranoïaque (Lent)</string>

View File

@ -61,10 +61,6 @@
<string name="invalid_keys_file">Selezionate chiavi non valide</string>
<string name="install_keys_success">Chiavi installate correttamente</string>
<string name="reading_keys_failure">Errore durante la lettura delle chiavi di crittografia</string>
<string name="install_keys_failure_extension_description">
1. Verifica che le tue chiavi abbiano l\'estensione .keys.\n\n
2. Le chiavi non devono essere archiviate nella cartella Download.\n\n
Risolvi i problemi e riprova.</string>
<string name="invalid_keys_error">Chiavi di crittografia non valide</string>
<string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
<string name="install_keys_failure_description">Il file selezionato è incorretto o corrotto. Per favore riesegui il dump delle tue chiavi.</string>
@ -183,7 +179,6 @@ Risolvi i problemi e riprova.</string>
<string name="installing_driver">Installando i driver...</string>
<!-- Preferences Screen -->
<string name="preferences_advanced_settings">Impostazioni Avanzate</string>
<string name="preferences_settings">Impostazioni</string>
<string name="preferences_general">Generali</string>
<string name="preferences_system">Sistema</string>
@ -237,7 +232,6 @@ Risolvi i problemi e riprova.</string>
<string name="performance_warning">Disattivare questa impostazione può ridurre significativamente le performance di emulazione! Per una migliore esperienza, è consigliato lasciare questa impostazione attivata.</string>
<!-- Region Names -->
<string name="region_auto">Selezione automatica</string>
<string name="region_japan">Giappone</string>
<string name="region_usa">USA</string>
<string name="region_europe">Europa</string>
@ -310,7 +304,6 @@ Risolvi i problemi e riprova.</string>
<string name="ratio_stretch">Allunga a finestra</string>
<!-- CPU Accuracy -->
<string name="cpu_accuracy_auto">Automatico</string>
<string name="cpu_accuracy_accurate">Accurata</string>
<string name="cpu_accuracy_unsafe">Non sicura</string>
<string name="cpu_accuracy_paranoid">Paranoico (Lento)</string>

View File

@ -60,11 +60,6 @@
<string name="invalid_keys_file">無効なキーファイルが選択されました</string>
<string name="install_keys_success">正常にインストールされました</string>
<string name="reading_keys_failure">暗号化キーの読み取りエラー</string>
<string name="install_keys_failure_extension_description">
1. キーの拡張子が .keys であることを確認します。\n\n
2. キーはダウンロードフォルダに保存しないでください。\n\n
問題を解決して、再度お試しください。
</string>
<string name="invalid_keys_error">暗号化キーが無効です</string>
<string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
<string name="install_keys_failure_description">選択されたファイルが不正または破損しています。キーを再ダンプしてください。</string>
@ -183,7 +178,6 @@
<string name="installing_driver">インストール中…</string>
<!-- Preferences Screen -->
<string name="preferences_advanced_settings">詳細設定</string>
<string name="preferences_settings">設定</string>
<string name="preferences_general">全般</string>
<string name="preferences_system">システム</string>
@ -236,7 +230,6 @@
<string name="performance_warning">この設定をオフにすると、エミュレーションのパフォーマンスが著しく低下します!最高の体験を得るためには、この設定を有効にしておくことをお勧めします。</string>
<!-- Region Names -->
<string name="region_auto">自動選択</string>
<string name="region_japan">日本</string>
<string name="region_usa">アメリカ</string>
<string name="region_europe">ヨーロッパ</string>
@ -309,7 +302,6 @@
<string name="ratio_stretch">ウィンドウに合わせる</string>
<!-- CPU Accuracy -->
<string name="cpu_accuracy_auto">自動</string>
<string name="cpu_accuracy_accurate">正確</string>
<string name="cpu_accuracy_unsafe">不安定</string>
<string name="cpu_accuracy_paranoid">パラノイド (低速)</string>

View File

@ -61,11 +61,6 @@
<string name="invalid_keys_file">잘못된 keys 파일 선택</string>
<string name="install_keys_success">keys가 성공적으로 설치됨</string>
<string name="reading_keys_failure">암호화 keys 읽기 오류</string>
<string name="install_keys_failure_extension_description">
1. keys의 확장자가 .keys인지 확인하세요.\n\n
2. keys는 다운로드 폴더에 저장하면 안 됩니다.\n\n
문제를 해결하고 다시 시도하세요.
</string>
<string name="invalid_keys_error">잘못된 암호화 keys</string>
<string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
<string name="install_keys_failure_description">선택한 파일이 잘못되었거나 손상되었습니다. keys를 다시 덤프하세요.</string>
@ -184,7 +179,6 @@
<string name="installing_driver">드라이버 설치 중...</string>
<!-- Preferences Screen -->
<string name="preferences_advanced_settings">고급 설정</string>
<string name="preferences_settings">설정</string>
<string name="preferences_general">일반</string>
<string name="preferences_system">시스템</string>
@ -238,7 +232,6 @@
<string name="performance_warning">이 설정을 끄면 에뮬레이션 성능이 크게 저하됩니다! 최상의 환경을 위해 이 설정을 활성화된 상태로 두는 것이 좋습니다.</string>
<!-- Region Names -->
<string name="region_auto">자동 선택</string>
<string name="region_japan">일본</string>
<string name="region_usa">미국</string>
<string name="region_europe">유럽</string>
@ -311,7 +304,6 @@
<string name="ratio_stretch">창에 맞게 늘림</string>
<!-- CPU Accuracy -->
<string name="cpu_accuracy_auto">자동</string>
<string name="cpu_accuracy_accurate">정확함</string>
<string name="cpu_accuracy_unsafe">안전하지 않음</string>
<string name="cpu_accuracy_paranoid">편집증 (느림)</string>

View File

@ -61,11 +61,6 @@
<string name="invalid_keys_file">Ugyldig nøkkelfil valgt</string>
<string name="install_keys_success">Nøkler vellykket installert</string>
<string name="reading_keys_failure">Feil ved lesing av krypteringsnøkler</string>
<string name="install_keys_failure_extension_description">
1. Kontroller at nøklene har filtypen .keys.\n\n
2. Nøkler må ikke lagres i nedlastingsmappen.\n\n
Løs problemet/problemene og prøv igjen.
</string>
<string name="invalid_keys_error">Ugyldige krypteringsnøkler</string>
<string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
<string name="install_keys_failure_description">Den valgte filen er feil eller ødelagt. Vennligst dump nøklene på nytt.</string>
@ -184,7 +179,6 @@
<string name="installing_driver">Installerer driver...</string>
<!-- Preferences Screen -->
<string name="preferences_advanced_settings">Avanserte innstillinger</string>
<string name="preferences_settings">Innstillinger</string>
<string name="preferences_general">Generelt</string>
<string name="preferences_system">System</string>
@ -238,7 +232,6 @@
<string name="performance_warning">Hvis du slår av denne innstillingen, reduseres emuleringsytelsen betydelig! Vi anbefaler at du lar denne innstillingen være aktivert for å få den beste opplevelsen.</string>
<!-- Region Names -->
<string name="region_auto">Automatisk valg</string>
<string name="region_japan">Japan</string>
<string name="region_usa">USA</string>
<string name="region_europe">Europa</string>
@ -311,7 +304,6 @@
<string name="ratio_stretch">Strekk til Vindu</string>
<!-- CPU Accuracy -->
<string name="cpu_accuracy_auto">Auto</string>
<string name="cpu_accuracy_accurate">Nøyaktig</string>
<string name="cpu_accuracy_unsafe">Utrygt</string>
<string name="cpu_accuracy_paranoid">Paranoid (Langsom)</string>

View File

@ -61,10 +61,6 @@
<string name="invalid_keys_file">Wybrano niepoprawne klucze</string>
<string name="install_keys_success">Klucze zainstalowane pomyślnie</string>
<string name="reading_keys_failure">Błąd podczas odczytu kluczy</string>
<string name="install_keys_failure_extension_description">
1. Upewnij się że klucze mają rozszerzenie .keys. \n\n
2. Klucze nie mogą znajdować się w folderze Pobrane. \n\n
Rozwiąż te problemy (oba) i spróbuj ponownie.</string>
<string name="invalid_keys_error">Niepoprawne klucze</string>
<string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
<string name="install_keys_failure_description">Wybrany plik jest niepoprawny lub uszkodzony. Zrzuć ponownie swoje klucze.</string>
@ -183,7 +179,6 @@ Rozwiąż te problemy (oba) i spróbuj ponownie.</string>
<string name="installing_driver">Instalowanie sterownika...</string>
<!-- Preferences Screen -->
<string name="preferences_advanced_settings">Zaawansowane</string>
<string name="preferences_settings">Ustawienia</string>
<string name="preferences_general">Ogólne</string>
<string name="preferences_system">System</string>
@ -237,7 +232,6 @@ Rozwiąż te problemy (oba) i spróbuj ponownie.</string>
<string name="performance_warning">Wyłączenie tej opcji znacząco ograniczy wydajność! Dla najlepszego doświadczenia, zaleca się zostawienie tej opcji włączonej.</string>
<!-- Region Names -->
<string name="region_auto">Auto-wybór</string>
<string name="region_japan">Japonia</string>
<string name="region_usa">USA</string>
<string name="region_europe">Europa</string>
@ -310,7 +304,6 @@ Rozwiąż te problemy (oba) i spróbuj ponownie.</string>
<string name="ratio_stretch">Rozciągnij do Okna</string>
<!-- CPU Accuracy -->
<string name="cpu_accuracy_auto">Automatyczny</string>
<string name="cpu_accuracy_accurate">Dokładny</string>
<string name="cpu_accuracy_unsafe">Niebezpieczny</string>
<string name="cpu_accuracy_paranoid">Paranoid (Wolny)</string>

View File

@ -61,11 +61,6 @@
<string name="invalid_keys_file">Ficheiro de chaves inválido</string>
<string name="install_keys_success">Chaves instaladas com sucesso</string>
<string name="reading_keys_failure">Erro ao ler chaves de encriptação</string>
<string name="install_keys_failure_extension_description">
1. Verifica se as tuas chaves têm a extensão .keys.\n\n
2. As Chaves não podem estar gravadas na pasta Transferências.\n\n
Resolve esta(s) questões e tenta novamente.
</string>
<string name="invalid_keys_error">Chaves de encriptação inválidas</string>
<string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
<string name="install_keys_failure_description">O ficheiro selecionado está corrompido. Por favor recarrega as tuas chaves.</string>
@ -184,7 +179,6 @@
<string name="installing_driver">A instalar o Driver...</string>
<!-- Preferences Screen -->
<string name="preferences_advanced_settings">Configurações avançadas</string>
<string name="preferences_settings">Configurações</string>
<string name="preferences_general">Geral</string>
<string name="preferences_system">Sistema</string>
@ -238,7 +232,6 @@
<string name="performance_warning">Desligar esta configuração irá reduzir a performance da emulação significantemente! Para a melhor experiência é recomendado que deixes esta configuração ativada.</string>
<!-- Region Names -->
<string name="region_auto">Auto seleção</string>
<string name="region_japan">Japão</string>
<string name="region_usa">EUA</string>
<string name="region_europe">Europa</string>
@ -311,7 +304,6 @@
<string name="ratio_stretch">Esticar para a janela</string>
<!-- CPU Accuracy -->
<string name="cpu_accuracy_auto">Automático</string>
<string name="cpu_accuracy_accurate">Preciso</string>
<string name="cpu_accuracy_unsafe">Não seguro</string>
<string name="cpu_accuracy_paranoid">Paranoid (Lento)</string>

View File

@ -61,11 +61,6 @@
<string name="invalid_keys_file">Ficheiro de chaves inválido</string>
<string name="install_keys_success">Chaves instaladas com sucesso</string>
<string name="reading_keys_failure">Erro ao ler chaves de encriptação</string>
<string name="install_keys_failure_extension_description">
1. Verifica se as tuas chaves têm a extensão .keys.\n\n
2. As Chaves não podem estar gravadas na pasta Transferências.\n\n
Resolve esta(s) questões e tenta novamente.
</string>
<string name="invalid_keys_error">Chaves de encriptação inválidas</string>
<string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
<string name="install_keys_failure_description">O ficheiro selecionado está corrompido. Por favor recarrega as tuas chaves.</string>
@ -184,7 +179,6 @@
<string name="installing_driver">A instalar o Driver...</string>
<!-- Preferences Screen -->
<string name="preferences_advanced_settings">Configurações avançadas</string>
<string name="preferences_settings">Configurações</string>
<string name="preferences_general">Geral</string>
<string name="preferences_system">Sistema</string>
@ -238,7 +232,6 @@
<string name="performance_warning">Desligar esta configuração irá reduzir a performance da emulação significantemente! Para a melhor experiência é recomendado que deixes esta configuração ativada.</string>
<!-- Region Names -->
<string name="region_auto">Autosseleção</string>
<string name="region_japan">Japão</string>
<string name="region_usa">EUA</string>
<string name="region_europe">Europa</string>
@ -311,7 +304,6 @@
<string name="ratio_stretch">Esticar à Janela</string>
<!-- CPU Accuracy -->
<string name="cpu_accuracy_auto">Automático</string>
<string name="cpu_accuracy_accurate">Preciso</string>
<string name="cpu_accuracy_unsafe">Inseguro</string>
<string name="cpu_accuracy_paranoid">Paranoid (Lento)</string>

View File

@ -61,11 +61,6 @@
<string name="invalid_keys_file">Выбран неверный файл ключей</string>
<string name="install_keys_success">Ключи успешно установлены</string>
<string name="reading_keys_failure">Ошибка при чтении ключей шифрования</string>
<string name="install_keys_failure_extension_description">
1. Убедитесь, что ваши ключи имеют расширение .keys\n\n
2. Ключи не должны находиться в папке Downloads.\n\n
Исправьте проблему(-ы) и повторите попытку.
</string>
<string name="invalid_keys_error">Неверные ключи шифрования</string>
<string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
<string name="install_keys_failure_description">Выбранный файл неверен или поврежден. Пожалуйста, пере-дампите ваши ключи.</string>
@ -184,7 +179,6 @@
<string name="installing_driver">Установка драйвера...</string>
<!-- Preferences Screen -->
<string name="preferences_advanced_settings">Расширенные настройки</string>
<string name="preferences_settings">Настройки</string>
<string name="preferences_general">Общие</string>
<string name="preferences_system">Система</string>
@ -238,7 +232,6 @@
<string name="performance_warning">Отключение этой настройки значительно снизит производительность эмуляции! Для достижения наилучших результатов рекомендуется оставить эту настройку включенной.</string>
<!-- Region Names -->
<string name="region_auto">Авто-выбор</string>
<string name="region_japan">Япония</string>
<string name="region_usa">США</string>
<string name="region_europe">Европа</string>
@ -311,7 +304,6 @@
<string name="ratio_stretch">Растянуть до окна</string>
<!-- CPU Accuracy -->
<string name="cpu_accuracy_auto">Авто</string>
<string name="cpu_accuracy_accurate">Точно</string>
<string name="cpu_accuracy_unsafe">Небезопасно</string>
<string name="cpu_accuracy_paranoid">Параноик (медленно)</string>

View File

@ -61,11 +61,6 @@
<string name="invalid_keys_file">Вибрано неправильний файл ключів</string>
<string name="install_keys_success">Ключі успішно встановлено</string>
<string name="reading_keys_failure">Помилка під час зчитування ключів шифрування</string>
<string name="install_keys_failure_extension_description">
1. Переконайтеся, що ваші ключі мають розширення .keys\n\n
2. Ключі не повинні знаходитися в папці Downloads.\n\n
Виправте проблему(-и) та спробуйте ще раз.
</string>
<string name="invalid_keys_error">Невірні ключі шифрування</string>
<string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
<string name="install_keys_failure_description">Обраний файл невірний або пошкоджений. Будь ласка, пере-дампіть ваші ключі.</string>
@ -184,7 +179,6 @@
<string name="installing_driver">Встановлення драйвера...</string>
<!-- Preferences Screen -->
<string name="preferences_advanced_settings">Розширені налаштування</string>
<string name="preferences_settings">Налаштування</string>
<string name="preferences_general">Загальні</string>
<string name="preferences_system">Система</string>
@ -238,7 +232,6 @@
<string name="performance_warning">Вимкнення цього налаштування значно знизить продуктивність емуляції! Для досягнення найкращих результатів рекомендується залишити це налаштування увімкненим.</string>
<!-- Region Names -->
<string name="region_auto">Авто-вибір</string>
<string name="region_japan">Японія</string>
<string name="region_usa">США</string>
<string name="region_europe">Європа</string>
@ -311,7 +304,6 @@
<string name="ratio_stretch">Розтягнути до вікна</string>
<!-- CPU Accuracy -->
<string name="cpu_accuracy_auto">Авто</string>
<string name="cpu_accuracy_accurate">Точно</string>
<string name="cpu_accuracy_unsafe">Небезпечно</string>
<string name="cpu_accuracy_paranoid">Параноїк (повільно)</string>

View File

@ -61,11 +61,6 @@
<string name="invalid_keys_file">选择的密钥文件无效</string>
<string name="install_keys_success">密钥文件已成功安装</string>
<string name="reading_keys_failure">读取加密密钥时出错</string>
<string name="install_keys_failure_extension_description">
1. 验证您的密钥文件是否具有 .keys 扩展名。\n\n
2. 密钥文件不能放置于 Downloads 文件夹。\n\n
解决问题并再试一次。
</string>
<string name="invalid_keys_error">无效的加密密钥</string>
<string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
<string name="install_keys_failure_description">选择的密钥文件不正确或已损坏。请重新转储密钥文件。</string>
@ -184,7 +179,6 @@
<string name="installing_driver">正在安装驱动程序…</string>
<!-- Preferences Screen -->
<string name="preferences_advanced_settings">高级选项</string>
<string name="preferences_settings">设置</string>
<string name="preferences_general">通用</string>
<string name="preferences_system">系统</string>
@ -238,7 +232,6 @@
<string name="performance_warning">关闭此项会显著降低模拟性能!建议您将此项保持为启用状态。</string>
<!-- Region Names -->
<string name="region_auto">自动选择</string>
<string name="region_japan">日本</string>
<string name="region_usa">美国</string>
<string name="region_europe">欧洲</string>
@ -311,7 +304,6 @@
<string name="ratio_stretch">拉伸窗口</string>
<!-- CPU Accuracy -->
<string name="cpu_accuracy_auto">自动</string>
<string name="cpu_accuracy_accurate">高精度</string>
<string name="cpu_accuracy_unsafe">低精度</string>
<string name="cpu_accuracy_paranoid">偏执模式 (慢速)</string>

View File

@ -61,11 +61,6 @@
<string name="invalid_keys_file">無效的金鑰檔案已選取</string>
<string name="install_keys_success">金鑰已成功安裝</string>
<string name="reading_keys_failure">讀取加密金鑰時出現錯誤</string>
<string name="install_keys_failure_extension_description">
1. 驗證您的金鑰是否具有 .keys 副檔名。\n\n
2. 金鑰不能儲存於 Downloads 資料夾。\n\n
解決問題並再試一次。
</string>
<string name="invalid_keys_error">無效的加密金鑰</string>
<string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
<string name="install_keys_failure_description">選取的檔案不正確或已損毀,請重新傾印您的金鑰。</string>
@ -184,7 +179,6 @@
<string name="installing_driver">正在安裝驅動程式…</string>
<!-- Preferences Screen -->
<string name="preferences_advanced_settings">進階設定</string>
<string name="preferences_settings">設定</string>
<string name="preferences_general">一般</string>
<string name="preferences_system">系統</string>
@ -238,7 +232,6 @@
<string name="performance_warning">關閉此設定會顯著降低模擬效能!如需最佳體驗,建議您將此設定保持為啟用狀態。</string>
<!-- Region Names -->
<string name="region_auto">自動選取</string>
<string name="region_japan">日本</string>
<string name="region_usa">美國</string>
<string name="region_europe">歐洲</string>
@ -311,8 +304,6 @@
<string name="ratio_stretch">延伸視窗</string>
<!-- CPU Accuracy -->
<string name="cpu_accuracy_auto">自動</string>
<string name="cpu_accuracy_accurate">高精度</string>
<string name="cpu_accuracy_unsafe">低精度</string>
<string name="cpu_accuracy_paranoid">不合理 (慢)</string>

View File

@ -169,6 +169,8 @@
<string name="renderer_force_max_clock_description">Forces the GPU to run at the maximum possible clocks (thermal constraints will still be applied).</string>
<string name="renderer_asynchronous_shaders">Use asynchronous shaders</string>
<string name="renderer_asynchronous_shaders_description">Compiles shaders asynchronously, reducing stutter but may introduce glitches.</string>
<string name="renderer_reactive_flushing">Use reactive flushing</string>
<string name="renderer_reactive_flushing_description">Improves rendering accuracy in some games at the cost of performance.</string>
<string name="renderer_debug">Graphics debugging</string>
<string name="renderer_debug_description">Sets the graphics API to a slow debugging mode.</string>
<string name="use_disk_shader_cache">Disk shader cache</string>

View File

@ -25,8 +25,6 @@ namespace FS = Common::FS;
namespace {
constexpr size_t MaxOpenFiles = 512;
constexpr FS::FileAccessMode ModeFlagsToFileAccessMode(Mode mode) {
switch (mode) {
case Mode::Read:
@ -75,10 +73,24 @@ VfsEntryType RealVfsFilesystem::GetEntryType(std::string_view path_) const {
VirtualFile RealVfsFilesystem::OpenFile(std::string_view path_, Mode perms) {
const auto path = FS::SanitizePath(path_, FS::DirectorySeparator::PlatformDefault);
auto reference = std::make_unique<FileReference>();
this->InsertReferenceIntoList(*reference);
if (const auto weak_iter = cache.find(path); weak_iter != cache.cend()) {
const auto& weak = weak_iter->second;
return std::shared_ptr<RealVfsFile>(new RealVfsFile(*this, std::move(reference), path, perms));
if (!weak.expired()) {
return std::shared_ptr<RealVfsFile>(new RealVfsFile(*this, weak.lock(), path, perms));
}
}
auto backing = FS::FileOpen(path, ModeFlagsToFileAccessMode(perms), FS::FileType::BinaryFile);
if (!backing) {
return nullptr;
}
cache.insert_or_assign(path, std::move(backing));
// Cannot use make_shared as RealVfsFile constructor is private
return std::shared_ptr<RealVfsFile>(new RealVfsFile(*this, backing, path, perms));
}
VirtualFile RealVfsFilesystem::CreateFile(std::string_view path_, Mode perms) {
@ -111,19 +123,51 @@ VirtualFile RealVfsFilesystem::CopyFile(std::string_view old_path_, std::string_
VirtualFile RealVfsFilesystem::MoveFile(std::string_view old_path_, std::string_view new_path_) {
const auto old_path = FS::SanitizePath(old_path_, FS::DirectorySeparator::PlatformDefault);
const auto new_path = FS::SanitizePath(new_path_, FS::DirectorySeparator::PlatformDefault);
if (!FS::RenameFile(old_path, new_path)) {
const auto cached_file_iter = cache.find(old_path);
if (cached_file_iter != cache.cend()) {
auto file = cached_file_iter->second.lock();
if (!cached_file_iter->second.expired()) {
file->Close();
}
if (!FS::RenameFile(old_path, new_path)) {
return nullptr;
}
cache.erase(old_path);
file->Open(new_path, FS::FileAccessMode::Read, FS::FileType::BinaryFile);
if (file->IsOpen()) {
cache.insert_or_assign(new_path, std::move(file));
} else {
LOG_ERROR(Service_FS, "Failed to open path {} in order to re-cache it", new_path);
}
} else {
ASSERT(false);
return nullptr;
}
return OpenFile(new_path, Mode::ReadWrite);
}
bool RealVfsFilesystem::DeleteFile(std::string_view path_) {
const auto path = FS::SanitizePath(path_, FS::DirectorySeparator::PlatformDefault);
const auto cached_iter = cache.find(path);
if (cached_iter != cache.cend()) {
if (!cached_iter->second.expired()) {
cached_iter->second.lock()->Close();
}
cache.erase(path);
}
return FS::RemoveFile(path);
}
VirtualDir RealVfsFilesystem::OpenDirectory(std::string_view path_, Mode perms) {
const auto path = FS::SanitizePath(path_, FS::DirectorySeparator::PlatformDefault);
// Cannot use make_shared as RealVfsDirectory constructor is private
return std::shared_ptr<RealVfsDirectory>(new RealVfsDirectory(*this, path, perms));
}
@ -132,6 +176,7 @@ VirtualDir RealVfsFilesystem::CreateDirectory(std::string_view path_, Mode perms
if (!FS::CreateDirs(path)) {
return nullptr;
}
// Cannot use make_shared as RealVfsDirectory constructor is private
return std::shared_ptr<RealVfsDirectory>(new RealVfsDirectory(*this, path, perms));
}
@ -149,102 +194,73 @@ VirtualDir RealVfsFilesystem::MoveDirectory(std::string_view old_path_,
if (!FS::RenameDir(old_path, new_path)) {
return nullptr;
}
for (auto& kv : cache) {
// If the path in the cache doesn't start with old_path, then bail on this file.
if (kv.first.rfind(old_path, 0) != 0) {
continue;
}
const auto file_old_path =
FS::SanitizePath(kv.first, FS::DirectorySeparator::PlatformDefault);
auto file_new_path = FS::SanitizePath(new_path + '/' + kv.first.substr(old_path.size()),
FS::DirectorySeparator::PlatformDefault);
const auto& cached = cache[file_old_path];
if (cached.expired()) {
continue;
}
auto file = cached.lock();
cache.erase(file_old_path);
file->Open(file_new_path, FS::FileAccessMode::Read, FS::FileType::BinaryFile);
if (file->IsOpen()) {
cache.insert_or_assign(std::move(file_new_path), std::move(file));
} else {
LOG_ERROR(Service_FS, "Failed to open path {} in order to re-cache it", file_new_path);
}
}
return OpenDirectory(new_path, Mode::ReadWrite);
}
bool RealVfsFilesystem::DeleteDirectory(std::string_view path_) {
const auto path = FS::SanitizePath(path_, FS::DirectorySeparator::PlatformDefault);
for (auto& kv : cache) {
// If the path in the cache doesn't start with path, then bail on this file.
if (kv.first.rfind(path, 0) != 0) {
continue;
}
const auto& entry = cache[kv.first];
if (!entry.expired()) {
entry.lock()->Close();
}
cache.erase(kv.first);
}
return FS::RemoveDirRecursively(path);
}
void RealVfsFilesystem::RefreshReference(const std::string& path, Mode perms,
FileReference& reference) {
// Temporarily remove from list.
this->RemoveReferenceFromList(reference);
// Restore file if needed.
if (!reference.file) {
this->EvictSingleReference();
reference.file =
FS::FileOpen(path, ModeFlagsToFileAccessMode(perms), FS::FileType::BinaryFile);
if (reference.file) {
num_open_files++;
}
}
// Reinsert into list.
this->InsertReferenceIntoList(reference);
}
void RealVfsFilesystem::DropReference(std::unique_ptr<FileReference>&& reference) {
// Remove from list.
this->RemoveReferenceFromList(*reference);
// Close the file.
if (reference->file) {
reference->file.reset();
num_open_files--;
}
}
void RealVfsFilesystem::EvictSingleReference() {
if (num_open_files < MaxOpenFiles || open_references.empty()) {
return;
}
// Get and remove from list.
auto& reference = open_references.back();
this->RemoveReferenceFromList(reference);
// Close the file.
if (reference.file) {
reference.file.reset();
num_open_files--;
}
// Reinsert into closed list.
this->InsertReferenceIntoList(reference);
}
void RealVfsFilesystem::InsertReferenceIntoList(FileReference& reference) {
if (reference.file) {
open_references.push_front(reference);
} else {
closed_references.push_front(reference);
}
}
void RealVfsFilesystem::RemoveReferenceFromList(FileReference& reference) {
if (reference.file) {
open_references.erase(open_references.iterator_to(reference));
} else {
closed_references.erase(closed_references.iterator_to(reference));
}
}
RealVfsFile::RealVfsFile(RealVfsFilesystem& base_, std::unique_ptr<FileReference> reference_,
RealVfsFile::RealVfsFile(RealVfsFilesystem& base_, std::shared_ptr<FS::IOFile> backing_,
const std::string& path_, Mode perms_)
: base(base_), reference(std::move(reference_)), path(path_),
parent_path(FS::GetParentPath(path_)), path_components(FS::SplitPathComponents(path_)),
perms(perms_) {}
: base(base_), backing(std::move(backing_)), path(path_), parent_path(FS::GetParentPath(path_)),
path_components(FS::SplitPathComponents(path_)), perms(perms_) {}
RealVfsFile::~RealVfsFile() {
base.DropReference(std::move(reference));
}
RealVfsFile::~RealVfsFile() = default;
std::string RealVfsFile::GetName() const {
return path_components.back();
}
std::size_t RealVfsFile::GetSize() const {
base.RefreshReference(path, perms, *reference);
return reference->file ? reference->file->GetSize() : 0;
return backing->GetSize();
}
bool RealVfsFile::Resize(std::size_t new_size) {
base.RefreshReference(path, perms, *reference);
return reference->file ? reference->file->SetSize(new_size) : false;
return backing->SetSize(new_size);
}
VirtualDir RealVfsFile::GetContainingDirectory() const {
@ -260,25 +276,27 @@ bool RealVfsFile::IsReadable() const {
}
std::size_t RealVfsFile::Read(u8* data, std::size_t length, std::size_t offset) const {
base.RefreshReference(path, perms, *reference);
if (!reference->file || !reference->file->Seek(static_cast<s64>(offset))) {
if (!backing->Seek(static_cast<s64>(offset))) {
return 0;
}
return reference->file->ReadSpan(std::span{data, length});
return backing->ReadSpan(std::span{data, length});
}
std::size_t RealVfsFile::Write(const u8* data, std::size_t length, std::size_t offset) {
base.RefreshReference(path, perms, *reference);
if (!reference->file || !reference->file->Seek(static_cast<s64>(offset))) {
if (!backing->Seek(static_cast<s64>(offset))) {
return 0;
}
return reference->file->WriteSpan(std::span{data, length});
return backing->WriteSpan(std::span{data, length});
}
bool RealVfsFile::Rename(std::string_view name) {
return base.MoveFile(path, parent_path + '/' + std::string(name)) != nullptr;
}
void RealVfsFile::Close() {
backing->Close();
}
// TODO(DarkLordZach): MSVC would not let me combine the following two functions using 'if
// constexpr' because there is a compile error in the branch not used.

View File

@ -4,7 +4,7 @@
#pragma once
#include <string_view>
#include "common/intrusive_list.h"
#include <boost/container/flat_map.hpp>
#include "core/file_sys/mode.h"
#include "core/file_sys/vfs.h"
@ -14,11 +14,6 @@ class IOFile;
namespace FileSys {
struct FileReference : public Common::IntrusiveListBaseNode<FileReference> {
std::shared_ptr<Common::FS::IOFile> file{};
};
class RealVfsFile;
class RealVfsFilesystem : public VfsFilesystem {
public:
RealVfsFilesystem();
@ -40,20 +35,7 @@ public:
bool DeleteDirectory(std::string_view path) override;
private:
using ReferenceListType = Common::IntrusiveListBaseTraits<FileReference>::ListType;
ReferenceListType open_references;
ReferenceListType closed_references;
size_t num_open_files{};
private:
friend class RealVfsFile;
void RefreshReference(const std::string& path, Mode perms, FileReference& reference);
void DropReference(std::unique_ptr<FileReference>&& reference);
void EvictSingleReference();
private:
void InsertReferenceIntoList(FileReference& reference);
void RemoveReferenceFromList(FileReference& reference);
boost::container::flat_map<std::string, std::weak_ptr<Common::FS::IOFile>> cache;
};
// An implementation of VfsFile that represents a file on the user's computer.
@ -75,11 +57,13 @@ public:
bool Rename(std::string_view name) override;
private:
RealVfsFile(RealVfsFilesystem& base, std::unique_ptr<FileReference> reference,
RealVfsFile(RealVfsFilesystem& base, std::shared_ptr<Common::FS::IOFile> backing,
const std::string& path, Mode perms = Mode::Read);
void Close();
RealVfsFilesystem& base;
std::unique_ptr<FileReference> reference;
std::shared_ptr<Common::FS::IOFile> backing;
std::string path;
std::string parent_path;
std::vector<std::string> path_components;

View File

@ -22,6 +22,9 @@ using Tegra::Texture::TICEntry;
using VideoCore::Surface::PixelFormat;
using VideoCore::Surface::SurfaceType;
constexpr u32 RescaleHeightThreshold = 288;
constexpr u32 DownscaleHeightThreshold = 512;
ImageInfo::ImageInfo(const TICEntry& config) noexcept {
forced_flushed = config.IsPitchLinear() && !Settings::values.use_reactive_flushing.GetValue();
dma_downloaded = forced_flushed;
@ -113,8 +116,9 @@ ImageInfo::ImageInfo(const TICEntry& config) noexcept {
layer_stride = CalculateLayerStride(*this);
maybe_unaligned_layer_stride = CalculateLayerSize(*this);
rescaleable &= (block.depth == 0) && resources.levels == 1;
rescaleable &= size.height > 256 || GetFormatType(format) != SurfaceType::ColorTexture;
downscaleable = size.height > 512;
rescaleable &= size.height > RescaleHeightThreshold ||
GetFormatType(format) != SurfaceType::ColorTexture;
downscaleable = size.height > DownscaleHeightThreshold;
}
}
@ -152,8 +156,8 @@ ImageInfo::ImageInfo(const Maxwell3D::Regs::RenderTargetConfig& ct,
size.depth = ct.depth;
} else {
rescaleable = block.depth == 0;
rescaleable &= size.height > 256;
downscaleable = size.height > 512;
rescaleable &= size.height > RescaleHeightThreshold;
downscaleable = size.height > DownscaleHeightThreshold;
type = ImageType::e2D;
resources.layers = ct.depth;
}
@ -232,8 +236,8 @@ ImageInfo::ImageInfo(const Fermi2D::Surface& config) noexcept {
.height = config.height,
.depth = 1,
};
rescaleable = block.depth == 0 && size.height > 256;
downscaleable = size.height > 512;
rescaleable = block.depth == 0 && size.height > RescaleHeightThreshold;
downscaleable = size.height > DownscaleHeightThreshold;
}
}
@ -275,8 +279,8 @@ ImageInfo::ImageInfo(const Tegra::DMA::ImageOperand& config) noexcept {
resources.layers = 1;
layer_stride = CalculateLayerStride(*this);
maybe_unaligned_layer_stride = CalculateLayerSize(*this);
rescaleable = block.depth == 0 && size.height > 256;
downscaleable = size.height > 512;
rescaleable = block.depth == 0 && size.height > RescaleHeightThreshold;
downscaleable = size.height > DownscaleHeightThreshold;
}
} // namespace VideoCommon