Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

Merge PR #7813: Choose the graphics adapter on multi-GPU Linux machines (#1885)

aionggdb56aeb10adc
diff --cc apps/photocraft/src/gpu_startup.rs
index 5e8abbd01,c68799b2d..33be58cd4
--- a/apps/photocraft/src/gpu_startup.rs
+++ b/apps/photocraft/src/gpu_startup.rs
@@@ -323,12 -339,8 +364,13 @@@ pub fn configure(setup: &mut egui_wgpu:
let env = std::env::var("WGPU_DX12_COMPILER").ok();
create.instance_descriptor.backend_options.dx12.shader_compiler = dx12_compiler(env.as_deref(), exe.as_deref().and_then(Path::parent));
}
+ let without_vulkan = windows_auto_backends(plan, os, || dx12_vendors(&create.instance_descriptor));
+ if let Some(b) = without_vulkan {
+ create.instance_descriptor.backends = b;
+ }
+ let vulkan_left_out = without_vulkan.is_some();
- let select = plan.env.is_none() && (plan.backend == GpuBackend::Cpu || (plan.backend == GpuBackend::Auto && os == Os::Windows));
+ let wanted = applicable_adapter(wanted, plan.backend, ADAPTER_CHOICE);
+ let select = wanted.is_some() || (plan.env.is_none() && (plan.backend == GpuBackend::Cpu || (plan.backend == GpuBackend::Auto && os == Os::Windows)));
if select {
let backend = plan.backend;
create.native_adapter_selector = Some(Arc::new(move |adapters: &[wgpu::Adapter], surface: Option<&wgpu::Surface<'_>>| {
diff --cc crates/ui-egui/src/i18n/cs.tsv
index 64c966deb,f4d8798b4..15879f60d
--- a/crates/ui-egui/src/i18n/cs.tsv
+++ b/crates/ui-egui/src/i18n/cs.tsv
@@@ -3848,16 -3838,6 +3848,19 @@@ navigator Zoom Zvětšen�
Increase Brush Size Zvětšit velikost štětce
Decrease Brush Hardness Snížit tvrdost štětce
Increase Brush Hardness Zvýšit tvrdost štětce
+ Memory Usage Využití paměti
+ Per-document RAM limit (MB) Limit RAM na dokument (MB)
+ Installed RAM: {ram} MB; this limit: {percent}% Nainstalovaná RAM: {ram} MB; tento limit: {percent}%
+ Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. Omezuje pixely plus Historii každého otevřeného dokumentu. Nejstarší stavy zpět se při překročení limitu zahodí.
+ Applies immediately when saved. Memory is not reserved in advance. Platí hned po uložení. Paměť se předem nerezervuje.
+ With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. Při GPU paměti Automaticky omezuje i GPU rozpočet. Strop je čtvrtina RAM a, je-li známo, tři osminy paměti karty, minimum 512 MB. Vyšší limit GPU rozpočet nezvýší.
+ Use Použít
+ In Front Vpředu
+ Behind Vzadu
+
+# DDS Options (#1327)
+ DDS Options Možnosti DDS
+ Generate Mipmaps Generovat mipmapy
+
+ # Graphics Adapter preference (#1885)
+ GPU adapter Adaptér GPU
diff --cc crates/ui-egui/src/i18n/de.tsv
index b97a687ce,fd7254628..ef72bfa7b
--- a/crates/ui-egui/src/i18n/de.tsv
+++ b/crates/ui-egui/src/i18n/de.tsv
@@@ -3240,18 -3230,6 +3240,21 @@@ curves Smooth Glätte
GPU Memory (MB, 0 = Automatic) GPU-Speicher (MB, 0 = Automatisch)
{name} was changed by another app after it was opened or saved here. {name} wurde von einer anderen App geändert, nachdem es hier geöffnet oder gespeichert wurde.
Replace it with this document, or cancel and use File › Save As to keep both. Ersetze die Datei durch dieses Dokument oder brich ab und nutze Datei › Speichern unter, um beide zu behalten.
+ Memory Usage Speichernutzung
+ Per-document RAM limit (MB) RAM-Limit pro Dokument (MB)
+ Installed RAM: {ram} MB; this limit: {percent}% Installierter RAM: {ram} MB; dieses Limit: {percent}%
+ Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. Begrenzt Pixel plus Verlauf jedes offenen Dokuments. Die ältesten Widerrufsschritte werden verworfen, wenn das Limit überschritten wird.
+ Applies immediately when saved. Memory is not reserved in advance. Gilt sofort nach dem Speichern. Speicher wird nicht im Voraus reserviert.
+ With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. Bei GPU-Speicher = Automatisch begrenzt dies auch das GPU-Ebenenbudget. Das Budget ist auf ein Viertel des RAM und, wenn bekannt, drei Achtel des Grafikspeichers begrenzt, mindestens 512 MB. Ein höheres Limit erhöht das GPU-Budget nicht.
+ Use Verwenden
+ In Front Davor
+ Behind Dahinter
+ Blend Mischen
+
+# DDS Options (#1327)
+ DDS Options DDS-Optionen
+ Compression Komprimierung
+ Generate Mipmaps Mipmaps erzeugen
+
+ # Graphics Adapter preference (#1885)
+ GPU adapter GPU-Adapter
diff --cc crates/ui-egui/src/i18n/el.tsv
index 5d7e8a627,3f31bec6c..bac53b53d
--- a/crates/ui-egui/src/i18n/el.tsv
+++ b/crates/ui-egui/src/i18n/el.tsv
@@@ -3940,16 -3930,6 +3940,19 @@@ curves Smooth Εξομάλυνσ�
Increase Brush Size Αύξηση μεγέθους πινέλου
Decrease Brush Hardness Μείωση σκληρότητας πινέλου
Increase Brush Hardness Αύξηση σκληρότητας πινέλου
+ Memory Usage Χρήση μνήμης
+ Per-document RAM limit (MB) Όριο RAM ανά έγγραφο (MB)
+ Installed RAM: {ram} MB; this limit: {percent}% Εγκατεστημένη RAM: {ram} MB· αυτό το όριο: {percent}%
+ Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. Περιορίζει τα pixel συν το Ιστορικό κάθε ανοιχτού εγγράφου. Οι παλαιότερες καταστάσεις αναίρεσης απορρίπτονται όταν ξεπεραστεί το όριο.
+ Applies immediately when saved. Memory is not reserved in advance. Ισχύει αμέσως με την αποθήκευση. Η μνήμη δεν δεσμεύεται εκ των προτέρων.
+ With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. Με Μνήμη GPU σε Αυτόματο, περιορίζει και τον προϋπολογισμό GPU. Ανώτατο όριο το 1/4 της RAM και, αν είναι γνωστό, τα 3/8 της μνήμης κάρτας, ελάχιστο 512 MB. Μεγαλύτερο όριο δεν αυξάνει τον προϋπολογισμό GPU.
+ Use Χρήση
+ In Front Μπροστά
+ Behind Πίσω
+
+# DDS Options (#1327)
+ DDS Options Επιλογές DDS
+ Generate Mipmaps Δημιουργία mipmap
+
+ # Graphics Adapter preference (#1885)
+ GPU adapter Προσαρμογέας GPU
diff --cc crates/ui-egui/src/i18n/es.tsv
index 68dd9378b,3dcfb2568..8629fc3fd
--- a/crates/ui-egui/src/i18n/es.tsv
+++ b/crates/ui-egui/src/i18n/es.tsv
@@@ -4202,16 -4192,6 +4202,19 @@@ navigator Zoom Zoo
Increase Brush Size Aumentar tamaño del pincel
Decrease Brush Hardness Reducir dureza del pincel
Increase Brush Hardness Aumentar dureza del pincel
+ Memory Usage Uso de memoria
+ Per-document RAM limit (MB) Límite de RAM por documento (MB)
+ Installed RAM: {ram} MB; this limit: {percent}% RAM instalada: {ram} MB; este límite: {percent}%
+ Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. Limita los píxeles más el Historial de cada documento abierto. Se descartan los estados de deshacer más antiguos al superar el límite.
+ Applies immediately when saved. Memory is not reserved in advance. Se aplica al guardar. La memoria no se reserva de antemano.
+ With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. Con Memoria GPU en Automático, también limita el presupuesto GPU. Está topeado a un cuarto de la RAM y, si se conoce, tres octavos de la memoria de la tarjeta, mínimo 512 MB. Subir el límite no aumenta el presupuesto GPU.
+ Use Usar
+ In Front Delante
+ Behind Detrás
+
+# DDS Options (#1327)
+ DDS Options Opciones de DDS
+ Generate Mipmaps Generar mipmaps
+
+ # Graphics Adapter preference (#1885)
+ GPU adapter Adaptador de GPU
diff --cc crates/ui-egui/src/i18n/fr.tsv
index 76d63c44c,9f15ac108..fad669a4b
--- a/crates/ui-egui/src/i18n/fr.tsv
+++ b/crates/ui-egui/src/i18n/fr.tsv
@@@ -3248,17 -3238,6 +3248,20 @@@ curves Smooth Lisse
Increase Brush Size Augmenter la taille du pinceau
Decrease Brush Hardness Réduire la dureté du pinceau
Increase Brush Hardness Augmenter la dureté du pinceau
+ Memory Usage Utilisation de la mémoire
+ Per-document RAM limit (MB) Limite RAM par document (Mo)
+ Installed RAM: {ram} MB; this limit: {percent}% RAM installée : {ram} Mo ; cette limite : {percent}%
+ Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. Limite les pixels plus l’Historique de chaque document ouvert. Les plus anciens états d’annulation sont supprimés au-delà de la limite.
+ Applies immediately when saved. Memory is not reserved in advance. S’applique dès l’enregistrement. La mémoire n’est pas réservée à l’avance.
+ With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. Si Mémoire GPU est Automatique, cela limite aussi le budget GPU. Il est plafonné à un quart de la RAM et, si connu, aux trois huitièmes de la mémoire de la carte, minimum 512 Mo. Dépasser ces plafonds n’augmente pas le budget GPU.
+ Use Utiliser
+ In Front Devant
+ Behind Derrière
+
+# DDS Options (#1327)
+ DDS Options Options DDS
+ Compression Compression
+ Generate Mipmaps Générer les mipmaps
+
+ # Graphics Adapter preference (#1885)
+ GPU adapter Adaptateur GPU
diff --cc crates/ui-egui/src/i18n/hu.tsv
index 23883435a,ad4d3c19f..c066f4271
--- a/crates/ui-egui/src/i18n/hu.tsv
+++ b/crates/ui-egui/src/i18n/hu.tsv
@@@ -4159,16 -4149,6 +4159,19 @@@ cameraRaw Yellow Sárg
Increase Brush Size Ecsetméret növelése
Decrease Brush Hardness Ecsetkeménység csökkentése
Increase Brush Hardness Ecsetkeménység növelése
+ Memory Usage Memóriahasználat
+ Per-document RAM limit (MB) Dokumentumonkénti RAM-korlát (MB)
+ Installed RAM: {ram} MB; this limit: {percent}% Telepített RAM: {ram} MB; ez a korlát: {percent}%
+ Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. Minden nyitott dokumentum pixeljeit és előzményeit korlátozza. A legrégebbi visszavonási állapotok törlődnek a korlát túllépésekor.
+ Applies immediately when saved. Memory is not reserved in advance. Mentéskor azonnal érvényes. A memória nincs előre lefoglalva.
+ With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. Automatikus GPU-memóriánál a GPU-rétegkeretet is korlátozza. Felső határ a RAM negyede és, ha ismert, a kártyamemória háromnyolcada, minimum 512 MB. Magasabb korlát a GPU-keretet nem növeli.
+ Use Használat
+ In Front Elöl
+ Behind Mögött
+
+# DDS Options (#1327)
+ DDS Options DDS-beállítások
+ Generate Mipmaps Mipmapek létrehozása
+
+ # Graphics Adapter preference (#1885)
+ GPU adapter GPU-adapter
diff --cc crates/ui-egui/src/i18n/id.tsv
index aef0651c2,e63f82baf..9e0012bd6
--- a/crates/ui-egui/src/i18n/id.tsv
+++ b/crates/ui-egui/src/i18n/id.tsv
@@@ -3235,17 -3225,6 +3235,20 @@@ curves Smooth Haluska
Increase Brush Size Perbesar ukuran kuas
Decrease Brush Hardness Kurangi kekerasan kuas
Increase Brush Hardness Tambah kekerasan kuas
+ Memory Usage Penggunaan memori
+ Per-document RAM limit (MB) Batas RAM per dokumen (MB)
+ Installed RAM: {ram} MB; this limit: {percent}% RAM terpasang: {ram} MB; batas ini: {percent}%
+ Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. Membatasi piksel plus Riwayat setiap dokumen terbuka. Status urungkan tertua dibuang jika batas terlampaui.
+ Applies immediately when saved. Memory is not reserved in advance. Berlaku segera setelah disimpan. Memori tidak dipesan di muka.
+ With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. Jika Memori GPU Otomatis, ini juga membatasi anggaran GPU. Plafon seperempat RAM dan, jika diketahui, tiga per delapan memori kartu, minimum 512 MB. Menaikkan batas tidak menambah anggaran GPU.
+ Use Gunakan
+ In Front Di Depan
+ Behind Di Belakang
+
+# DDS Options (#1327)
+ DDS Options Opsi DDS
+ Compression Kompresi
+ Generate Mipmaps Buat mipmap
+
+ # Graphics Adapter preference (#1885)
+ GPU adapter Adaptor GPU
diff --cc crates/ui-egui/src/i18n/it.tsv
index ee576bbd1,6c754f1b3..fe8d4cf8d
--- a/crates/ui-egui/src/i18n/it.tsv
+++ b/crates/ui-egui/src/i18n/it.tsv
@@@ -4357,16 -4347,6 +4357,19 @@@ shape Appearance Aspett
GPU Memory (MB, 0 = Automatic) Memoria GPU (MB, 0 = Automatico)
{name} was changed by another app after it was opened or saved here. {name} è stato modificato da un'altra app dopo essere stato aperto o salvato qui.
Replace it with this document, or cancel and use File › Save As to keep both. Sostituiscilo con questo documento, oppure annulla e usa File › Salva con nome per tenerli entrambi.
+ Memory Usage Utilizzo memoria
+ Per-document RAM limit (MB) Limite RAM per documento (MB)
+ Installed RAM: {ram} MB; this limit: {percent}% RAM installata: {ram} MB; questo limite: {percent}%
+ Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. Limita i pixel più la Cronologia di ogni documento aperto. Gli stati Annulla più vecchi vengono scartati oltre il limite.
+ Applies immediately when saved. Memory is not reserved in advance. Si applica al salvataggio. La memoria non è riservata in anticipo.
+ With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. Con Memoria GPU Automatica limita anche il budget GPU. È limitato a un quarto della RAM e, se nota, a tre ottavi della memoria della scheda, minimo 512 MB. Alzare il limite non aumenta il budget GPU.
+ Use Usa
+ In Front Davanti
+ Behind Dietro
+
+# DDS Options (#1327)
+ DDS Options Opzioni DDS
+ Generate Mipmaps Genera mipmap
+
+ # Graphics Adapter preference (#1885)
+ GPU adapter Adattatore GPU
diff --cc crates/ui-egui/src/i18n/ja.tsv
index 990e39b84,5204f384e..9b121c4c9
--- a/crates/ui-egui/src/i18n/ja.tsv
+++ b/crates/ui-egui/src/i18n/ja.tsv
@@@ -3917,17 -3907,6 +3917,20 @@@ curves Smooth スムー�
Increase Brush Size ブラシサイズを大きく
Decrease Brush Hardness ブラシの硬さを下げる
Increase Brush Hardness ブラシの硬さを上げる
+ Memory Usage メモリ使用量
+ Per-document RAM limit (MB) ドキュメントあたりの RAM 上限 (MB)
+ Installed RAM: {ram} MB; this limit: {percent}% 搭載 RAM: {ram} MB、この上限: {percent}%
+ Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. 開いている各ドキュメントのピクセルと履歴を制限します。上限を超えると最も古い取り消し状態が破棄されます。
+ Applies immediately when saved. Memory is not reserved in advance. 保存するとすぐに適用されます。メモリは事前に予約されません。
+ With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. GPU メモリが自動のとき、GPU レイヤー予算も制限します。上限は搭載 RAM の 1/4、判明していればグラフィックメモリの 3/8、最低 512 MB です。これ以上に上げても GPU 予算は増えません。
+ Use 使用
+ In Front 前面
+ Behind 背面
+
+# DDS Options (#1327)
+ DDS Options DDS オプション
+ Compression 圧縮
+ Generate Mipmaps ミップマップを生成
+
+ # Graphics Adapter preference (#1885)
+ GPU adapter GPU アダプター
diff --cc crates/ui-egui/src/i18n/ko.tsv
index d1a175804,ff7165f70..5cd5b8ff7
--- a/crates/ui-egui/src/i18n/ko.tsv
+++ b/crates/ui-egui/src/i18n/ko.tsv
@@@ -3421,18 -3411,6 +3421,21 @@@ curves Smooth 매끄럽�
Increase Brush Size 브러시 크기 늘리기
Decrease Brush Hardness 브러시 경도 줄이기
Increase Brush Hardness 브러시 경도 늘리기
+ Memory Usage 메모리 사용량
+ Per-document RAM limit (MB) 문서당 RAM 한도(MB)
+ Installed RAM: {ram} MB; this limit: {percent}% 설치된 RAM: {ram} MB; 이 한도: {percent}%
+ Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. 열린 각 문서의 픽셀과 기록을 제한합니다. 한도를 넘으면 가장 오래된 실행 취소 상태가 버려집니다.
+ Applies immediately when saved. Memory is not reserved in advance. 저장하면 바로 적용됩니다. 메모리를 미리 예약하지 않습니다.
+ With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. GPU 메모리가 자동이면 GPU 레이어 예산도 제한합니다. 상한은 설치 RAM의 1/4, 알려진 경우 그래픽 메모리의 3/8, 최소 512MB입니다. 이보다 올려도 GPU 예산은 늘지 않습니다.
+ Use 사용
+ In Front 앞
+ Behind 뒤
+ Blend 혼합
+
+# DDS Options (#1327)
+ DDS Options DDS 옵션
+ Compression 압축
+ Generate Mipmaps 밉맵 생성
+
+ # Graphics Adapter preference (#1885)
+ GPU adapter GPU 어댑터
diff --cc crates/ui-egui/src/i18n/nl.tsv
index 823d9c725,41bc8ca4f..7104d69ed
--- a/crates/ui-egui/src/i18n/nl.tsv
+++ b/crates/ui-egui/src/i18n/nl.tsv
@@@ -4000,16 -3990,6 +4000,19 @@@ curves Smooth Vloeiend make
Increase Brush Size Penseelgrootte vergroten
Decrease Brush Hardness Penseelhardheid verlagen
Increase Brush Hardness Penseelhardheid verhogen
+ Memory Usage Geheugengebruik
+ Per-document RAM limit (MB) RAM-limiet per document (MB)
+ Installed RAM: {ram} MB; this limit: {percent}% Geïnstalleerd RAM: {ram} MB; deze limiet: {percent}%
+ Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. Beperkt pixels plus Geschiedenis van elk geopend document. Oudste herstelstappen verdwijnen als de limiet wordt overschreden.
+ Applies immediately when saved. Memory is not reserved in advance. Geldt meteen na opslaan. Geheugen wordt niet vooraf gereserveerd.
+ With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. Bij GPU-geheugen Automatisch beperkt dit ook het GPU-laagbudget. Maximum is een kwart RAM en, indien bekend, drie achtste van het videogeheugen, minstens 512 MB. Hoger zetten vergroot het GPU-budget niet.
+ Use Gebruiken
+ In Front Voor
+ Behind Achter
+
+# DDS Options (#1327)
+ DDS Options DDS-opties
+ Generate Mipmaps Mipmaps genereren
+
+ # Graphics Adapter preference (#1885)
+ GPU adapter GPU-adapter
diff --cc crates/ui-egui/src/i18n/pl.tsv
index 1b6145003,097f1d105..8abed62ba
--- a/crates/ui-egui/src/i18n/pl.tsv
+++ b/crates/ui-egui/src/i18n/pl.tsv
@@@ -3839,17 -3829,6 +3839,20 @@@ curves Smooth Wygład�
Increase Brush Size Zwiększ rozmiar pędzla
Decrease Brush Hardness Zmniejsz twardość pędzla
Increase Brush Hardness Zwiększ twardość pędzla
+ Memory Usage Użycie pamięci
+ Per-document RAM limit (MB) Limit RAM na dokument (MB)
+ Installed RAM: {ram} MB; this limit: {percent}% Zainstalowany RAM: {ram} MB; ten limit: {percent}%
+ Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. Ogranicza piksele plus Historię każdego otwartego dokumentu. Najstarsze stany cofania są usuwane po przekroczeniu limitu.
+ Applies immediately when saved. Memory is not reserved in advance. Obowiązuje zaraz po zapisaniu. Pamięć nie jest rezerwowana z góry.
+ With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. Przy pamięci GPU = Automatycznie ogranicza też budżet GPU. Limit to 1/4 RAM i, jeśli znane, 3/8 pamięci karty, minimum 512 MB. Wyższy limit nie zwiększa budżetu GPU.
+ Use Użyj
+ In Front Z przodu
+ Behind Z tyłu
+
+# DDS Options (#1327)
+ DDS Options Opcje DDS
+ Compression Kompresja
+ Generate Mipmaps Generuj mipmapy
+
+ # Graphics Adapter preference (#1885)
+ GPU adapter Karta GPU
diff --cc crates/ui-egui/src/i18n/pt-br.tsv
index 561f0d255,967efd5e6..b21564e68
--- a/crates/ui-egui/src/i18n/pt-br.tsv
+++ b/crates/ui-egui/src/i18n/pt-br.tsv
@@@ -4030,16 -4020,6 +4030,19 @@@ layerLabel No Color Sem co
Increase Brush Size Aumentar tamanho do pincel
Decrease Brush Hardness Diminuir dureza do pincel
Increase Brush Hardness Aumentar dureza do pincel
+ Memory Usage Uso de memória
+ Per-document RAM limit (MB) Limite de RAM por documento (MB)
+ Installed RAM: {ram} MB; this limit: {percent}% RAM instalada: {ram} MB; este limite: {percent}%
+ Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. Limita os pixels mais o Histórico de cada documento aberto. Os estados de desfazer mais antigos são descartados ao exceder o limite.
+ Applies immediately when saved. Memory is not reserved in advance. Aplica-se ao salvar. A memória não é reservada antecipadamente.
+ With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. Com Memória GPU Automática, também limita o orçamento GPU. O teto é um quarto da RAM e, se conhecido, três oitavos da memória da placa, mínimo 512 MB. Aumentar o limite não aumenta o orçamento GPU.
+ Use Usar
+ In Front Na frente
+ Behind Atrás
+
+# DDS Options (#1327)
+ DDS Options Opções de DDS
+ Generate Mipmaps Gerar mipmaps
+
+ # Graphics Adapter preference (#1885)
+ GPU adapter Adaptador de GPU
diff --cc crates/ui-egui/src/i18n/ru.tsv
index ed173a9e9,5b52178d6..ff6fc08de
--- a/crates/ui-egui/src/i18n/ru.tsv
+++ b/crates/ui-egui/src/i18n/ru.tsv
@@@ -3213,18 -3203,6 +3213,21 @@@ curves Smooth Сгладит�
Increase Brush Size Увеличить размер кисти
Decrease Brush Hardness Уменьшить жёсткость кисти
Increase Brush Hardness Увеличить жёсткость кисти
+ Memory Usage Использование памяти
+ Per-document RAM limit (MB) Лимит ОЗУ на документ (МБ)
+ Installed RAM: {ram} MB; this limit: {percent}% Установлено ОЗУ: {ram} МБ; этот лимит: {percent}%
+ Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. Ограничивает пиксели и историю каждого открытого документа. Старые состояния отмены удаляются при превышении лимита.
+ Applies immediately when saved. Memory is not reserved in advance. Применяется сразу после сохранения. Память заранее не резервируется.
+ With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. При GPU-памяти «Авто» это также ограничивает бюджет GPU. Потолок — четверть ОЗУ и, если известно, три восьмых памяти карты, минимум 512 МБ. Больший лимит GPU-бюджет не увеличивает.
+ Command Command
+ Use Использовать
+ In Front Спереди
+ Behind Сзади
+
+# DDS Options (#1327)
+ DDS Options Параметры DDS
+ Compression Сжатие
+ Generate Mipmaps Создать MIP-карты
+
+ # Graphics Adapter preference (#1885)
+ GPU adapter Адаптер GPU
diff --cc crates/ui-egui/src/i18n/sr.tsv
index 81fc321d5,0b9bdb75a..9a1ceff63
--- a/crates/ui-egui/src/i18n/sr.tsv
+++ b/crates/ui-egui/src/i18n/sr.tsv
@@@ -4313,16 -4303,6 +4313,19 @@@ shape Appearance Izgle
Increase Brush Size Povećaj veličinu četkice
Decrease Brush Hardness Smanji tvrdoću četkice
Increase Brush Hardness Povećaj tvrdoću četkice
+ Memory Usage Upotreba memorije
+ Per-document RAM limit (MB) RAM limit po dokumentu (MB)
+ Installed RAM: {ram} MB; this limit: {percent}% Instalisan RAM: {ram} MB; ovaj limit: {percent}%
+ Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. Ograničava piksele plus Istoriju svakog otvorenog dokumenta. Najstarija stanja opoziva se odbacuju kad se prekorači limit.
+ Applies immediately when saved. Memory is not reserved in advance. Važi odmah po čuvanju. Memorija se unapred ne rezerviše.
+ With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. Kad je GPU memorija Automatski, ograničava i GPU budžet. Plafon je četvrtina RAM-a i, ako je poznato, tri osmine memorije kartice, najmanje 512 MB. Veći limit ne povećava GPU budžet.
+ Use Koristi
+ In Front Ispred
+ Behind Iza
+
+# DDS Options (#1327)
+ DDS Options DDS opcije
+ Generate Mipmaps Generiši mipmape
+
+ # Graphics Adapter preference (#1885)
+ GPU adapter GPU adapter
diff --cc crates/ui-egui/src/i18n/tr.tsv
index 581a9ec71,278623f6a..def688abc
--- a/crates/ui-egui/src/i18n/tr.tsv
+++ b/crates/ui-egui/src/i18n/tr.tsv
@@@ -3970,16 -3960,6 +3970,19 @@@ cameraData Lens Len
Increase Brush Size Fırça boyutunu büyüt
Decrease Brush Hardness Fırça sertliğini azalt
Increase Brush Hardness Fırça sertliğini artır
+ Memory Usage Bellek kullanımı
+ Per-document RAM limit (MB) Belge başına RAM sınırı (MB)
+ Installed RAM: {ram} MB; this limit: {percent}% Kurulu RAM: {ram} MB; bu sınır: {percent}%
+ Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. Her açık belgenin piksellerini ve Geçmişini sınırlar. Sınır aşılınca en eski geri alma durumları atılır.
+ Applies immediately when saved. Memory is not reserved in advance. Kaydedilince hemen uygulanır. Bellek önceden ayrılmaz.
+ With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. GPU Belleği Otomatikken GPU katman bütçesini de sınırlar. Tavan, RAM’in dörtte biri ve biliniyorsa kart belleğinin sekizde üçü, en az 512 MB. Sınırı yükseltmek GPU bütçesini artırmaz.
+ Use Kullan
+ In Front Önde
+ Behind Arkada
+
+# DDS Options (#1327)
+ DDS Options DDS Seçenekleri
+ Generate Mipmaps Mipmap oluştur
+
+ # Graphics Adapter preference (#1885)
+ GPU adapter GPU bağdaştırıcısı
diff --cc crates/ui-egui/src/i18n/uk.tsv
index d88fd3ac3,605cf3df6..e28ea0008
--- a/crates/ui-egui/src/i18n/uk.tsv
+++ b/crates/ui-egui/src/i18n/uk.tsv
@@@ -3948,17 -3938,6 +3948,20 @@@ curves Smooth Згладит�
This shape layer must be rasterized before proceeding. It will no longer be editable as a shape. Rasterize the shape? Щоб продовжити, потрібно растеризувати цей шар фігури. Після цього його більше не можна буде редагувати як фігуру. Растеризувати фігуру?
This Smart Object must be rasterized before proceeding. Its contents will no longer be editable. Rasterize the Smart Object? Щоб продовжити, потрібно растеризувати цей смартоб’єкт. Після цього його вміст більше не можна буде редагувати. Растеризувати смартоб’єкт?
This fill layer must be rasterized before proceeding. Its fill content will no longer be editable. Rasterize the layer? Щоб продовжити, потрібно растеризувати цей шар заливки. Після цього його заливку більше не можна буде редагувати. Растеризувати шар?
+ Memory Usage Використання пам’яті
+ Per-document RAM limit (MB) Ліміт RAM на документ (МБ)
+ Installed RAM: {ram} MB; this limit: {percent}% Встановлено RAM: {ram} МБ; цей ліміт: {percent}%
+ Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. Обмежує пікселі плюс Історію кожного відкритого документа. Найстаріші стани скасування відкидаються після перевищення ліміту.
+ Applies immediately when saved. Memory is not reserved in advance. Застосовується одразу після збереження. Пам’ять заздалегідь не резервується.
+ With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. Якщо пам’ять GPU — Авто, це також обмежує бюджет GPU. Стеля — чверть RAM і, якщо відомо, три восьмих пам’яті карти, мінімум 512 МБ. Більший ліміт бюджет GPU не збільшує.
+ Use Використати
+ In Front Спереду
+ Behind Ззаду
+
+# DDS Options (#1327)
+ DDS Options Параметри DDS
+ Compression Стиснення
+ Generate Mipmaps Створити MIP-карти
+
+ # Graphics Adapter preference (#1885)
+ GPU adapter Адаптер GPU
diff --cc crates/ui-egui/src/i18n/vi.tsv
index 18d026b86,3a9f2ba4e..503cc1006
--- a/crates/ui-egui/src/i18n/vi.tsv
+++ b/crates/ui-egui/src/i18n/vi.tsv
@@@ -3727,17 -3717,6 +3727,20 @@@ curves Smooth Làm mượ
Increase Brush Size Tăng kích thước cọ
Decrease Brush Hardness Giảm độ cứng của cọ
Increase Brush Hardness Tăng độ cứng của cọ
+ Memory Usage Sử dụng bộ nhớ
+ Per-document RAM limit (MB) Giới hạn RAM mỗi tài liệu (MB)
+ Installed RAM: {ram} MB; this limit: {percent}% RAM đã cài: {ram} MB; giới hạn này: {percent}%
+ Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. Giới hạn pixel cộng Lịch sử của mỗi tài liệu đang mở. Các trạng thái hoàn tác cũ nhất bị bỏ khi vượt giới hạn.
+ Applies immediately when saved. Memory is not reserved in advance. Áp dụng ngay khi lưu. Bộ nhớ không được dành trước.
+ With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. Khi Bộ nhớ GPU là Tự động, cũng giới hạn ngân sách GPU. Trần là 1/4 RAM và, nếu biết, 3/8 bộ nhớ card, tối thiểu 512 MB. Tăng giới hạn không làm tăng ngân sách GPU.
+ Use Dùng
+ In Front Phía trước
+ Behind Phía sau
+
+# DDS Options (#1327)
+ DDS Options Tùy chọn DDS
+ Compression Nén
+ Generate Mipmaps Tạo mipmap
+
+ # Graphics Adapter preference (#1885)
+ GPU adapter Bộ điều hợp GPU
diff --cc crates/ui-egui/src/i18n/zh-hans.tsv
index 984a88fe8,604786a29..4461426e1
--- a/crates/ui-egui/src/i18n/zh-hans.tsv
+++ b/crates/ui-egui/src/i18n/zh-hans.tsv
@@@ -2863,18 -2853,6 +2863,21 @@@ curves Smooth 平�
Increase Brush Size 增大画笔大小
Decrease Brush Hardness 减小画笔硬度
Increase Brush Hardness 增大画笔硬度
+ Memory Usage 内存使用
+ Per-document RAM limit (MB) 每个文档的 RAM 上限 (MB)
+ Installed RAM: {ram} MB; this limit: {percent}% 已安装 RAM:{ram} MB;此上限:{percent}%
+ Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. 限制每个打开文档的像素加历史记录。超出上限时会丢弃最旧的撤销状态。
+ Applies immediately when saved. Memory is not reserved in advance. 保存后立即生效。不会预先占用内存。
+ With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. 当 GPU 内存为自动时,这也会限制 GPU 图层预算。上限为安装 RAM 的四分之一,以及(若已知)显存的八分之三,最低 512 MB。超过这些上限不会增加 GPU 预算。
+ Use 使用
+ In Front 前面
+ Behind 后面
+ Blend 混合
+
+# DDS Options (#1327)
+ DDS Options DDS 选项
+ Compression 压缩
+ Generate Mipmaps 生成 Mipmap
+
+ # Graphics Adapter preference (#1885)
+ GPU adapter GPU 适配器
diff --cc crates/ui-egui/src/i18n/zh-hant.tsv
index 46319d21e,e61580cef..612e294a9
--- a/crates/ui-egui/src/i18n/zh-hant.tsv
+++ b/crates/ui-egui/src/i18n/zh-hant.tsv
@@@ -2848,18 -2838,6 +2848,21 @@@ curves Smooth 平�
Increase Brush Size 放大筆刷大小
Decrease Brush Hardness 降低筆刷硬度
Increase Brush Hardness 提高筆刷硬度
+ Memory Usage 記憶體使用量
+ Per-document RAM limit (MB) 每個文件的 RAM 上限 (MB)
+ Installed RAM: {ram} MB; this limit: {percent}% 已安裝 RAM:{ram} MB;此上限:{percent}%
+ Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. 限制每個開啟文件的像素加歷史記錄。超出上限時會捨棄最舊的復原狀態。
+ Applies immediately when saved. Memory is not reserved in advance. 儲存後立即套用。不會預先保留記憶體。
+ With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. 當 GPU 記憶體為自動時,這也會限制 GPU 圖層預算。上限為安裝 RAM 的四分之一,以及(若已知)顯示卡記憶體的八分之三,最低 512 MB。超過這些上限不會增加 GPU 預算。
+ Use 使用
+ In Front 前面
+ Behind 後面
+ Blend 混合
+
+# DDS Options (#1327)
+ DDS Options DDS 選項
+ Compression 壓縮
+ Generate Mipmaps 產生 Mipmap
+
+ # Graphics Adapter preference (#1885)
+ GPU adapter GPU 介面卡
diff --cc crates/ui-egui/src/prefs_ui.rs
index d808ae32f,9a57a4127..5cd2e547d
--- a/crates/ui-egui/src/prefs_ui.rs
+++ b/crates/ui-egui/src/prefs_ui.rs
@@@ -1601,7 -1595,7 +1630,7 @@@ fn field_visible(section: &str, obj: &M
let drawn_elsewhere = (section == "interface" && matches!(k, "theme" | "appearanceMode" | "darkTheme" | "lightTheme" | "favoriteThemes"))
// View › Rulers (⌘R) sets it, as in Photoshop.
|| path == "unitsAndRulers.showRulers"
- || (section == "performance" && matches!(k, "useGpu" | "gpuBackend" | "renderingMode" | "memoryUsageMb"))
- || (section == "performance" && matches!(k, "useGpu" | "gpuBackend" | "gpuAdapter" | "renderingMode"))
++ || (section == "performance" && matches!(k, "useGpu" | "gpuBackend" | "gpuAdapter" | "renderingMode" | "memoryUsageMb"))
// The browser presents frames itself: Low-Latency Drawing does nothing there.
|| (cfg!(target_arch = "wasm32") && path == "performance.lowLatencyDrawing")
|| (section == "export" && !export_field_visible(obj, k))
diff --cc docs/development.md
index a5b798037,8a63b825c..4e450daff
--- a/docs/development.md
+++ b/docs/development.md
@@@ -86,8 -86,10 +86,10 @@@ On Windows and Linux the first PhotoCra
## Graphics startup and device loss
-`--safe-gpu` starts with the CPU renderer for one launch (no GPU canvas; a software adapter for the window where the platform has one: WARP on Windows, llvmpipe over GL on Linux). Before creating the wgpu device the app writes and locks `gpu-starting.json` in the config directory; it clears it once the first frames have rendered. A launch that finds an unlocked marker knows the previous start died inside the graphics driver (#4) and uses the next safer backend (Windows: Vulkan → DX12 → CPU; Linux: Vulkan → GL → CPU; macOS: Metal → CPU), remembering a working hardware backend in `performance.gpuBackend` (Preferences › Performance › GPU Backend, with **Reset GPU Backend**). CPU recovery is temporary until **Keep Using CPU** is chosen in the recovery dialog; dismissing the dialog or quitting without a choice preserves the previous GPU preference (#3483). With `auto`, Intel adapters on Windows use DX12. Help › System Info shows the adapter, backend, driver and fallback state.
+`--safe-gpu` starts with the CPU renderer for one launch (no GPU canvas; a software adapter for the window where the platform has one: WARP on Windows, llvmpipe over GL on Linux). Before creating the wgpu device the app writes and locks `gpu-starting.json` in the config directory; it clears it once the first frames have rendered. A launch that finds an unlocked marker knows the previous start died inside the graphics driver (#4) and uses the next safer backend (Windows: Vulkan → DX12 → CPU; Linux: Vulkan → GL → CPU; macOS: Metal → CPU), remembering a working hardware backend in `performance.gpuBackend` (Preferences › Performance › GPU Backend, with **Reset GPU Backend**). CPU recovery is temporary until **Keep Using CPU** is chosen in the recovery dialog; dismissing the dialog or quitting without a choice preserves the previous GPU preference (#3483). With `auto`, Intel adapters on Windows use DX12: when DXGI lists an Intel adapter, the app creates its wgpu instance with DX12 and GL only, so the first start doesn't load the Intel Vulkan driver, and a discrete GPU beside the Intel one also runs on DX12. Help › System Info shows the adapter, backend, driver and fallback state.
+ On Linux, on a machine with several GPUs (say an eGPU, a discrete laptop GPU and an iGPU), `auto` takes the first discrete adapter the driver lists; choose another in Preferences › Performance › Advanced › GPU adapter (`performance.gpuAdapter`, Linux; a case-insensitive piece of the adapter's name, empty is automatic), or for one launch with `PHOTOCRAFT_GPU_ADAPTER=nvidia`. An adapter that is missing or can't present to the window falls back to the automatic choice, with a note in System Info.
+
On DX12 the shader compiler is FXC (`d3dcompiler_47.dll`, part of Windows), or a `dxcompiler.dll` placed beside `photocraft.exe`, loaded by its full path. wgpu's default looks `dxcompiler.dll` up by name, which reaches the current directory and `PATH` and loaded other programs' incompatible builds (#712).
Handled windowing and app initialization errors clear this launch's startup marker, restoring any