PhotoCraft: An open-source, photo editor written by scratch in pure Rust
feat(ui): System Info shows the graphics card's own memory
Finn Newickdf023c803ac0
diff --git a/crates/ui-egui/src/gpu_canvas.rs b/crates/ui-egui/src/gpu_canvas.rsindex 012bcf801..3e9ce4bff 100644--- a/crates/ui-egui/src/gpu_canvas.rs+++ b/crates/ui-egui/src/gpu_canvas.rs@@ -1036,6 +1036,14 @@ impl GpuInfo {let template = "Driver: {driver}";crate::i18n::fmt(tl!(template), &[("driver", &or(&self.driver, "unknown"))])},+ ];+ // The card's own memory caps the GPU budgets, so it explains a huge canvas falling back+ // to the CPU. Only discrete cards report one (integrated GPUs share system memory).+ if let Some(mb) = self.video_memory_mb {+ let template = "Graphics memory: {size}";+ v.push(crate::i18n::fmt(tl!(template), &[("size", &crate::chrome_ui::fmt_bytes(mb.saturating_mul(1 << 20)))]));+ }+ v.extend([{let template = "GPU backend preference: {backend}";crate::i18n::fmt(tl!(template), &[("backend", &or(&self.preference, "auto"))])@@ -1059,7 +1067,7 @@ impl GpuInfo {};crate::i18n::fmt(tl!(template), &[("renderer", tl!(renderer))])},- ];+ ]);if let Some(f) = &self.fallback {v.push({let template = "Fallback: {reason}";@@ -2446,6 +2454,19 @@ mod tests {assert_eq!(detect_video_memory(0xdead, 0xbeef), None, "no such adapter");}+ /// System Info names the card's own memory, after the driver, when the card reports one; an+ /// integrated GPU or an unknown card shows no such line.+ #[test]+ fn system_info_shows_the_cards_memory() {+ let info = GpuInfo { adapter: "Card".into(), driver: "Driver 1".into(), video_memory_mb: Some(8192), ..Default::default() };+ let lines = info.lines();+ assert_eq!(lines.get(2).map(String::as_str), Some("Driver: Driver 1"));+ assert_eq!(lines.get(3).map(String::as_str), Some("Graphics memory: 8.0G"));+ let none = GpuInfo { video_memory_mb: None, ..info }.lines();+ assert!(none.iter().all(|l| !l.starts_with("Graphics memory")), "{none:?}");+ assert_eq!(none.len() + 1, lines.len());+ }+/// The Linux reader finds the card by its PCI ids in a `/sys/class/drm`-shaped folder and reads/// amdgpu's VRAM size; a card without one, unreadable ids or a malformed size give nothing.#[test]diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsvindex f3fb8c8c4..12392ac3a 100644--- a/crates/ui-egui/src/i18n/cs.tsv+++ b/crates/ui-egui/src/i18n/cs.tsv@@ -3813,6 +3813,7 @@ navigator Zoom ZvětšeníGPU Memory Full Paměť GPU je plnáThe layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. Vrstvy potřebují {needed} paměti GPU a mohou zabrat {budget}, takže úpravy, které překreslují celý dokument, to dělají na CPU. Kliknutím nastavíte Paměť GPU.GPU memory budget: {budget} Rozpočet paměti GPU: {budget}+ Graphics memory: {size} Paměť GPU: {size}This document's layers: {needed} of {budget} for layers Vrstvy tohoto dokumentu: {needed} z {budget} pro vrstvyThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Vrstvy tohoto dokumentu potřebují {needed}, ale mohou zabrat {budget}: překreslení celého dokumentu probíhá na CPUGPU Memory (MB, 0 = Automatic) Paměť GPU (MB, 0 = Automaticky)diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsvindex 48ebfba67..4017c5de0 100644--- a/crates/ui-egui/src/i18n/de.tsv+++ b/crates/ui-egui/src/i18n/de.tsv@@ -3207,6 +3207,7 @@ curves Smooth GlättenGPU Memory Full GPU-Speicher vollThe layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. Die Ebenen brauchen {needed} GPU-Speicher und dürfen {budget} belegen, daher zeichnen Änderungen, die das ganze Dokument neu zeichnen, auf der CPU. Klicken, um den GPU-Speicher einzustellen.GPU memory budget: {budget} GPU-Speicherbudget: {budget}+ Graphics memory: {size} Grafikspeicher: {size}This document's layers: {needed} of {budget} for layers Ebenen dieses Dokuments: {needed} von {budget} für EbenenThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Die Ebenen dieses Dokuments brauchen {needed}, dürfen aber {budget} belegen: Das ganze Dokument wird auf der CPU neu gezeichnetGPU Memory (MB, 0 = Automatic) GPU-Speicher (MB, 0 = Automatisch)diff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsvindex f2c67c2c4..84afec75b 100644--- a/crates/ui-egui/src/i18n/el.tsv+++ b/crates/ui-egui/src/i18n/el.tsv@@ -3905,6 +3905,7 @@ curves Smooth ΕξομάλυνσηGPU Memory Full Η μνήμη GPU είναι πλήρηςThe layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. Τα επίπεδα χρειάζονται {needed} μνήμης GPU και μπορούν να καταλάβουν {budget}, οπότε οι αλλαγές που ξανασχεδιάζουν όλο το έγγραφο το κάνουν στη CPU. Κάντε κλικ για να ορίσετε τη Μνήμη GPU.GPU memory budget: {budget} Όριο μνήμης GPU: {budget}+ Graphics memory: {size} Μνήμη γραφικών: {size}This document's layers: {needed} of {budget} for layers Επίπεδα αυτού του εγγράφου: {needed} από {budget} για επίπεδαThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Τα επίπεδα αυτού του εγγράφου χρειάζονται {needed} αλλά μπορούν να καταλάβουν {budget}: η επανασχεδίαση όλου του εγγράφου γίνεται στη CPUGPU Memory (MB, 0 = Automatic) Μνήμη GPU (MB, 0 = Αυτόματο)diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsvindex 45804fa2a..98bf653f6 100644--- a/crates/ui-egui/src/i18n/es.tsv+++ b/crates/ui-egui/src/i18n/es.tsv@@ -4167,6 +4167,7 @@ navigator Zoom ZoomGPU Memory Full Memoria de GPU llenaThe layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. Las capas necesitan {needed} de memoria de GPU y pueden ocupar {budget}, así que las ediciones que redibujan todo el documento lo hacen en la CPU. Haga clic para ajustar Memoria de GPU.GPU memory budget: {budget} Presupuesto de memoria de GPU: {budget}+ Graphics memory: {size} Memoria gráfica: {size}This document's layers: {needed} of {budget} for layers Capas de este documento: {needed} de {budget} para capasThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Las capas de este documento necesitan {needed} pero pueden ocupar {budget}: los redibujados de todo el documento usan la CPUGPU Memory (MB, 0 = Automatic) Memoria de GPU (MB, 0 = Automático)diff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsvindex 3e3451e09..a11c3f88f 100644--- a/crates/ui-egui/src/i18n/fr.tsv+++ b/crates/ui-egui/src/i18n/fr.tsv@@ -3210,6 +3210,7 @@ curves Smooth LisserGPU Memory Full Mémoire GPU pleineThe layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. Les calques ont besoin de {needed} de mémoire GPU et peuvent en occuper {budget} : les modifications qui redessinent tout le document le font sur le CPU. Cliquez pour régler Mémoire GPU.GPU memory budget: {budget} Budget de mémoire GPU : {budget}+ Graphics memory: {size} Mémoire graphique : {size}This document's layers: {needed} of {budget} for layers Calques de ce document : {needed} sur {budget} pour les calquesThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Les calques de ce document ont besoin de {needed} mais peuvent occuper {budget} : le document entier se redessine sur le CPUGPU Memory (MB, 0 = Automatic) Mémoire GPU (Mo, 0 = Automatique)diff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsvindex 9dc9a47fb..1578544d5 100644--- a/crates/ui-egui/src/i18n/hu.tsv+++ b/crates/ui-egui/src/i18n/hu.tsv@@ -4124,6 +4124,7 @@ cameraRaw Yellow SárgaGPU Memory Full GPU-memória megteltThe layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. A rétegeknek {needed} GPU-memória kell, és {budget} foglalhatnak, ezért a teljes dokumentumot újrarajzoló szerkesztések a CPU-n futnak. Kattints a GPU-memória beállításához.GPU memory budget: {budget} GPU-memóriakeret: {budget}+ Graphics memory: {size} Grafikus memória: {size}This document's layers: {needed} of {budget} for layers A dokumentum rétegei: {needed} / {budget} a rétegeknekThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU A dokumentum rétegeinek {needed} kell, de {budget} foglalhatnak: a teljes dokumentum újrarajzolása a CPU-n futGPU Memory (MB, 0 = Automatic) GPU-memória (MB, 0 = Automatikus)diff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsvindex 81e850f29..da3249e86 100644--- a/crates/ui-egui/src/i18n/id.tsv+++ b/crates/ui-egui/src/i18n/id.tsv@@ -3197,6 +3197,7 @@ curves Smooth HaluskanGPU Memory Full Memori GPU PenuhThe layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. Layer membutuhkan {needed} memori GPU dan boleh memakai {budget}, sehingga suntingan yang menggambar ulang seluruh dokumen melakukannya di CPU. Klik untuk mengatur Memori GPU.GPU memory budget: {budget} Anggaran memori GPU: {budget}+ Graphics memory: {size} Memori grafis: {size}This document's layers: {needed} of {budget} for layers Layer dokumen ini: {needed} dari {budget} untuk layerThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Layer dokumen ini membutuhkan {needed} tetapi boleh memakai {budget}: penggambaran ulang seluruh dokumen memakai CPUGPU Memory (MB, 0 = Automatic) Memori GPU (MB, 0 = Otomatis)diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsvindex c097ded29..694850b58 100644--- a/crates/ui-egui/src/i18n/it.tsv+++ b/crates/ui-egui/src/i18n/it.tsv@@ -4326,6 +4326,7 @@ shape Appearance AspettoGPU Memory Full Memoria GPU pienaThe layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. I livelli richiedono {needed} di memoria GPU e possono occuparne {budget}, quindi le modifiche che ridisegnano tutto il documento lo fanno sulla CPU. Fai clic per impostare Memoria GPU.GPU memory budget: {budget} Budget di memoria GPU: {budget}+ Graphics memory: {size} Memoria grafica: {size}This document's layers: {needed} of {budget} for layers Livelli di questo documento: {needed} su {budget} per i livelliThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU I livelli di questo documento richiedono {needed} ma possono occupare {budget}: i ridisegni dell'intero documento usano la CPUGPU Memory (MB, 0 = Automatic) Memoria GPU (MB, 0 = Automatico)diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsvindex b46096512..43c2ac3d1 100644--- a/crates/ui-egui/src/i18n/ja.tsv+++ b/crates/ui-egui/src/i18n/ja.tsv@@ -3881,6 +3881,7 @@ curves Smooth スムーズGPU Memory Full GPU メモリ不足The layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. レイヤーには {needed} の GPU メモリが必要ですが、使えるのは {budget} のため、ドキュメント全体を再描画する編集は CPU で行われます。クリックして GPU メモリを設定します。GPU memory budget: {budget} GPU メモリ予算: {budget}+ Graphics memory: {size} グラフィックメモリ: {size}This document's layers: {needed} of {budget} for layers このドキュメントのレイヤー: レイヤー用 {budget} のうち {needed}This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU このドキュメントのレイヤーには {needed} が必要ですが、使えるのは {budget} です: ドキュメント全体の再描画は CPU で行われますGPU Memory (MB, 0 = Automatic) GPU メモリ(MB、0 = 自動)diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsvindex 361cef2e9..4125261c1 100644--- a/crates/ui-egui/src/i18n/ko.tsv+++ b/crates/ui-egui/src/i18n/ko.tsv@@ -3383,6 +3383,7 @@ curves Smooth 매끄럽게GPU Memory Full GPU 메모리 부족The layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. 레이어에 GPU 메모리 {needed}가 필요하지만 {budget}만 사용할 수 있어 문서 전체를 다시 그리는 편집은 CPU에서 처리됩니다. 클릭하여 GPU 메모리를 설정합니다.GPU memory budget: {budget} GPU 메모리 예산: {budget}+ Graphics memory: {size} 그래픽 메모리: {size}This document's layers: {needed} of {budget} for layers 이 문서의 레이어: 레이어용 {budget} 중 {needed}This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU 이 문서의 레이어에 {needed}가 필요하지만 {budget}만 사용할 수 있습니다: 문서 전체 다시 그리기는 CPU를 사용합니다GPU Memory (MB, 0 = Automatic) GPU 메모리(MB, 0 = 자동)diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsvindex f1ac67961..a7d71ad5e 100644--- a/crates/ui-egui/src/i18n/nl.tsv+++ b/crates/ui-egui/src/i18n/nl.tsv@@ -3965,6 +3965,7 @@ curves Smooth Vloeiend makenGPU Memory Full GPU-geheugen volThe layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. De lagen hebben {needed} GPU-geheugen nodig en mogen {budget} gebruiken, dus bewerkingen die het hele document opnieuw tekenen doen dat op de CPU. Klik om GPU-geheugen in te stellen.GPU memory budget: {budget} GPU-geheugenbudget: {budget}+ Graphics memory: {size} Grafisch geheugen: {size}This document's layers: {needed} of {budget} for layers Lagen van dit document: {needed} van {budget} voor lagenThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU De lagen van dit document hebben {needed} nodig maar mogen {budget} gebruiken: het hele document wordt op de CPU opnieuw getekendGPU Memory (MB, 0 = Automatic) GPU-geheugen (MB, 0 = Automatisch)diff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsvindex 04eb15609..f7971a728 100644--- a/crates/ui-egui/src/i18n/pl.tsv+++ b/crates/ui-egui/src/i18n/pl.tsv@@ -3803,6 +3803,7 @@ curves Smooth WygładźGPU Memory Full Pamięć GPU pełnaThe layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. Warstwy potrzebują {needed} pamięci GPU i mogą zająć {budget}, więc edycje, które odświeżają cały dokument, robią to na CPU. Kliknij, aby ustawić Pamięć GPU.GPU memory budget: {budget} Budżet pamięci GPU: {budget}+ Graphics memory: {size} Pamięć graficzna: {size}This document's layers: {needed} of {budget} for layers Warstwy tego dokumentu: {needed} z {budget} na warstwyThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Warstwy tego dokumentu potrzebują {needed}, ale mogą zająć {budget}: odświeżanie całego dokumentu używa CPUGPU Memory (MB, 0 = Automatic) Pamięć GPU (MB, 0 = Automatycznie)diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsvindex 8d6b88fb5..3e05f1fa1 100644--- a/crates/ui-egui/src/i18n/pt-br.tsv+++ b/crates/ui-egui/src/i18n/pt-br.tsv@@ -3995,6 +3995,7 @@ layerLabel No Color Sem corGPU Memory Full Memória da GPU cheiaThe layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. As camadas precisam de {needed} de memória da GPU e podem ocupar {budget}, então as edições que redesenham o documento inteiro fazem isso na CPU. Clique para ajustar Memória da GPU.GPU memory budget: {budget} Orçamento de memória da GPU: {budget}+ Graphics memory: {size} Memória gráfica: {size}This document's layers: {needed} of {budget} for layers Camadas deste documento: {needed} de {budget} para camadasThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU As camadas deste documento precisam de {needed} mas podem ocupar {budget}: o documento inteiro é redesenhado na CPUGPU Memory (MB, 0 = Automatic) Memória da GPU (MB, 0 = Automático)diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsvindex 9d733f11a..5c08e1cfc 100644--- a/crates/ui-egui/src/i18n/ru.tsv+++ b/crates/ui-egui/src/i18n/ru.tsv@@ -3175,6 +3175,7 @@ curves Smooth СгладитьGPU Memory Full Память GPU заполненаThe layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. Слоям нужно {needed} памяти GPU, а занимать они могут {budget}, поэтому правки, перерисовывающие весь документ, выполняются на CPU. Нажмите, чтобы задать «Память GPU».GPU memory budget: {budget} Бюджет памяти GPU: {budget}+ Graphics memory: {size} Видеопамять: {size}This document's layers: {needed} of {budget} for layers Слои этого документа: {needed} из {budget} для слоёвThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Слоям этого документа нужно {needed}, но занимать они могут {budget}: весь документ перерисовывается на CPUGPU Memory (MB, 0 = Automatic) Память GPU (МБ, 0 = автоматически)diff --git a/crates/ui-egui/src/i18n/sr.tsv b/crates/ui-egui/src/i18n/sr.tsvindex d384c9bad..48b904e82 100644--- a/crates/ui-egui/src/i18n/sr.tsv+++ b/crates/ui-egui/src/i18n/sr.tsv@@ -4278,6 +4278,7 @@ shape Appearance IzgledGPU Memory Full GPU memorija je punaThe layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. Slojevima treba {needed} GPU memorije, a smeju da zauzmu {budget}, pa izmene koje ponovo iscrtavaju ceo dokument to rade na CPU-u. Kliknite da podesite GPU memoriju.GPU memory budget: {budget} Budžet GPU memorije: {budget}+ Graphics memory: {size} Grafička memorija: {size}This document's layers: {needed} of {budget} for layers Slojevi ovog dokumenta: {needed} od {budget} za slojeveThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Slojevima ovog dokumenta treba {needed}, a smeju da zauzmu {budget}: ceo dokument se ponovo iscrtava na CPU-uGPU Memory (MB, 0 = Automatic) GPU memorija (MB, 0 = Automatski)diff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsvindex 5c35aba71..29a50129f 100644--- a/crates/ui-egui/src/i18n/tr.tsv+++ b/crates/ui-egui/src/i18n/tr.tsv@@ -3935,6 +3935,7 @@ cameraData Lens LensGPU Memory Full GPU Belleği DoluThe layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. Katmanların {needed} GPU belleğine ihtiyacı var ve en fazla {budget} kullanabilirler; bu yüzden tüm belgeyi yeniden çizen düzenlemeler bunu CPU'da yapar. GPU Belleği'ni ayarlamak için tıklayın.GPU memory budget: {budget} GPU bellek bütçesi: {budget}+ Graphics memory: {size} Grafik belleği: {size}This document's layers: {needed} of {budget} for layers Bu belgenin katmanları: katmanlar için {budget} içinden {needed}This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Bu belgenin katmanlarının {needed} belleğe ihtiyacı var ama en fazla {budget} kullanabilirler: tüm belgenin yeniden çizimi CPU'yu kullanırGPU Memory (MB, 0 = Automatic) GPU Belleği (MB, 0 = Otomatik)diff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsvindex cb6f883eb..c1187289e 100644--- a/crates/ui-egui/src/i18n/uk.tsv+++ b/crates/ui-egui/src/i18n/uk.tsv@@ -3904,6 +3904,7 @@ curves Smooth ЗгладитиGPU Memory Full Пам'ять GPU заповненаThe layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. Шарам потрібно {needed} пам'яті GPU, а займати вони можуть {budget}, тому зміни, що перемальовують увесь документ, виконуються на CPU. Натисніть, щоб задати «Пам'ять GPU».GPU memory budget: {budget} Бюджет пам'яті GPU: {budget}+ Graphics memory: {size} Відеопам'ять: {size}This document's layers: {needed} of {budget} for layers Шари цього документа: {needed} з {budget} для шарівThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Шарам цього документа потрібно {needed}, але займати вони можуть {budget}: увесь документ перемальовується на CPUGPU Memory (MB, 0 = Automatic) Пам'ять GPU (МБ, 0 = автоматично)diff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsvindex e2e55ab1b..41aaf33a6 100644--- a/crates/ui-egui/src/i18n/vi.tsv+++ b/crates/ui-egui/src/i18n/vi.tsv@@ -3691,6 +3691,7 @@ curves Smooth Làm mượtGPU Memory Full Bộ nhớ GPU đầyThe layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. Các lớp cần {needed} bộ nhớ GPU và chỉ được dùng {budget}, nên những chỉnh sửa vẽ lại toàn bộ tài liệu sẽ làm trên CPU. Nhấp để đặt Bộ nhớ GPU.GPU memory budget: {budget} Ngân sách bộ nhớ GPU: {budget}+ Graphics memory: {size} Bộ nhớ đồ họa: {size}This document's layers: {needed} of {budget} for layers Các lớp của tài liệu này: {needed} trên {budget} dành cho lớpThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Các lớp của tài liệu này cần {needed} nhưng chỉ được dùng {budget}: vẽ lại toàn bộ tài liệu dùng CPUGPU Memory (MB, 0 = Automatic) Bộ nhớ GPU (MB, 0 = Tự động)diff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsvindex eebeabaa6..f7f32d9d4 100644--- a/crates/ui-egui/src/i18n/zh-hans.tsv+++ b/crates/ui-egui/src/i18n/zh-hans.tsv@@ -2821,6 +2821,7 @@ curves Smooth 平滑GPU Memory Full GPU 内存已满The layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. 图层需要 {needed} GPU 内存,但只能占用 {budget},因此重绘整个文档的编辑会在 CPU 上进行。点击以设置 GPU 内存。GPU memory budget: {budget} GPU 内存预算:{budget}+ Graphics memory: {size} 显存:{size}This document's layers: {needed} of {budget} for layers 此文档的图层:图层可用 {budget} 中的 {needed}This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU 此文档的图层需要 {needed},但只能占用 {budget}:整个文档的重绘使用 CPUGPU Memory (MB, 0 = Automatic) GPU 内存(MB,0 = 自动)diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsvindex b35556b6f..abafec098 100644--- a/crates/ui-egui/src/i18n/zh-hant.tsv+++ b/crates/ui-egui/src/i18n/zh-hant.tsv@@ -2806,6 +2806,7 @@ curves Smooth 平滑GPU Memory Full GPU 記憶體已滿The layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. 圖層需要 {needed} GPU 記憶體,但只能佔用 {budget},因此重繪整份文件的編輯會在 CPU 上進行。按一下以設定 GPU 記憶體。GPU memory budget: {budget} GPU 記憶體預算:{budget}+ Graphics memory: {size} 顯示記憶體:{size}This document's layers: {needed} of {budget} for layers 此文件的圖層:圖層可用 {budget} 中的 {needed}This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU 此文件的圖層需要 {needed},但只能佔用 {budget}:整份文件的重繪使用 CPUGPU Memory (MB, 0 = Automatic) GPU 記憶體(MB,0 = 自動)