diff --git a/content/de/surfaces/native-window.md b/content/de/surfaces/native-window.md index 91e03c9e..9ca075d7 100644 --- a/content/de/surfaces/native-window.md +++ b/content/de/surfaces/native-window.md @@ -83,7 +83,10 @@ Unter Linux (X11 und Wayland) zeichnet `Config{GPU: true}` Frames mit Vulkan. - **Genauigkeit:** auf Software-Vulkan (lavapipe) sind die Pixel Byte für Byte die des CPU-Pfads, live auf beiden Protokollen belegt: das vom X-Server zurückgelesene Fenster und der vom Fenster übergebene `wl_shm`-Puffer sind - gleich denen des CPU-Pfads. Eine Hardware-GPU wurde noch nicht gemessen. + gleich denen des CPU-Pfads. go-gfx/gpu2d hat seinen Vulkan-Renderer auf einer + Hardware-GPU gemessen (AMD Radeon PRO W7700, RADV): `Draw` ist bei 1080p + 52-mal schneller als das CPU-`Rasterize`; das Fenster selbst, mit seiner Kopie + in den Framebuffer, wurde auf Hardware nicht gemessen. - **Rückfall:** ist Vulkan nicht verfügbar oder wird ein Frame abgelehnt (für das Gerät zu groß, Gerät verloren), zeichnet das Fenster auf der CPU und läuft weiter. `GPUError()` am Back-end nennt den Grund, und jeder spätere Frame ist diff --git a/content/en/surfaces/native-window.md b/content/en/surfaces/native-window.md index 24149a3e..6e335098 100644 --- a/content/en/surfaces/native-window.md +++ b/content/en/surfaces/native-window.md @@ -82,7 +82,10 @@ On Linux (X11 and Wayland), `Config{GPU: true}` draws frames with Vulkan. - **Exactness:** on software Vulkan (lavapipe) the pixels are the CPU path's, byte for byte, proven live on both protocols: the window read back from the X server, and the `wl_shm` buffer the window committed, equal the CPU path's. - No hardware GPU has been measured yet. + go-gfx/gpu2d measured its Vulkan renderer on a hardware GPU (AMD Radeon PRO + W7700, RADV): `Draw` is 52 times faster than the CPU `Rasterize` at 1080p; the + window itself, with its copy into the framebuffer, has not been measured on + hardware. - **Fallback:** where Vulkan is unavailable, or a frame is refused (too large for the device, device lost), the window draws on the CPU and keeps running. `GPUError()` on the back-end says why, and every later frame is a CPU frame. diff --git a/content/es/surfaces/native-window.md b/content/es/surfaces/native-window.md index 72b60211..258b5989 100644 --- a/content/es/surfaces/native-window.md +++ b/content/es/surfaces/native-window.md @@ -88,7 +88,10 @@ En Linux (X11 y Wayland), `Config{GPU: true}` dibuja los fotogramas con Vulkan. - **Exactitud:** en Vulkan por software (lavapipe) los píxeles son los del camino de CPU, byte a byte, demostrado en vivo en ambos protocolos: la ventana leída de vuelta del servidor X y el búfer `wl_shm` que la ventana confirmó son - iguales a los del camino de CPU. Aún no se ha medido ninguna GPU de hardware. + iguales a los del camino de CPU. go-gfx/gpu2d midió su renderizador Vulkan en + una GPU de hardware (AMD Radeon PRO W7700, RADV): `Draw` es 52 veces más + rápido que el `Rasterize` de CPU a 1080p; la ventana en sí, con su copia al + framebuffer, no se ha medido en hardware. - **Alternativa:** cuando Vulkan no está disponible, o se rechaza un fotograma (demasiado grande para el dispositivo, dispositivo perdido), la ventana dibuja en la CPU y sigue funcionando. `GPUError()` en el back-end dice el motivo, y diff --git a/content/fr/surfaces/native-window.md b/content/fr/surfaces/native-window.md index caad6449..8c11bfd4 100644 --- a/content/fr/surfaces/native-window.md +++ b/content/fr/surfaces/native-window.md @@ -83,7 +83,10 @@ Sous Linux (X11 et Wayland), `Config{GPU: true}` dessine les images avec Vulkan. - **Exactitude :** sur Vulkan logiciel (lavapipe), les pixels sont ceux du chemin CPU, octet pour octet, prouvé en direct sur les deux protocoles : la fenêtre relue depuis le serveur X, et le tampon `wl_shm` validé par la fenêtre, sont - égaux à ceux du chemin CPU. Aucun GPU matériel n'a encore été mesuré. + égaux à ceux du chemin CPU. go-gfx/gpu2d a mesuré son moteur Vulkan sur un GPU + matériel (AMD Radeon PRO W7700, RADV) : `Draw` est 52 fois plus rapide que le + `Rasterize` CPU en 1080p ; la fenêtre elle-même, avec sa copie dans le + framebuffer, n'a pas été mesurée sur du matériel. - **Repli :** quand Vulkan est indisponible, ou qu'une image est refusée (trop grande pour le périphérique, périphérique perdu), la fenêtre dessine sur le CPU et continue. `GPUError()` sur le back-end en donne la raison, et toute image diff --git a/content/ja/surfaces/native-window.md b/content/ja/surfaces/native-window.md index 73a4abc5..8972af7a 100644 --- a/content/ja/surfaces/native-window.md +++ b/content/ja/surfaces/native-window.md @@ -75,7 +75,9 @@ Linux(X11 と Wayland)では、`Config{GPU: true}` でフレームを Vulkan で - **正確さ:** ソフトウェア Vulkan(lavapipe)では、ピクセルは CPU パスとバイト単位で 同一です。両方のプロトコルで実機上で確認済みで、X サーバーから読み戻したウィンドウと、 ウィンドウがコミットした `wl_shm` バッファは、CPU パスのものと一致します。 - ハードウェア GPU ではまだ測定していません。 + go-gfx/gpu2d は自身の Vulkan レンダラーをハードウェア GPU(AMD Radeon PRO W7700、RADV)で + 測定しており、1080p で `Draw` は CPU の `Rasterize` より 52 倍高速です。ウィンドウ自体 + (フレームバッファへのコピーを含む)はハードウェア上では測定していません。 - **フォールバック:** Vulkan が使えない場合、またはフレームが拒否された場合(デバイスに 対して大きすぎる、デバイスの喪失)、ウィンドウは CPU で描画して動作を続けます。 理由はバックエンドの `GPUError()` で分かり、以後のフレームはすべて CPU フレームです。 diff --git a/content/ko/surfaces/native-window.md b/content/ko/surfaces/native-window.md index 9c3fc5aa..093e80e3 100644 --- a/content/ko/surfaces/native-window.md +++ b/content/ko/surfaces/native-window.md @@ -77,8 +77,10 @@ Linux(X11과 Wayland)에서는 `Config{GPU: true}`로 프레임을 Vulkan으로 공유하는 것은 아직 없습니다. - **정확성:** 소프트웨어 Vulkan(lavapipe)에서 픽셀은 CPU 경로와 바이트 단위로 같으며, 두 프로토콜 모두에서 실제로 증명했습니다. X 서버에서 다시 읽은 창과 - 창이 커밋한 `wl_shm` 버퍼가 CPU 경로의 것과 같습니다. 하드웨어 GPU는 아직 - 측정하지 않았습니다. + 창이 커밋한 `wl_shm` 버퍼가 CPU 경로의 것과 같습니다. go-gfx/gpu2d는 자체 + Vulkan 렌더러를 하드웨어 GPU(AMD Radeon PRO W7700, RADV)에서 측정했으며, + 1080p에서 `Draw`는 CPU `Rasterize`보다 52배 빠릅니다. 프레임버퍼로의 복사를 + 포함한 창 자체는 하드웨어에서 측정하지 않았습니다. - **대체:** Vulkan을 쓸 수 없거나 프레임이 거부되면(장치에 비해 너무 큼, 장치 손실) 창은 CPU로 그리며 계속 동작합니다. 이유는 백엔드의 `GPUError()`가 알려 주고, 이후의 모든 프레임은 CPU 프레임입니다. diff --git a/content/zh-cn/surfaces/native-window.md b/content/zh-cn/surfaces/native-window.md index 21700592..0a6d77e2 100644 --- a/content/zh-cn/surfaces/native-window.md +++ b/content/zh-cn/surfaces/native-window.md @@ -68,7 +68,9 @@ return w.Run(root) // root is any toolkit.Widget 目前还没有通过 dma-buf 与显示服务器共享。 - **精确性:** 在软件 Vulkan(lavapipe)上,像素与 CPU 路径逐字节相同,并已在两种协议上实机证明: 从 X 服务器读回的窗口,以及窗口提交的 `wl_shm` 缓冲区,都与 CPU 路径的一致。 - 尚未在硬件 GPU 上测量。 + go-gfx/gpu2d 已在硬件 GPU(AMD Radeon PRO W7700,RADV)上测量其 Vulkan 渲染器: + 在 1080p 下 `Draw` 比 CPU 的 `Rasterize` 快 52 倍;窗口本身(包括复制到帧缓冲区) + 尚未在硬件上测量。 - **回退:** 当 Vulkan 不可用,或某一帧被拒绝(对设备来说太大、设备丢失)时,窗口改用 CPU 绘制并继续运行。 原因由后端的 `GPUError()` 给出,此后的每一帧都是 CPU 帧。 - **开销(仅软件):** lavapipe 是 CPU 光栅器,所以 GPU 路径占用的 CPU 时间约为 CPU 路径的十倍: