PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Explain the Memory Usage budget and GPU caps (#6546) (#6892)
Vikram Bhaskaran7200f64bf1a7
diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsvindex 9cf6344d2..7894c0094 100644--- a/crates/ui-egui/src/i18n/cs.tsv+++ b/crates/ui-egui/src/i18n/cs.tsv@@ -3839,6 +3839,12 @@ navigator Zoom ZvětšeníIncrease Brush Size Zvětšit velikost štětceDecrease Brush Hardness Snížit tvrdost štětceIncrease 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žítIn Front VpředuBehind Vzadudiff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsvindex 627c9eced..6468ef3bf 100644--- a/crates/ui-egui/src/i18n/de.tsv+++ b/crates/ui-egui/src/i18n/de.tsv@@ -3231,6 +3231,12 @@ curves Smooth GlättenGPU 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 VerwendenIn Front DavorBehind Dahinterdiff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsvindex 4cd75535d..0a0f1fda2 100644--- a/crates/ui-egui/src/i18n/el.tsv+++ b/crates/ui-egui/src/i18n/el.tsv@@ -3931,6 +3931,12 @@ 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 Πίσωdiff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsvindex a48e22483..ba1183354 100644--- a/crates/ui-egui/src/i18n/es.tsv+++ b/crates/ui-egui/src/i18n/es.tsv@@ -4193,6 +4193,12 @@ navigator Zoom ZoomIncrease Brush Size Aumentar tamaño del pincelDecrease Brush Hardness Reducir dureza del pincelIncrease 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 UsarIn Front DelanteBehind Detrásdiff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsvindex caff033e3..12bafb51d 100644--- a/crates/ui-egui/src/i18n/fr.tsv+++ b/crates/ui-egui/src/i18n/fr.tsv@@ -3239,6 +3239,12 @@ curves Smooth LisserIncrease Brush Size Augmenter la taille du pinceauDecrease Brush Hardness Réduire la dureté du pinceauIncrease 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 UtiliserIn Front DevantBehind Derrièrediff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsvindex c2b1e3e29..c670182e6 100644--- a/crates/ui-egui/src/i18n/hu.tsv+++ b/crates/ui-egui/src/i18n/hu.tsv@@ -4150,6 +4150,12 @@ cameraRaw Yellow SárgaIncrease Brush Size Ecsetméret növeléseDecrease Brush Hardness Ecsetkeménység csökkentéseIncrease 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álatIn Front ElölBehind Mögöttdiff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsvindex 9836f2262..5142781b0 100644--- a/crates/ui-egui/src/i18n/id.tsv+++ b/crates/ui-egui/src/i18n/id.tsv@@ -3226,6 +3226,12 @@ curves Smooth HaluskanIncrease Brush Size Perbesar ukuran kuasDecrease Brush Hardness Kurangi kekerasan kuasIncrease 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 GunakanIn Front Di DepanBehind Di Belakangdiff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsvindex 09e20955c..9ccb67dd8 100644--- a/crates/ui-egui/src/i18n/it.tsv+++ b/crates/ui-egui/src/i18n/it.tsv@@ -4348,6 +4348,12 @@ shape Appearance AspettoGPU 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 UsaIn Front DavantiBehind Dietrodiff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsvindex f43978bdf..372cd0690 100644--- a/crates/ui-egui/src/i18n/ja.tsv+++ b/crates/ui-egui/src/i18n/ja.tsv@@ -3908,6 +3908,12 @@ 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 背面diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsvindex 43dcbd718..60f50975a 100644--- a/crates/ui-egui/src/i18n/ko.tsv+++ b/crates/ui-egui/src/i18n/ko.tsv@@ -3412,6 +3412,12 @@ 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 뒤diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsvindex 2bbe40581..18c37120e 100644--- a/crates/ui-egui/src/i18n/nl.tsv+++ b/crates/ui-egui/src/i18n/nl.tsv@@ -3991,6 +3991,12 @@ curves Smooth Vloeiend makenIncrease Brush Size Penseelgrootte vergrotenDecrease Brush Hardness Penseelhardheid verlagenIncrease 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 GebruikenIn Front VoorBehind Achterdiff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsvindex e086a07d9..ca1f466d8 100644--- a/crates/ui-egui/src/i18n/pl.tsv+++ b/crates/ui-egui/src/i18n/pl.tsv@@ -3830,6 +3830,12 @@ curves Smooth WygładźIncrease Brush Size Zwiększ rozmiar pędzlaDecrease Brush Hardness Zmniejsz twardość pędzlaIncrease 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żyjIn Front Z przoduBehind Z tyłudiff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsvindex cb16fa032..6f98a4362 100644--- a/crates/ui-egui/src/i18n/pt-br.tsv+++ b/crates/ui-egui/src/i18n/pt-br.tsv@@ -4021,6 +4021,12 @@ layerLabel No Color Sem corIncrease Brush Size Aumentar tamanho do pincelDecrease Brush Hardness Diminuir dureza do pincelIncrease 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 UsarIn Front Na frenteBehind Atrásdiff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsvindex 50b008114..1fd816bf9 100644--- a/crates/ui-egui/src/i18n/ru.tsv+++ b/crates/ui-egui/src/i18n/ru.tsv@@ -3204,6 +3204,12 @@ 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 CommandUse ИспользоватьIn Front Спередиdiff --git a/crates/ui-egui/src/i18n/sr.tsv b/crates/ui-egui/src/i18n/sr.tsvindex 389469a2f..a9ff4435b 100644--- a/crates/ui-egui/src/i18n/sr.tsv+++ b/crates/ui-egui/src/i18n/sr.tsv@@ -4304,6 +4304,12 @@ shape Appearance IzgledIncrease Brush Size Povećaj veličinu četkiceDecrease Brush Hardness Smanji tvrdoću četkiceIncrease 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 KoristiIn Front IspredBehind Izadiff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsvindex c27af05e4..fb4b426c2 100644--- a/crates/ui-egui/src/i18n/tr.tsv+++ b/crates/ui-egui/src/i18n/tr.tsv@@ -3961,6 +3961,12 @@ cameraData Lens LensIncrease Brush Size Fırça boyutunu büyütDecrease Brush Hardness Fırça sertliğini azaltIncrease 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 KullanIn Front ÖndeBehind Arkadadiff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsvindex 9f68595f5..d8510183d 100644--- a/crates/ui-egui/src/i18n/uk.tsv+++ b/crates/ui-egui/src/i18n/uk.tsv@@ -3939,6 +3939,12 @@ 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 Ззадуdiff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsvindex e6f631276..a1106bbbc 100644--- a/crates/ui-egui/src/i18n/vi.tsv+++ b/crates/ui-egui/src/i18n/vi.tsv@@ -3718,6 +3718,12 @@ curves Smooth Làm mượtIncrease 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ùngIn Front Phía trướcBehind Phía saudiff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsvindex 418d631a0..c10a287de 100644--- a/crates/ui-egui/src/i18n/zh-hans.tsv+++ b/crates/ui-egui/src/i18n/zh-hans.tsv@@ -2854,6 +2854,12 @@ 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 后面diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsvindex cffc27969..82015e575 100644--- a/crates/ui-egui/src/i18n/zh-hant.tsv+++ b/crates/ui-egui/src/i18n/zh-hant.tsv@@ -2839,6 +2839,12 @@ 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 後面diff --git a/crates/ui-egui/src/prefs_ui.rs b/crates/ui-egui/src/prefs_ui.rsindex 7857b0f8f..a3f9f26c7 100644--- a/crates/ui-egui/src/prefs_ui.rs+++ b/crates/ui-egui/src/prefs_ui.rs@@ -1566,7 +1566,7 @@ fn field_visible(section: &str, obj: &Map<String, Value>, k: &str, query: &str)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"))+ || (section == "performance" && matches!(k, "useGpu" | "gpuBackend" | "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))@@ -1598,10 +1598,37 @@ fn section_fields(if section == "performance" && (query.is_empty() || preference_matches(section, "renderingMode", &query)) {rendering_mode_row(ui, obj);}+ if section == "performance" && (query.is_empty() || preference_matches(section, "memoryUsageMb", &query)) {+ memory_usage_row(ui, obj);+ }keys.retain(|k| field_visible(section, obj, k, &query));egui::Grid::new(("prefs-grid", section)).num_columns(2).spacing([14.0, 7.0]).show(ui, |ui| field_rows(ui, section, obj, keys, lang));}+/// Explain the per-document RAM limit separately from the graphics-memory preference.+fn memory_usage_row(ui: &mut egui::Ui, obj: &mut Map<String, Value>) {+ let t = Tokens::get(ui.ctx());+ ui.group(|ui| {+ ui.label(RichText::new(tl!("Memory Usage")).strong());+ let mut mb = obj.get("memoryUsageMb").and_then(Value::as_u64).unwrap_or(8192);+ ui.horizontal(|ui| {+ ui.label(tl!("Per-document RAM limit (MB)"));+ if ui.add(egui::DragValue::new(&mut mb).range(256..=1_048_576).suffix(" MB")).changed() {+ obj.insert("memoryUsageMb".into(), json!(mb));+ }+ });+ if let Some(ram) = crate::gpu_canvas::physical_memory().filter(|n| *n > 0) {+ let installed = ram / (1 << 20);+ let percent = mb as f64 * 100.0 / (ram as f64 / (1 << 20) as f64);+ ui.label(crate::i18n::fmt(tl!("Installed RAM: {ram} MB; this limit: {percent}%"), &[("ram", &installed.to_string()), ("percent", &format!("{percent:.1}"))]));+ }+ ui.label(RichText::new(tl!("Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded.")).color(t.text_dim));+ ui.label(RichText::new(tl!("Applies immediately when saved. Memory is not reserved in advance.")).color(t.text_dim));+ ui.label(RichText::new(tl!("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.")).color(t.text_dim));+ });+ ui.add_space(8.0);+}+/// One grid row per setting in `keys` (already filtered by `field_visible`).fn field_rows(ui: &mut egui::Ui, section: &str, obj: &mut Map<String, Value>, keys: Vec<String>, lang: crate::i18n::Lang) {let t = Tokens::get(ui.ctx());@@ -2486,6 +2513,22 @@ mod shortcut_set_tests;#[cfg(test)]mod tests {+ #[test]+ fn memory_usage_has_a_dedicated_explanation_and_keeps_its_value() {+ use egui_kittest::{Harness, kittest::Queryable};+ let values = json!({"memoryUsageMb":50000}).as_object().unwrap().clone();+ assert!(!field_visible("performance", &values, "memoryUsageMb", ""));+ let mut h = Harness::builder()+ .with_size(vec2(680.0, 350.0))+ .build_ui_state(|ui, values| section_fields(ui, "performance", values, &["memoryUsageMb".into()], crate::i18n::Lang::EN, None, ""), values);+ h.run_steps(2);+ h.get_by_label("Memory Usage");+ h.get_by_label("Per-document RAM limit (MB)");+ h.get_by_label("Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded.");+ h.get_by_label("Applies immediately when saved. Memory is not reserved in advance.");+ assert_eq!(h.state()["memoryUsageMb"], 50000);+ }+#[test]fn colour_preferences_take_a_typed_hex_value() {// #668: the canvas colour (and every colour preference) showed its hex but couldn't take one.