{"id":487317,"date":"2026-07-15T00:35:54","date_gmt":"2026-07-15T00:35:54","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=487317"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=487317","title":{"rendered":"EVRTCK: \u0442\u0430\u0439\u043b\u043e\u0432\u044b\u0439 \u0434\u0435\u043b\u044c\u0442\u0430-\u043a\u043e\u0434\u0435\u043a \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0441\u0442\u043e\u043b\u0430 \u2014 \u043a\u0430\u043a \u043c\u044b \u0443\u0431\u0438\u043b\u0438 H.264 \u0434\u043b\u044f UI-\u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h2>\u041c\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u0441\u0432\u043e\u0439 \u043a\u043e\u0434\u0435\u043a \u0434\u043b\u044f lossless \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438 \u044d\u043a\u0440\u0430\u043d\u0430\u00a0\u043d\u0430\u00a0Rust<\/h2>\n<p>\u042f \u0410\u0440\u0442\u0443\u0440 \u0412\u0430\u043b\u0438\u0435\u0432, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a EVRT<\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u0444\u043e\u0440\u043a\u043d\u0443\u043b\u0438 RustDesk \u0438 \u043d\u0430\u0447\u0430\u043b\u0438 \u0441\u0442\u0440\u043e\u0438\u0442\u044c EvertyDesk \u2014 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0439 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0441\u0442\u043e\u043b \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 Hyper-V, Proxmox, VirtualBox \u0438 \u0443\u043c\u043d\u044b\u043c \u0430\u0433\u0435\u043d\u0442\u043e\u043c \u2014 \u043f\u0435\u0440\u0432\u043e\u0435, \u0432\u043e \u0447\u0442\u043e \u0443\u043f\u0451\u0440\u043b\u0438\u0441\u044c, \u0431\u044b\u043b\u043e \u0432\u0438\u0434\u0435\u043e.  <\/p>\n<p>H.264 \u2014 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0434\u0435-\u0444\u0430\u043a\u0442\u043e. TeamViewer, AnyDesk, Windows App \u2014 \u0432\u0441\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 H.264. \u041e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u041d\u043e \u043e\u043d lossy. \u0418 \u0432\u043e\u0442 \u0437\u0434\u0435\u0441\u044c \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u043f\u0440\u043e remote desktop \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u044f\u0442.<\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u043d\u0430 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u0441\u00a0<code>git diff<\/code>\u00a0\u0438\u043b\u0438 \u0447\u0438\u0442\u0430\u0435\u0442 \u0442\u0440\u0435\u0439\u0441 \u0432 VSCode \u2014 \u043e\u0434\u0438\u043d \u0440\u0430\u0437\u043c\u044b\u0442\u044b\u0439 \u043f\u0438\u043a\u0441\u0435\u043b\u044c \u0432 \u0431\u0443\u043a\u0432\u0435 \u044d\u0442\u043e \u0443\u0436\u0435 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0438\u043c\u0432\u043e\u043b. H.264 \u043f\u0440\u0438 \u043b\u044e\u0431\u043e\u043c \u0440\u0430\u0437\u0443\u043c\u043d\u043e\u043c \u0431\u0438\u0442\u0440\u0435\u0439\u0442\u0435 \u0432\u043d\u043e\u0441\u0438\u0442 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0441 \u0440\u0435\u0437\u043a\u0438\u043c \u043a\u043e\u043d\u0442\u0440\u0430\u0441\u0442\u043e\u043c. \u0422\u043e\u0447\u043d\u043e \u0442\u0443\u0434\u0430, \u0433\u0434\u0435 \u0443 \u043d\u0430\u0441 \u0432\u0435\u0441\u044c \u0442\u0435\u043a\u0441\u0442. \u042d\u0442\u043e \u043d\u0435\u043f\u0440\u0438\u0435\u043c\u043b\u0435\u043c\u043e.<\/p>\n<p>H.264 \u0432 lossless \u0440\u0435\u0436\u0438\u043c\u0435 (<code>QP=0<\/code>, lossless profile) \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u043d\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0432 \u0434\u0435\u043a\u043e\u0434\u0435\u0440\u0430\u0445 \u2014 \u0447\u0435\u0440\u0435\u0437 \u043f\u0435\u043d\u044c-\u043a\u043e\u043b\u043e\u0434\u0443, \u0430 \u0434\u043b\u044f mostly-static \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u043f\u0440\u0435\u0434\u0438\u043a\u0442\u043e\u0440\u044b \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0434 \u0432\u0438\u0434\u0435\u043e \u0441 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435\u043c \u0434\u0430\u044e\u0442 \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0432\u044b\u0438\u0433\u0440\u044b\u0448 \u043d\u0430\u0434 \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u044b\u043c delta-\u043a\u043e\u0434\u0435\u0440\u043e\u043c.<\/p>\n<p>\u041d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u0435\u043d motion estimation. \u041d\u0430\u043c \u043d\u0443\u0436\u043d\u043e: \u0432\u043e\u0442 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u043a\u0430\u0434\u0440, \u0432\u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0438\u0439, \u0432\u043e\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u0437\u043c\u0435\u043d\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u0442\u0430\u0439\u043b\u043e\u0432, \u0441\u043e\u0436\u043c\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0445.<\/p>\n<p>\u041c\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 EVRTCK.<\/p>\n<h3>Wire format<\/h3>\n<p>\u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0441\u043b\u043e\u0432\u0430\u043c\u0438 \u0441\u043a\u0443\u0447\u043d\u043e. \u0412\u043e\u0442 \u043f\u0430\u043a\u0435\u0442 \u043f\u043e\u0431\u0430\u0439\u0442\u043e\u0432\u043e:<\/p>\n<pre><code class=\"rust\">SizeFieldNotes04 Bmagic0x45 0x56 0x43 0x4B \u2014 ASCII \u00abEVCK\u00bb41 Bversion0x01 \u2014 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f51 Bflags0x01 = KEYFRAME \u00b7 0x02 = NOP (\u043a\u0430\u0434\u0440 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u0435\u043d \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c\u0443)64 Bframe_idu32 LE, \u043c\u043e\u043d\u043e\u0442\u043e\u043d\u043d\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u044e\u0449\u0438\u0439104 Bwidthu32 LE, \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439144 Bheightu32 LE, \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439182 Bmap_bytesu16 LE = ceil(tile_count \/ 8)20N Btile_map\u0431\u0438\u0442\u043e\u0432\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432: \u0431\u0438\u0442 i \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0435\u0441\u043b\u0438 \u0442\u0430\u0439\u043b i \u0433\u0440\u044f\u0437\u043d\u044b\u043920+N\u2026payloads\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0433\u0440\u044f\u0437\u043d\u044b\u0445 \u0442\u0430\u0439\u043b\u043e\u0432<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 payload \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u0431\u0430\u0439\u0442\u0430 mode. \u0422\u0440\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f:<\/p>\n<pre><code class=\"rust\">SOLID0x014 \u0431\u0430\u0439\u0442\u0430 RGBA \u2014 \u0432\u0435\u0441\u044c \u0442\u0430\u0439\u043b \u0437\u0430\u043b\u0438\u0442 \u043e\u0434\u043d\u0438\u043c \u0446\u0432\u0435\u0442\u043e\u043cDELTA0x02u32 length + ZRLE-\u0441\u0436\u0430\u0442\u044b\u0439 XOR-\u0434\u0435\u043b\u044c\u0442\u0430ZSTD0x03u32 length + zstd level-1 XOR-\u0434\u0435\u043b\u044c\u0442\u0430<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u0439\u043b \u2014 32\u00d732 \u043f\u0438\u043a\u0441\u0435\u043b\u044f = 4096 \u0431\u0430\u0439\u0442 \u0432 <strong>BGRA<\/strong>. \u041d\u0430 1080p: 60\u00d734 = 2040 \u0442\u0430\u0439\u043b\u043e\u0432. Tile map: ceil(2040\/8) = 255 \u0431\u0430\u0439\u0442. \u041f\u043e\u043b\u043d\u044b\u0439 \u043f\u0430\u043a\u0435\u0442 \u0434\u043b\u044f 0% dirty = 275 \u0431\u0430\u0439\u0442. \u041f\u0440\u0438 15% dirty (308 \u0433\u0440\u044f\u0437\u043d\u044b\u0445 \u0442\u0430\u0439\u043b\u043e\u0432, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435) \u2014 ~1.7 \u041a\u0411. \u041f\u0440\u043e\u0442\u0438\u0432 7 864 320 \u0431\u0430\u0439\u0442 raw BGRA.  <\/p>\n<h3>\u041a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u0439\u043b\u0430: \u0442\u0440\u0438 \u0440\u0435\u0436\u0438\u043c\u0430<\/h3>\n<h4>MODE_SOLID<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 1024 \u043f\u0438\u043a\u0441\u0435\u043b\u044f \u0442\u0430\u0439\u043b\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430 \u2014 \u0444\u043e\u043d, \u0437\u0430\u043b\u0438\u0432\u043a\u0430, \u0438\u043a\u043e\u043d\u043a\u0430 \u2014 \u0432\u0435\u0441\u044c payload \u044d\u0442\u043e 5 \u0431\u0430\u0439\u0442 (mode + RGBA). \u0412\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0430\u0449\u0435, \u0447\u0435\u043c \u043a\u0430\u0436\u0435\u0442\u0441\u044f: \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e UI-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u043e\u043d\u043e\u0445\u0440\u043e\u043c\u043d\u044b \u043f\u043e \u0442\u0430\u0439\u043b\u0430\u043c.<\/p>\n<pre><code class=\"rust\">fn try_solid(tile: &amp;[u8]) -&gt; Option&lt;[u8; 4]&gt; {    let mut chunks = tile.chunks_exact(4);    let first = chunks.next()?;    let color = [first[0], first[1], first[2], first[3]];    for chunk in chunks {        if chunk != color { return None; }    }    Some(color)}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043b\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0442\u0430\u0439\u043b\u043e\u0432 \u2014 XOR-\u0434\u0435\u043b\u044c\u0442\u0430 \u043c\u0435\u0436\u0434\u0443 \u0442\u0435\u043a\u0443\u0449\u0438\u043c \u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c \u043a\u0430\u0434\u0440\u043e\u043c, \u0437\u0430\u0442\u0435\u043c \u043a\u043e\u043c\u043f\u0440\u0435\u0441\u0441\u0438\u044f. \u0412\u044b\u0431\u043e\u0440 \u043c\u0435\u0436\u0434\u0443 ZRLE \u0438 zstd: \u0435\u0441\u043b\u0438\u00a0<code>len(zrle) &lt; raw_delta \u00d7 0.9<\/code>\u00a0\u2014 ZRLE, \u0438\u043d\u0430\u0447\u0435 zstd level 1.<\/p>\n<p>ZRLE \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u0435\u043d \u043a\u043e\u0433\u0434\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0431\u0430\u0439\u0442 \u0434\u0435\u043b\u044c\u0442\u044b \u2014 \u043d\u0443\u043b\u0438: \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u043c \u043a\u0443\u0440\u0441\u043e\u0440\u0435, \u043e\u0434\u0438\u043d \u0441\u0438\u043c\u0432\u043e\u043b \u0432 \u0441\u0442\u0440\u043e\u043a\u0435. Runs of zeros \u043a\u043e\u0434\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 2 \u0431\u0430\u0439\u0442\u0430. zstd level 1 (~500 \u041c\u0411\/\u0441 throughput) \u0432\u044b\u0438\u0433\u0440\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0438 \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u044d\u043d\u0442\u0440\u043e\u043f\u0438\u0438 \u0434\u0435\u043b\u044c\u0442\u044b \u2014 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043e\u043a\u043d\u0430, \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u044b\u0439 \u0441\u043a\u0440\u043e\u043b\u043b.<\/p>\n<p>\u041e\u0434\u043d\u0430 \u0442\u043e\u043d\u043a\u043e\u0441\u0442\u044c: prev \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 BGRA (raw capture format \u043e\u0442 DXGI\/GDI), \u0430 \u043d\u0430 wire \u043e\u0442\u0434\u0430\u0451\u043c RGBA. \u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u044f \u2014 \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u0431\u043e\u0440\u043a\u0438 \u0442\u0430\u0439\u043b\u0430 \u0432 contiguous \u0431\u0443\u0444\u0435\u0440, \u0431\u0435\u0437 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0445\u043e\u0434\u0430:<\/p>\n<pre><code class=\"rust\">for y in y0..y1 {    for x in x0..x1 {        let off = (y * width + x) * 4;        \/\/ BGRA \u2192 RGBA: swap \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 0 \u2194 2, G \u0438 A \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u0435\u043c        tile.push(rgba[off + 2]);       \/\/ R        tile.push(rgba[off + 1]);       \/\/ G        tile.push(rgba[off    ]);       \/\/ B        tile.push(rgba[off + 3]);       \/\/ A        tile_prev.push(prev[off + 2]);        tile_prev.push(prev[off + 1]);        tile_prev.push(prev[off    ]);        tile_prev.push(prev[off + 3]);    }}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>XOR \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0435\u043d: \u043e\u0431\u0430 \u0431\u0443\u0444\u0435\u0440\u0430 \u0432 \u043e\u0434\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435, \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f XOR channel-\u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u0430.<\/p>\n<h3>\u041f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0437\u043c \u0447\u0435\u0440\u0435\u0437 rayon<\/h3>\n<p>\u0422\u0430\u0439\u043b\u044b \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b \u2014 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f data-parallel workload. \u041a\u0430\u0436\u0434\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u0447\u0438\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u043e\u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437\u00a0<code>cur<\/code>\u00a0\u0438\u00a0<code>prev<\/code>\u00a0(shared read, \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438), \u043f\u0438\u0448\u0435\u0442 \u0432 \u0441\u0432\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e \u0432\u0435\u043a\u0442\u043e\u0440\u0430:<\/p>\n<pre><code class=\"rust\">let tile_results: Vec&lt;Option&lt;(Vec&lt;u8&gt;, u8)&gt;&gt; = (0..tile_count)    .into_par_iter()    .map(|idx| {        let tx = idx % tiles_x;        let ty = idx \/ tiles_x;        if tile_is_dirty(rgba, prev, width, height, tx, ty) {            Some(encode_tile_buf(rgba, prev, width, height, tx, ty))        } else {            None        }    })    .collect();<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e\u00a0<code>Mutex<\/code>, \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e\u00a0<code>Arc<\/code>. Rust ownership \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0441\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438:\u00a0<code>rgba<\/code>\u00a0\u0438\u00a0<code>prev<\/code>\u00a0\u2014 shared\u00a0<code>&amp;[u8]<\/code>, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0438\u0437 \u043b\u044e\u0431\u043e\u0433\u043e \u043f\u043e\u0442\u043e\u043a\u0430;\u00a0<code>tile_results<\/code>\u00a0\u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0438\u0437 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445\u00a0<code>Vec&lt;u8&gt;<\/code>.<\/p>\n<p>Keyframe throughput: 89 \u041c\u0438\u0411\/\u0441 \u043d\u0430 720p, 91 \u041c\u0438\u0411\/\u0441 \u043d\u0430 1080p, 91 \u041c\u0438\u0411\/\u0441 \u043d\u0430 4K. \u0422\u0440\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043e\u0434\u043d\u0430 \u0446\u0438\u0444\u0440\u0430 \u2014 \u043a\u043e\u0434\u0435\u043a \u0443\u043f\u0451\u0440\u0441\u044f \u0432 memory bandwidth, \u0430 \u043d\u0435 \u0432 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f. Rayon \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0432\u0441\u0435 \u044f\u0434\u0440\u0430, \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0430\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 CPU \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430 \u0431\u0435\u0437 \u0441\u043c\u0435\u043d\u044b \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430.<\/p>\n<h3>IDR, \u0441\u043c\u0435\u043d\u0430 \u043a\u043e\u0434\u0435\u043a\u0430 \u0438 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u0431\u0430\u0433<\/h3>\n<p>\u041f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0441 EVRTCK \u0436\u0438\u0432\u0451\u0442 H.264 \u0447\u0435\u0440\u0435\u0437 Media Foundation (Windows) \u0438 NVENC (\u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c NVIDIA). \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u2014 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 dirty ratio \u0438 \u0442\u0438\u043f\u0430 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430. \u0414\u043b\u044f \u0432\u0438\u0434\u0435\u043e\u043f\u043e\u0442\u043e\u043a\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0438\u043b\u0438 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0439 EVRTCK \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0435\u0442: \u043e\u043d lossless, \u0443 \u043d\u0435\u0433\u043e \u043d\u0435\u0442 motion compensation, \u0438 \u043f\u0440\u0438 90% dirty \u043e\u043d \u0448\u043b\u0451\u0442 \u0432\u0441\u0435 \u0433\u0440\u044f\u0437\u043d\u044b\u0435 \u0442\u0430\u0439\u043b\u044b \u0446\u0435\u043b\u0438\u043a\u043e\u043c.<\/p>\n<p>\u041e\u0434\u0438\u043d \u0438\u0437 \u043f\u0435\u0440\u0432\u044b\u0445 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0445 \u0431\u0430\u0433\u043e\u0432: \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 H.264 \u2192 EVRTCK \u043a\u043b\u0438\u0435\u043d\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u043b \u043f\u0435\u0440\u0432\u044b\u0439 P-frame EVRTCK \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u043b \u0435\u0433\u043e \u043a \u043d\u0443\u043b\u0435\u0432\u043e\u043c\u0443 \u0431\u0443\u0444\u0435\u0440\u0443 (\u0441\u0432\u0435\u0436\u0435\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439\u00a0<code>prev<\/code>). \u0412\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u0443\u0441\u043e\u0440 \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434 \u0434\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e IDR.<\/p>\n<p>\u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 IDR \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438. \u041d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0441\u0442\u044c: \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0434\u0432\u0443\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0435. \u041f\u0440\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0435 EVRTCK \u2192 H.264 H.264 \u0434\u0435\u043a\u043e\u0434\u0435\u0440 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u0442\u043e\u0436\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c IDR, \u0438\u043d\u0430\u0447\u0435 \u043e\u043d \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442 P-frame \u0434\u0435\u043b\u044c\u0442\u044b \u043a \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u043c\u0443 \u043e\u043f\u043e\u0440\u043d\u043e\u043c\u0443 \u043a\u0430\u0434\u0440\u0443.<\/p>\n<pre><code class=\"rust\">\/\/ \u041d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e: \u0442\u043e\u043b\u044c\u043a\u043e H264\u2192EVRTCKif evrt_on &amp;&amp; !was_evrt_on { force_recovery_key = true; }\/\/ \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e: \u043e\u0431\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044fif evrt_on != was_evrt_on {    force_recovery_key = true;}was_evrt_on = evrt_on;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code>IDR_MIN_EVRTCK = 10<\/code>\u00a0\u0441\u0435\u043a\u0443\u043d\u0434 \u043f\u0440\u043e\u0442\u0438\u0432\u00a0<code>IDR_MIN_H264 = 1200<\/code>\u00a0\u043c\u0441. EVRTCK \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u044c \u0441\u0435\u0431\u0435 \u0440\u0435\u0434\u043a\u0438\u0435 keyframe-\u044b: P-frame \u0434\u0430\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 10 \u0441\u0435\u043a\u0443\u043d\u0434 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u043d\u0430 UI-\u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0435 \u0432\u0435\u0441\u0438\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u0438\u043b\u043e\u0431\u0430\u0439\u0442. H.264 \u043d\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u0447\u0430\u0441\u0442\u044b\u0445 IDR \u0434\u043b\u044f recovery \u043f\u0440\u0438 \u043f\u043e\u0442\u0435\u0440\u0435 \u043f\u0430\u043a\u0435\u0442\u043e\u0432.  <\/p>\n<h3>NOP frame: \u0447\u0435\u0441\u0442\u043d\u043e \u043e\u0431 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438<\/h3>\n<p>\u0421\u0430\u043c\u044b\u0439 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u044b\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0432 enterprise remote desktop: \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0447\u0438\u0442\u0430\u0435\u0442 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442, \u0436\u0434\u0451\u0442 \u0434\u0435\u043f\u043b\u043e\u044f, \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0432 Confluence. \u041a\u0430\u0434\u0440\u044b \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u044b. \u0414\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438:<\/p>\n<p>Rayon \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b 2040 \u0437\u0430\u0434\u0430\u0447 \u043d\u0430 1080p. \u041a\u0430\u0436\u0434\u0430\u044f \u0447\u0438\u0442\u0430\u043b\u0430 \u0441\u0442\u0440\u043e\u043a\u0438 \u0442\u0430\u0439\u043b\u0430 \u0441 stride-ed \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u0447\u0435\u0440\u0435\u0437 7680 \u0431\u0430\u0439\u0442 (\u0448\u0438\u0440\u0438\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0438 1920\u00d74 \u0431\u0430\u0439\u0442\u0430). \u041d\u0438 \u043e\u0434\u043d\u0430 \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. \u0418\u0442\u043e\u0433\u043e:\u00a0<strong>3.17 \u043c\u0441<\/strong>\u00a0\u043d\u0430 \u0445\u043e\u043b\u043e\u0441\u0442\u043e\u043c \u0445\u043e\u0434\u0443 \u043f\u0440\u0438 30 fps.<\/p>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u043e \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u043e: \u043e\u0434\u0438\u043d\u00a0<code>rgba == prev<\/code>\u00a0\u043f\u0435\u0440\u0435\u0434 rayon-\u0446\u0438\u043a\u043b\u043e\u043c. Rust \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u043b\u0430\u0439\u0441\u043e\u0432 \u0432 \u0432\u044b\u0437\u043e\u0432\u00a0<code>memcmp<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430 x86-64 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0447\u0435\u0440\u0435\u0437 AVX2 \u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442 32 \u0431\u0430\u0439\u0442\u0430 \u0437\u0430 \u0442\u0430\u043a\u0442. \u041f\u0440\u0438 bandwidth ~50 \u0413\u0411\/\u0441 \u044d\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0437\u0430\u043d\u044f\u0442\u044c ~0.15 \u043c\u0441.<\/p>\n<pre><code class=\"rust\">\/\/ \u0411\u044b\u0441\u0442\u0440\u044b\u0439 \u043f\u0443\u0442\u044c: \u043a\u0430\u0434\u0440 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u0435\u043d \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c\u0443if !is_keyframe &amp;&amp; rgba == prev {    let mut out = Vec::with_capacity(20);    out.extend_from_slice(MAGIC);    out.push(VERSION);    out.push(FLAG_NOP);              \/\/ 0x02    out.extend_from_slice(&amp;frame_id.to_le_bytes());    out.extend_from_slice(&amp;(width as u32).to_le_bytes());    out.extend_from_slice(&amp;(height as u32).to_le_bytes());    out.extend_from_slice(&amp;0u16.to_le_bytes()); \/\/ map_bytes = 0    return (out, FrameStats::default());}\/\/ Criterion: 2.93 \u043c\u0441. \u0423\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u0435 \u2014 8%.<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<blockquote>\n<p><strong>\u041f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435 20\u00d7.<\/strong>\u00a0<code>rgba == prev<\/code>\u00a0\u2014 \u044d\u0442\u043e\u00a0<code>memcmp<\/code>\u00a0\u0434\u0432\u0443\u0445 \u0431\u0443\u0444\u0435\u0440\u043e\u0432 \u043f\u043e 8.29 \u041c\u0411 \u043a\u0430\u0436\u0434\u044b\u0439. \u041e\u0431\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 L3 \u043a\u044d\u0448\u0430. \u041e\u0431\u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u0438\u0437 RAM: 16.58 \u041c\u0411 \u043f\u0440\u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c DDR4 bandwidth ~5\u20136 \u0413\u0411\/\u0441 = ~2.8\u20133 \u043c\u0441. Rayon \u0440\u0430\u043d\u044c\u0448\u0435 \u0447\u0438\u0442\u0430\u043b \u0440\u043e\u0432\u043d\u043e \u0442\u0435 \u0436\u0435 16.58 \u041c\u0411, \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 strided-\u0434\u043e\u0441\u0442\u0443\u043f \u0441 overhead \u043d\u0430 2040 \u0437\u0430\u0434\u0430\u0447 \u2014 \u0432\u043e\u0442 \u044d\u0442\u0438 ~0.24 \u043c\u0441 \u043c\u044b \u0438 \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u043b\u0438.<\/p>\n<\/blockquote>\n<p>\u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0430\u044f \u043f\u043e\u0431\u0435\u0434\u0430 \u0434\u0440\u0443\u0433\u0430\u044f: \u043f\u0430\u043a\u0435\u0442 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u043b\u0441\u044f \u0441 275 \u0431\u0430\u0439\u0442 \u0434\u043e 20 \u0431\u0430\u0439\u0442. \u0414\u0435\u043a\u043e\u0434\u0435\u0440 \u043f\u0440\u0438\u00a0<code>FLAG_NOP<\/code>\u00a0\u0447\u0438\u0442\u0430\u0435\u0442 header, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 prev \u043a\u0430\u043a \u0435\u0441\u0442\u044c \u2014 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043d\u043e\u043b\u044c \u0440\u0430\u0431\u043e\u0442\u044b. \u041f\u0440\u0438 30 fps \u043d\u0430 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u043e\u043c \u044d\u043a\u0440\u0430\u043d\u0435:  <\/p>\n<p>\u0414\u043e 61 \u041a\u0431\u0438\u0442\/\u0441 30 \u00d7 275 \u0431\u0430\u0439\u0442\/\u043a\u0430\u0434\u0440 \u00d7 8 \u041f\u043e\u0441\u043b\u0435 5 \u041a\u0431\u0438\u0442\/\u0441 30 \u00d7 20 \u0431\u0430\u0439\u0442\/\u043a\u0430\u0434\u0440 \u00d7 8<\/p>\n<h3>Benchmark: Criterion, \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430<\/h3>\n<p>\u0412\u0441\u0435 \u0437\u0430\u043c\u0435\u0440\u044b: Criterion 0.5, 100 \u0441\u044d\u043c\u043f\u043b\u043e\u0432,\u00a0<code>opt-level=3 lto=thin<\/code>, Windows 11 x86-64, CPU backend (GPU Phase 2 \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435).<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0412\u0440\u0435\u043c\u044f<\/p>\n<\/th>\n<th>\n<p align=\"left\">Throughput<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Keyframe 720p<\/p>\n<\/td>\n<td>\n<p align=\"left\">39.4 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">89.3 \u041c\u0438\u0411\/\u0441<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Keyframe 1080p<\/p>\n<\/td>\n<td>\n<p align=\"left\">86.7 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">91.2 \u041c\u0438\u0411\/\u0441<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Keyframe 4K<\/p>\n<\/td>\n<td>\n<p align=\"left\">344.6 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">91.8 \u041c\u0438\u0411\/\u0441<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p align=\"left\">\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">P-frame 0% dirty \u2014 NOP path<\/p>\n<\/td>\n<td>\n<p align=\"left\">2.93 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">2.63 \u0413\u0438\u0411\/\u0441<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">P-frame 5% dirty \u2014 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043a\u0443\u0440\u0441\u043e\u0440\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">3.17 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">2.44 \u0413\u0438\u0411\/\u0441<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">P-frame 15% dirty \u2014 \u043f\u0435\u0447\u0430\u0442\u044c \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435<\/p>\n<\/td>\n<td>\n<p align=\"left\">3.34 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">2.31 \u0413\u0438\u0411\/\u0441<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">P-frame 50% dirty \u2014 \u0441\u043a\u0440\u043e\u043b\u043b \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435<\/p>\n<\/td>\n<td>\n<p align=\"left\">4.18 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">1.85 \u0413\u0438\u0411\/\u0441<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">P-frame 90% dirty \u2014 \u0432\u0438\u0434\u0435\u043e \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435<\/p>\n<\/td>\n<td>\n<p align=\"left\">5.37 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">1.44 \u0413\u0438\u0411\/\u0441<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p align=\"left\">\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Roundtrip encode+decode 1080p 15%<\/p>\n<\/td>\n<td>\n<p align=\"left\">3.99 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">1.94 \u0413\u0438\u0411\/\u0441<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>30 fps \u0431\u044e\u0434\u0436\u0435\u0442 = 33.3 \u043c\u0441. \u0414\u0430\u0436\u0435 \u043f\u0440\u0438 90% dirty \u043c\u044b \u0432 6.2\u00d7 \u0437\u0430\u043f\u0430\u0441\u0435. \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0447\u0442\u043e \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 0% \u0438 5% dirty \u2014 \u043f\u043e\u0447\u0442\u0438 \u043d\u043e\u043b\u044c: overhead rayon \u0438 tile scan \u043d\u0430 1755 \u0447\u0438\u0441\u0442\u044b\u0445 \u0442\u0430\u0439\u043b\u0430\u0445 \u0434\u043e\u043c\u0438\u043d\u0438\u0440\u0443\u0435\u0442 \u043d\u0430\u0434 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c 102 \u0433\u0440\u044f\u0437\u043d\u044b\u0445.<\/p>\n<p>Wire size (\u0441\u0438\u043d\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0444\u0440\u0435\u0439\u043c\u044b \u0441 solid-color \u0442\u0430\u0439\u043b\u0430\u043c\u0438 \u2014 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435, \u043f\u043e\u0440\u044f\u0434\u043a\u0438 \u0442\u0435 \u0436\u0435):<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">Dirty<\/p>\n<\/th>\n<th>\n<p align=\"left\">Encoded<\/p>\n<\/th>\n<th>\n<p align=\"left\">vs 7.91 \u041c\u0438\u0411 raw<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">0%<\/p>\n<\/td>\n<td>\n<p align=\"left\">20 \u0411<\/p>\n<\/td>\n<td>\n<p align=\"left\">393 216:1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">5%<\/p>\n<\/td>\n<td>\n<p align=\"left\">779 \u0411<\/p>\n<\/td>\n<td>\n<p align=\"left\">10 648:1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">15%<\/p>\n<\/td>\n<td>\n<p align=\"left\">1.7 \u041a\u0411<\/p>\n<\/td>\n<td>\n<p align=\"left\">4 642:1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">50%<\/p>\n<\/td>\n<td>\n<p align=\"left\">5.2 \u041a\u0411<\/p>\n<\/td>\n<td>\n<p align=\"left\">1 551:1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">90%<\/p>\n<\/td>\n<td>\n<p align=\"left\">9.2 \u041a\u0411<\/p>\n<\/td>\n<td>\n<p align=\"left\">877:1<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h3>\u0413\u0434\u0435 \u043c\u044b \u0441\u043b\u0430\u0431\u044b \u2014 \u0447\u0435\u0441\u0442\u043d\u043e<\/h3>\n<p><strong>Dirty detection \u0437\u0430\u0432\u044f\u0437\u0430\u043d \u043d\u0430 CPU scan<\/strong>Windows Desktop Duplication API (<code>IDXGIOutputDuplication::AcquireNextFrame<\/code>) \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 dirty rectangles \u043a\u0430\u043a \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u043a \u0437\u0430\u0445\u0432\u0430\u0447\u0435\u043d\u043d\u043e\u043c\u0443 \u043a\u0430\u0434\u0440\u0443 \u2014 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e, \u0431\u0435\u0437 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439 \u043c\u044b \u0438\u0445,\u00a0<code>tile_is_dirty<\/code>\u00a0\u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u0432\u043e\u043e\u0431\u0449\u0435. \u042d\u0442\u043e Phase 2: WGPU-\u0431\u044d\u043a\u0435\u043d\u0434 \u0443\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 GPU-\u0431\u0443\u0444\u0435\u0440\u044b \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435, \u043d\u043e \u043f\u043e\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 CPU fallback.<\/p>\n<p><strong>\u041d\u0435\u0442 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 \u0440\u0430\u0441\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438<\/strong>\u0415\u0441\u043b\u0438 TCP-\u0431\u0443\u0444\u0435\u0440 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0438\u043b\u0441\u044f \u0438 \u043f\u0430\u043a\u0435\u0442 \u043f\u043e\u0442\u0435\u0440\u044f\u043b\u0441\u044f \u2014\u00a0<code>prev<\/code>\u00a0\u0443 \u044d\u043d\u043a\u043e\u0434\u0435\u0440\u0430 \u0438 \u0434\u0435\u043a\u043e\u0434\u0435\u0440\u0430 \u0440\u0430\u0441\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e IDR (\u0434\u043e 10 \u0441\u0435\u043a\u0443\u043d\u0434). \u041d\u0443\u0436\u0435\u043d: frame hash \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u043f\u0430\u043a\u0435\u0442\u0435 \u0438 out-of-band \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0430 IDR \u0434\u0435\u043a\u043e\u0434\u0435\u0440\u043e\u043c \u043f\u0440\u0438 mismatch. \u0421\u0435\u0439\u0447\u0430\u0441 \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u0442.<\/p>\n<p><strong>TILE_SIZE = 32 \u0437\u0430\u0445\u0430\u0440\u0434\u043a\u043e\u0436\u0435\u043d<\/strong>\u0414\u043b\u044f 4K \u0440\u0430\u0437\u0443\u043c\u043d\u0435\u0435 64 \u0438\u043b\u0438 128: tile_map overhead \u0438 per-tile spawn cost \u043f\u0440\u0438 2040 \u0442\u0430\u0439\u043b\u0430\u0445 \u043f\u0435\u0440\u0435\u0432\u0435\u0448\u0438\u0432\u0430\u044e\u0442 \u043f\u0440\u0438\u0440\u043e\u0441\u0442 \u043e\u0442 \u0442\u043e\u0447\u043d\u043e\u0433\u043e dirty detection. \u0414\u043b\u044f \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 (Android, 720p) \u2014 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e 16.<\/p>\n<p><strong>Rayon overhead \u043f\u0440\u0438 sparse dirty<\/strong>\u041f\u0440\u0438 &lt; 50 \u0433\u0440\u044f\u0437\u043d\u044b\u0445 \u0442\u0430\u0439\u043b\u0430\u0445 sequential encode \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0447\u0435\u043c spawn 2040 rayon-\u0437\u0430\u0434\u0430\u0447. Adaptive threshold: \u0435\u0441\u043b\u0438\u00a0<code>dirty_count &lt; 50<\/code>\u00a0\u2014 sequential, \u0438\u043d\u0430\u0447\u0435 \u2014 rayon. \u041d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e.<\/p>\n<p><strong>90% dirty \u2192 \u043b\u0443\u0447\u0448\u0435 IDR \u0447\u0435\u043c P-frame<\/strong>\u041f\u0440\u0438 \u0432\u044b\u0441\u043e\u043a\u043e\u043c dirty_ratio overhead \u043d\u0430 tile_map, per-tile headers \u0438 2040 rayon-\u0437\u0430\u0434\u0430\u0447 \u0434\u0435\u043b\u0430\u0435\u0442 keyframe \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u0435\u0435. \u041a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043f\u043e\u0440\u043e\u0433 \u043d\u0438\u0433\u0434\u0435 \u043d\u0435 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d \u0438 \u043d\u0435 \u0438\u0437\u043c\u0435\u0440\u0435\u043d.<\/p>\n<p>\u0410\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u044b\u0435 \u0446\u0438\u0444\u0440\u044b encode-time \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u0441\u0435\u0442\u0435\u0432\u043e\u043c\u0443 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u0443. \u0412\u043e\u0442 \u0447\u0442\u043e \u0443\u0445\u043e\u0434\u0438\u0442 \u0432 \u043f\u0440\u043e\u0432\u043e\u0434 \u043f\u0440\u0438 30 fps \u0438 60 fps \u2014 \u043f\u043e \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f\u043c:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439<\/p>\n<\/th>\n<th>\n<p align=\"left\">Encode<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0420\u0430\u0437\u043c\u0435\u0440 \u043f\u0430\u043a\u0435\u0442\u0430<\/p>\n<\/th>\n<th>\n<p align=\"left\">@ 30 fps<\/p>\n<\/th>\n<th>\n<p align=\"left\">@ 60 fps<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Idle \u2014 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0439 \u044d\u043a\u0440\u0430\u043d<\/p>\n<\/td>\n<td>\n<p align=\"left\">2.93 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">20 \u0411<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>5 \u041a\u0431\u0438\u0442\/\u0441<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">10 \u041a\u0431\u0438\u0442\/\u0441<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041c\u0438\u0433\u0430\u043d\u0438\u0435 \u043a\u0443\u0440\u0441\u043e\u0440\u0430, \u0441\u0442\u0430\u0442\u0443\u0441-\u0431\u0430\u0440<\/p>\n<\/td>\n<td>\n<p align=\"left\">3.17 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">779 \u0411<\/p>\n<\/td>\n<td>\n<p align=\"left\">187 \u041a\u0431\u0438\u0442\/\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">373 \u041a\u0431\u0438\u0442\/\u0441<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041f\u0435\u0447\u0430\u0442\u044c \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 (15% dirty)<\/p>\n<\/td>\n<td>\n<p align=\"left\">3.34 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">1.7 \u041a\u0411<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>408 \u041a\u0431\u0438\u0442\/\u0441<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">816 \u041a\u0431\u0438\u0442\/\u0441<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0421\u043a\u0440\u043e\u043b\u043b \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 (50% dirty)<\/p>\n<\/td>\n<td>\n<p align=\"left\">4.18 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">5.2 \u041a\u0411<\/p>\n<\/td>\n<td>\n<p align=\"left\">1.2 \u041c\u0431\u0438\u0442\/\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">2.4 \u041c\u0431\u0438\u0442\/\u0441<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0412\u0438\u0434\u0435\u043e \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 (90% dirty)<\/p>\n<\/td>\n<td>\n<p align=\"left\">5.37 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">9.2 \u041a\u0411<\/p>\n<\/td>\n<td>\n<p align=\"left\">2.2 \u041c\u0431\u0438\u0442\/\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">4.4 \u041c\u0431\u0438\u0442\/\u0441<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Raw BGRA 1080p \u2014 \u0431\u0435\u0437 \u043a\u043e\u0434\u0435\u043a\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2014<\/p>\n<\/td>\n<td>\n<p align=\"left\">7.86 \u041c\u0411<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>1 887 \u041c\u0431\u0438\u0442\/\u0441<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">3 774 \u041c\u0431\u0438\u0442\/\u0441<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041f\u0440\u0438 \u0442\u0438\u043f\u0438\u0447\u043d\u043e\u043c \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438 \u2014 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0447\u0438\u0442\u0430\u0435\u0442 \u043b\u043e\u0433\u0438, \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 \u2014 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u043d\u0435 \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0437\u0430 200\u2013400 \u041a\u0431\u0438\u0442\/\u0441. \u042d\u0442\u043e \u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0439 \u0437\u0432\u043e\u043d\u043e\u043a \u0432 Telegram.<\/p>\n<p>\u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0433\u0434\u0435 EVRTCK \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0435\u0442 H.264 \u2014 \u0432\u0438\u0434\u0435\u043e \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043f\u0440\u0438 60 fps: 4.4 \u041c\u0431\u0438\u0442\/\u0441 \u043f\u0440\u043e\u0442\u0438\u0432 ~2 \u041c\u0431\u0438\u0442\/\u0441 \u0443 lossy H.264. \u0422\u0430\u043c \u043c\u044b \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043d\u0430 H.264 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e dirty_ratio. \u0422\u0435\u043a\u0441\u0442 \u0438 UI \u2014 \u043d\u0430\u0448\u0430 \u0442\u0435\u0440\u0440\u0438\u0442\u043e\u0440\u0438\u044f.<\/p>\n<h3>Latency budget: 33.3 \u043c\u0441 \u043d\u0430 30 fps<\/h3>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u042d\u0442\u0430\u043f<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0412\u0440\u0435\u043c\u044f<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">DXGI capture (IDXGIOutputDuplication)<\/p>\n<\/td>\n<td>\n<p align=\"left\">~1 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">Windows API overhead<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">EVRTCK encode \u2014 idle (NOP path)<\/p>\n<\/td>\n<td>\n<p align=\"left\">2.93 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">Criterion<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">EVRTCK encode \u2014 typing 15% dirty<\/p>\n<\/td>\n<td>\n<p align=\"left\">3.34 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">Criterion, 1080p<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">EVRTCK encode \u2014 scroll 50% dirty<\/p>\n<\/td>\n<td>\n<p align=\"left\">4.18 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">Criterion, 1080p<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">EVRTCK decode \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435<\/p>\n<\/td>\n<td>\n<p align=\"left\">0.65 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">roundtrip 3.99 \u2212 encode 3.34<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0421\u0435\u0442\u044c LAN 1 \u0413\u0431\u0438\u0442 (408 \u041a\u0431\u0438\u0442\/\u0441)<\/p>\n<\/td>\n<td>\n<p align=\"left\">&lt; 1 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2014<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0421\u0435\u0442\u044c WAN \u041c\u043e\u0441\u043a\u0432\u0430\u2013\u0421\u041f\u0431 VPN<\/p>\n<\/td>\n<td>\n<p align=\"left\">~15 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0442\u0438\u043f\u0438\u0447\u043d\u044b\u0439 RTT<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0418\u0442\u043e\u0433\u043e LAN, typing<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>~6 \u043c\u0441 \u0438\u0437 33.3 \u043c\u0441<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>5.2\u00d7 \u0437\u0430\u043f\u0430\u0441<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0418\u0442\u043e\u0433\u043e WAN \u041c\u043e\u0441\u043a\u0432\u0430\u2013\u0421\u041f\u0431, typing<\/p>\n<\/td>\n<td>\n<p align=\"left\">~21 \u043c\u0441 \u0438\u0437 33.3 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">1.6\u00d7 \u0437\u0430\u043f\u0430\u0441<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>Encode \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 10\u201318% frame budget \u0434\u0430\u0436\u0435 \u0432 \u0445\u0443\u0434\u0448\u0435\u043c \u0442\u0438\u043f\u0438\u0447\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435. \u0411\u043e\u0442\u043b\u043d\u0435\u043a \u0443 \u043d\u0430\u0441 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043a\u043e\u0434\u0435\u043a \u2014 \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u0435\u0442\u044c.<\/p>\n<h3>EVRTCK \u043f\u0440\u043e\u0442\u0438\u0432 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043e\u0432<\/h3>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b<\/p>\n<\/th>\n<th>\n<p align=\"left\">Lossless \u0442\u0435\u043a\u0441\u0442<\/p>\n<\/th>\n<th>\n<p align=\"left\">Idle \u0442\u0440\u0430\u0444\u0438\u043a<\/p>\n<\/th>\n<th>\n<p align=\"left\">Typing \u0442\u0440\u0430\u0444\u0438\u043a<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">RFB \/ VNC (ZRLE)<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2713<\/p>\n<\/td>\n<td>\n<p align=\"left\">~0 \u041a\u0431\u0438\u0442\/\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">~800 \u041a\u0431\u0438\u0442\/\u0441<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">RDP \/ RemoteFX (H.264)<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2717 lossy<\/p>\n<\/td>\n<td>\n<p align=\"left\">50\u2013200 \u041a\u0431\u0438\u0442\/\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">1\u20133 \u041c\u0431\u0438\u0442\/\u0441<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">H.264 lossless (QP=0)<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2713<\/p>\n<\/td>\n<td>\n<p align=\"left\">200\u2013500 \u041a\u0431\u0438\u0442\/\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">2\u20135 \u041c\u0431\u0438\u0442\/\u0441<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>EVRTCK<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2713<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>5 \u041a\u0431\u0438\u0442\/\u0441<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>408 \u041a\u0431\u0438\u0442\/\u0441<\/strong><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>RFB\/VNC \u2014 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0439 \u0440\u043e\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u0438\u043a \u043f\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435. \u0420\u0430\u0437\u043d\u0438\u0446\u0430: VNC \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 XOR-\u0434\u0435\u043b\u044c\u0442\u0443 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u0438\u043a\u0441\u0435\u043b\u044f, \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 zstd, \u0438 \u043d\u0435\u0442 MODE_SOLID. \u041f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 VNC \u0448\u043b\u0451\u0442 \u0432\u0435\u0441\u044c \u0438\u0437\u043c\u0435\u043d\u0438\u0432\u0448\u0438\u0439\u0441\u044f \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a. EVRTCK \u0448\u043b\u0451\u0442 \u0442\u0430\u0439\u043b \u0441 XOR-\u0434\u0435\u043b\u044c\u0442\u043e\u0439 \u0433\u0434\u0435 \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u044b\u0445 \u0431\u0430\u0439\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c 100.<\/p>\n<h3>Encode \u043f\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c: \u043f\u043e\u043b\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430<\/h3>\n<p>P-frame \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b\u0438\u0441\u044c \u043d\u0430 1080p. \u0414\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u2014 \u043b\u0438\u043d\u0435\u0439\u043d\u0430\u044f \u044d\u043a\u0441\u0442\u0440\u0430\u043f\u043e\u043b\u044f\u0446\u0438\u044f \u043f\u043e \u0447\u0438\u0441\u043b\u0443 \u0442\u0430\u0439\u043b\u043e\u0432 (\u0447\u0438\u0441\u043b\u0430 bandwidth-bound, \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0435):<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0422\u0430\u0439\u043b\u043e\u0432<\/p>\n<\/th>\n<th>\n<p align=\"left\">Keyframe<\/p>\n<\/th>\n<th>\n<p align=\"left\">Idle NOP<\/p>\n<\/th>\n<th>\n<p align=\"left\">Typing 15%<\/p>\n<\/th>\n<th>\n<p align=\"left\">Scroll 50%<\/p>\n<\/th>\n<th>\n<p align=\"left\">@ 30 fps typing<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">720p<\/p>\n<\/td>\n<td>\n<p align=\"left\">1 035<\/p>\n<\/td>\n<td>\n<p align=\"left\">39.4 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">2.93 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">~1.7 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">~2.1 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>~208 \u041a\u0431\u0438\u0442\/\u0441<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>1080p<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>2 040<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>86.7 \u043c\u0441<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>2.93 \u043c\u0441<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>3.34 \u043c\u0441<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>4.18 \u043c\u0441<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>408 \u041a\u0431\u0438\u0442\/\u0441<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">1440p<\/p>\n<\/td>\n<td>\n<p align=\"left\">3 240<\/p>\n<\/td>\n<td>\n<p align=\"left\">~138 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">~2.93 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">~4.2 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">~5.3 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">~648 \u041a\u0431\u0438\u0442\/\u0441<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">4K<\/p>\n<\/td>\n<td>\n<p align=\"left\">8 160<\/p>\n<\/td>\n<td>\n<p align=\"left\">344.6 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">~2.93 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">~8.4 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">~10.5 \u043c\u0441<\/p>\n<\/td>\n<td>\n<p align=\"left\">~1.6 \u041c\u0431\u0438\u0442\/\u0441<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>Keyframe \u043d\u0430 4K \u2014 344 \u043c\u0441 \u2014 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u0446\u0438\u0444\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u0442\u0440\u0430\u0448\u043d\u043e. \u041d\u043e keyframe \u0441\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437 \u0432 10 \u0441\u0435\u043a\u0443\u043d\u0434. 344 \u043c\u0441 \/ 10 000 \u043c\u0441 =\u00a0<strong>3.4% overhead<\/strong>\u00a0\u043a \u0441\u0440\u0435\u0434\u043d\u0435\u043c\u0443 encode time. \u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u043e.<\/p>\n<p>NOP latency \u043d\u0435 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u2014 \u044d\u0442\u043e \u0432\u0441\u0435\u0433\u0434\u0430 memcmp (bandwidth-bound) \u043f\u043b\u044e\u0441 20-\u0431\u0430\u0439\u0442\u043d\u044b\u0439 write. 720p \u0434\u0430\u0451\u0442 \u0442\u043e\u0442 \u0436\u0435 2.93 \u043c\u0441: \u043e\u0431\u0430 \u0431\u0443\u0444\u0435\u0440\u0430 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0432\u044b\u043b\u0435\u0442\u0430\u044e\u0442 \u0438\u0437 L3.<\/p>\n<h3>\u0413\u0434\u0435 \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/h3>\n<p>EVRTCK \u2014 \u043d\u0435 proof of concept. \u042d\u0442\u043e production \u043a\u043e\u0434\u0435\u043a \u0432\u00a0EvertyDesk: \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0439 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0441\u0442\u043e\u043b \u0434\u043b\u044f \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u043e\u0433\u043e Enterprise \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0444\u043e\u0440\u043a\u0430 RustDesk.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0424\u0438\u0447\u0430<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0421\u0442\u0430\u0442\u0443\u0441<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">EVRTCK lossless \u0434\u043b\u044f text\/UI<\/p>\n<\/td>\n<td>\n<p align=\"left\">Production<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0410\u0432\u0442\u043e\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 EVRTCK \u2194 H.264 \u043f\u043e dirty_ratio<\/p>\n<\/td>\n<td>\n<p align=\"left\">Production<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Smart Agent \u2014 heartbeat, push-\u043a\u043e\u043d\u0444\u0438\u0433, \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f<\/p>\n<\/td>\n<td>\n<p align=\"left\">Production<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Hyper-V \/ Proxmox \/ VirtualBox \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435<\/p>\n<\/td>\n<td>\n<p align=\"left\">Production<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">GPU backend (WGPU)<\/p>\n<\/td>\n<td>\n<p align=\"left\">Beta<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">DXGI dirty rects Phase 2<\/p>\n<\/td>\n<td>\n<p align=\"left\">Roadmap Q3 2026<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 EVRTCK \u0432\u044b\u0439\u0434\u0443\u0442 \u0441 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u043e\u0439 \u0431\u0435\u0442\u043e\u0439. \u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0443\u0436\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u2014\u00a0desk.everty.ru.<\/p>\n<p>H.264 \u2014 \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u043e\u0434\u0435\u043a \u0434\u043b\u044f \u0432\u0438\u0434\u0435\u043e. \u0414\u043b\u044f \u044d\u043a\u0440\u0430\u043d\u0430, \u0433\u0434\u0435 90% \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0435\u043f\u043e\u0434\u0432\u0438\u0436\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u0438 \u043f\u0438\u043a\u0441\u0435\u043b\u044c-\u0432-\u043f\u0438\u043a\u0441\u0435\u043b\u044c \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u0430 \u2014 \u043e\u043d \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u0435\u043d \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u0435\u043d \u0432 \u0434\u0440\u0443\u0433\u043e\u043c. EVRTCK \u0440\u0435\u0448\u0430\u0435\u0442 \u0440\u043e\u0432\u043d\u043e \u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0443\u0436\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c, \u0438 \u043d\u0435 \u0440\u0435\u0448\u0430\u0435\u0442 \u0442\u043e, \u0447\u0442\u043e \u0440\u0435\u0448\u0430\u0442\u044c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e.<\/p>\n<p>33 \u0441\u0442\u0440\u043e\u043a\u0438 wire format. \u0422\u0440\u0438 \u0440\u0435\u0436\u0438\u043c\u0430 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0430\u0439\u043b\u0430. 20 \u0431\u0430\u0439\u0442 \u043d\u0430 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0439 \u043a\u0430\u0434\u0440. 408 \u041a\u0431\u0438\u0442\/\u0441 \u043d\u0430 \u043f\u0435\u0447\u0430\u0442\u044c \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435. 16 unit-\u0442\u0435\u0441\u0442\u043e\u0432, \u0432\u0441\u0435 \u0437\u0435\u043b\u0451\u043d\u044b\u0435.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043f\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u043b\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0446\u0438\u0444\u0440\u044b \u043d\u0430 \u0441\u0440\u0430\u0432\u043d\u0438\u043c\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435 \u2014 \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438.<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1059238\/\">https:\/\/habr.com\/ru\/articles\/1059238\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041c\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u0441\u0432\u043e\u0439 \u043a\u043e\u0434\u0435\u043a \u0434\u043b\u044f lossless \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438 \u044d\u043a\u0440\u0430\u043d\u0430\u00a0\u043d\u0430\u00a0Rust\u042f \u0410\u0440\u0442\u0443\u0440 \u0412\u0430\u043b\u0438\u0435\u0432, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a EVRT\u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u0444\u043e\u0440\u043a\u043d\u0443\u043b\u0438 RustDesk \u0438 \u043d\u0430\u0447\u0430\u043b\u0438 \u0441\u0442\u0440\u043e\u0438\u0442\u044c EvertyDesk \u2014 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0439 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0441\u0442\u043e\u043b \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 Hyper-V, Proxmox, VirtualBox \u0438 \u0443\u043c\u043d\u044b\u043c \u0430\u0433\u0435\u043d\u0442\u043e\u043c \u2014 \u043f\u0435\u0440\u0432\u043e\u0435, \u0432\u043e \u0447\u0442\u043e \u0443\u043f\u0451\u0440\u043b\u0438\u0441\u044c, \u0431\u044b\u043b\u043e \u0432\u0438\u0434\u0435\u043e.  H.264 \u2014 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0434\u0435-\u0444\u0430\u043a\u0442\u043e. TeamViewer, AnyDesk, Windows App \u2014 \u0432\u0441\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 H.264. \u041e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u041d\u043e \u043e\u043d lossy. \u0418 \u0432\u043e\u0442 \u0437\u0434\u0435\u0441\u044c \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u043f\u0440\u043e remote desktop \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u044f\u0442.\u041a\u043e\u0433\u0434\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u043d\u0430 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u0441\u00a0git diff\u00a0\u0438\u043b\u0438 \u0447\u0438\u0442\u0430\u0435\u0442 \u0442\u0440\u0435\u0439\u0441 \u0432 VSCode \u2014 \u043e\u0434\u0438\u043d \u0440\u0430\u0437\u043c\u044b\u0442\u044b\u0439 \u043f\u0438\u043a\u0441\u0435\u043b\u044c \u0432 \u0431\u0443\u043a\u0432\u0435 \u044d\u0442\u043e \u0443\u0436\u0435 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0438\u043c\u0432\u043e\u043b. H.264 \u043f\u0440\u0438 \u043b\u044e\u0431\u043e\u043c \u0440\u0430\u0437\u0443\u043c\u043d\u043e\u043c \u0431\u0438\u0442\u0440\u0435\u0439\u0442\u0435 \u0432\u043d\u043e\u0441\u0438\u0442 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0441 \u0440\u0435\u0437\u043a\u0438\u043c \u043a\u043e\u043d\u0442\u0440\u0430\u0441\u0442\u043e\u043c. \u0422\u043e\u0447\u043d\u043e \u0442\u0443\u0434\u0430, \u0433\u0434\u0435 \u0443 \u043d\u0430\u0441 \u0432\u0435\u0441\u044c \u0442\u0435\u043a\u0441\u0442. \u042d\u0442\u043e \u043d\u0435\u043f\u0440\u0438\u0435\u043c\u043b\u0435\u043c\u043e.H.264 \u0432 lossless \u0440\u0435\u0436\u0438\u043c\u0435 (QP=0, lossless profile) \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u043d\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0432 \u0434\u0435\u043a\u043e\u0434\u0435\u0440\u0430\u0445 \u2014 \u0447\u0435\u0440\u0435\u0437 \u043f\u0435\u043d\u044c-\u043a\u043e\u043b\u043e\u0434\u0443, \u0430 \u0434\u043b\u044f mostly-static \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u043f\u0440\u0435\u0434\u0438\u043a\u0442\u043e\u0440\u044b \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0434 \u0432\u0438\u0434\u0435\u043e \u0441 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435\u043c \u0434\u0430\u044e\u0442 \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0432\u044b\u0438\u0433\u0440\u044b\u0448 \u043d\u0430\u0434 \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u044b\u043c delta-\u043a\u043e\u0434\u0435\u0440\u043e\u043c.\u041d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u0435\u043d motion estimation. \u041d\u0430\u043c \u043d\u0443\u0436\u043d\u043e: \u0432\u043e\u0442 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u043a\u0430\u0434\u0440, \u0432\u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0438\u0439, \u0432\u043e\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u0437\u043c\u0435\u043d\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u0442\u0430\u0439\u043b\u043e\u0432, \u0441\u043e\u0436\u043c\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0445.\u041c\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 EVRTCK.Wire format\u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0441\u043b\u043e\u0432\u0430\u043c\u0438 \u0441\u043a\u0443\u0447\u043d\u043e. \u0412\u043e\u0442 \u043f\u0430\u043a\u0435\u0442 \u043f\u043e\u0431\u0430\u0439\u0442\u043e\u0432\u043e:SizeFieldNotes04 Bmagic0x45 0x56 0x43 0x4B \u2014 ASCII \u00abEVCK\u00bb41 Bversion0x01 \u2014 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f51 Bflags0x01 = KEYFRAME \u00b7 0x02 = NOP (\u043a\u0430\u0434\u0440 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u0435\u043d \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c\u0443)64 Bframe_idu32 LE, \u043c\u043e\u043d\u043e\u0442\u043e\u043d\u043d\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u044e\u0449\u0438\u0439104 Bwidthu32 LE, \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439144 Bheightu32 LE, \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439182 Bmap_bytesu16 LE = ceil(tile_count \/ 8)20N Btile_map\u0431\u0438\u0442\u043e\u0432\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432: \u0431\u0438\u0442 i \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0435\u0441\u043b\u0438 \u0442\u0430\u0439\u043b i \u0433\u0440\u044f\u0437\u043d\u044b\u043920+N\u2026payloads\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0433\u0440\u044f\u0437\u043d\u044b\u0445 \u0442\u0430\u0439\u043b\u043e\u0432\u041a\u0430\u0436\u0434\u044b\u0439 payload \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u0431\u0430\u0439\u0442\u0430 mode. \u0422\u0440\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f:SOLID0x014 \u0431\u0430\u0439\u0442\u0430 RGBA \u2014 \u0432\u0435\u0441\u044c \u0442\u0430\u0439\u043b \u0437\u0430\u043b\u0438\u0442 \u043e\u0434\u043d\u0438\u043c \u0446\u0432\u0435\u0442\u043e\u043cDELTA0x02u32 length + ZRLE-\u0441\u0436\u0430\u0442\u044b\u0439 XOR-\u0434\u0435\u043b\u044c\u0442\u0430ZSTD0x03u32 length + zstd level-1 XOR-\u0434\u0435\u043b\u044c\u0442\u0430\u0422\u0430\u0439\u043b \u2014 32\u00d732 \u043f\u0438\u043a\u0441\u0435\u043b\u044f = 4096 \u0431\u0430\u0439\u0442 \u0432 BGRA. \u041d\u0430 1080p: 60\u00d734 = 2040 \u0442\u0430\u0439\u043b\u043e\u0432. Tile map: ceil(2040\/8) = 255 \u0431\u0430\u0439\u0442. \u041f\u043e\u043b\u043d\u044b\u0439 \u043f\u0430\u043a\u0435\u0442 \u0434\u043b\u044f 0% dirty = 275 \u0431\u0430\u0439\u0442. \u041f\u0440\u0438 15% dirty (308 \u0433\u0440\u044f\u0437\u043d\u044b\u0445 \u0442\u0430\u0439\u043b\u043e\u0432, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435) \u2014 ~1.7 \u041a\u0411. \u041f\u0440\u043e\u0442\u0438\u0432 7 864 320 \u0431\u0430\u0439\u0442 raw BGRA.  \u041a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u0439\u043b\u0430: \u0442\u0440\u0438 \u0440\u0435\u0436\u0438\u043c\u0430MODE_SOLID\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 1024 \u043f\u0438\u043a\u0441\u0435\u043b\u044f \u0442\u0430\u0439\u043b\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430 \u2014 \u0444\u043e\u043d, \u0437\u0430\u043b\u0438\u0432\u043a\u0430, \u0438\u043a\u043e\u043d\u043a\u0430 \u2014 \u0432\u0435\u0441\u044c payload \u044d\u0442\u043e 5 \u0431\u0430\u0439\u0442 (mode + RGBA). \u0412\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0430\u0449\u0435, \u0447\u0435\u043c \u043a\u0430\u0436\u0435\u0442\u0441\u044f: \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e UI-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u043e\u043d\u043e\u0445\u0440\u043e\u043c\u043d\u044b \u043f\u043e \u0442\u0430\u0439\u043b\u0430\u043c.fn try_solid(tile: &amp;[u8]) -&gt; Option&lt;[u8; 4]&gt; {    let mut chunks = tile.chunks_exact(4);    let first = chunks.next()?;    let color = [first[0], first[1], first[2], first[3]];    for chunk in chunks {        if chunk != color { return None; }    }    Some(color)}\u0414\u043b\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0442\u0430\u0439\u043b\u043e\u0432 \u2014 XOR-\u0434\u0435\u043b\u044c\u0442\u0430 \u043c\u0435\u0436\u0434\u0443 \u0442\u0435\u043a\u0443\u0449\u0438\u043c \u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c \u043a\u0430\u0434\u0440\u043e\u043c, \u0437\u0430\u0442\u0435\u043c \u043a\u043e\u043c\u043f\u0440\u0435\u0441\u0441\u0438\u044f. \u0412\u044b\u0431\u043e\u0440 \u043c\u0435\u0436\u0434\u0443 ZRLE \u0438 zstd: \u0435\u0441\u043b\u0438\u00a0len(zrle) &lt; raw_delta \u00d7 0.9\u00a0\u2014 ZRLE, \u0438\u043d\u0430\u0447\u0435 zstd level 1.ZRLE \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u0435\u043d \u043a\u043e\u0433\u0434\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0431\u0430\u0439\u0442 \u0434\u0435\u043b\u044c\u0442\u044b \u2014 \u043d\u0443\u043b\u0438: \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u043c \u043a\u0443\u0440\u0441\u043e\u0440\u0435, \u043e\u0434\u0438\u043d \u0441\u0438\u043c\u0432\u043e\u043b \u0432 \u0441\u0442\u0440\u043e\u043a\u0435. Runs of zeros \u043a\u043e\u0434\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 2 \u0431\u0430\u0439\u0442\u0430. zstd level 1 (~500 \u041c\u0411\/\u0441 throughput) \u0432\u044b\u0438\u0433\u0440\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0438 \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u044d\u043d\u0442\u0440\u043e\u043f\u0438\u0438 \u0434\u0435\u043b\u044c\u0442\u044b \u2014 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043e\u043a\u043d\u0430, \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u044b\u0439 \u0441\u043a\u0440\u043e\u043b\u043b.\u041e\u0434\u043d\u0430 \u0442\u043e\u043d\u043a\u043e\u0441\u0442\u044c: prev \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 BGRA (raw capture format \u043e\u0442 DXGI\/GDI), \u0430 \u043d\u0430 wire \u043e\u0442\u0434\u0430\u0451\u043c RGBA. \u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u044f \u2014 \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u0431\u043e\u0440\u043a\u0438 \u0442\u0430\u0439\u043b\u0430 \u0432 contiguous \u0431\u0443\u0444\u0435\u0440, \u0431\u0435\u0437 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0445\u043e\u0434\u0430:for y in y0..y1 {    for x in x0..x1 {        let off = (y * width + x) * 4;        \/\/ BGRA \u2192 RGBA: swap \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 0 \u2194 2, G \u0438 A \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u0435\u043c        tile.push(rgba[off + 2]);       \/\/ R        tile.push(rgba[off + 1]);       \/\/ G        tile.push(rgba[off    ]);       \/\/ B        tile.push(rgba[off + 3]);       \/\/ A        tile_prev.push(prev[off + 2]);        tile_prev.push(prev[off + 1]);        tile_prev.push(prev[off    ]);        tile_prev.push(prev[off + 3]);    }}XOR \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0435\u043d: \u043e\u0431\u0430 \u0431\u0443\u0444\u0435\u0440\u0430 \u0432 \u043e\u0434\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435, \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f XOR channel-\u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u0430.\u041f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0437\u043c \u0447\u0435\u0440\u0435\u0437 rayon\u0422\u0430\u0439\u043b\u044b \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b \u2014 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f data-parallel workload. \u041a\u0430\u0436\u0434\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u0447\u0438\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u043e\u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437\u00a0cur\u00a0\u0438\u00a0prev\u00a0(shared read, \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438), \u043f\u0438\u0448\u0435\u0442 \u0432 \u0441\u0432\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e \u0432\u0435\u043a\u0442\u043e\u0440\u0430:let tile_results: Vec&lt;Option&lt;(Vec&lt;u8&gt;, u8)&gt;&gt; = (0..tile_count)    .into_par_iter()    .map(|idx| {        let tx = idx % tiles_x;        let ty = idx \/ tiles_x;        if tile_is_dirty(rgba, prev, width, height, tx, ty) {            Some(encode_tile_buf(rgba, prev, width, height, tx, ty))        } else {            None        }    })    .collect();\u041d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e\u00a0Mutex, \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e\u00a0Arc. Rust ownership \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0441\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438:\u00a0rgba\u00a0\u0438\u00a0prev\u00a0\u2014 shared\u00a0&amp;[u8], \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0438\u0437 \u043b\u044e\u0431\u043e\u0433\u043e \u043f\u043e\u0442\u043e\u043a\u0430;\u00a0tile_results\u00a0\u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0438\u0437 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445\u00a0Vec&lt;u8&gt;.Keyframe throughput: 89 \u041c\u0438\u0411\/\u0441 \u043d\u0430 720p, 91 \u041c\u0438\u0411\/\u0441 \u043d\u0430 1080p, 91 \u041c\u0438\u0411\/\u0441 \u043d\u0430 4K. \u0422\u0440\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043e\u0434\u043d\u0430 \u0446\u0438\u0444\u0440\u0430 \u2014 \u043a\u043e\u0434\u0435\u043a \u0443\u043f\u0451\u0440\u0441\u044f \u0432 memory bandwidth, \u0430 \u043d\u0435 \u0432 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f. Rayon \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0432\u0441\u0435 \u044f\u0434\u0440\u0430, \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0430\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 CPU \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430 \u0431\u0435\u0437 \u0441\u043c\u0435\u043d\u044b \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430.IDR, \u0441\u043c\u0435\u043d\u0430 \u043a\u043e\u0434\u0435\u043a\u0430 \u0438 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u0431\u0430\u0433\u041f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0441 EVRTCK \u0436\u0438\u0432\u0451\u0442 H.264 \u0447\u0435\u0440\u0435\u0437 Media Foundation (Windows) \u0438 NVENC (\u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c NVIDIA). \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u2014 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 dirty ratio \u0438 \u0442\u0438\u043f\u0430 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430. \u0414\u043b\u044f \u0432\u0438\u0434\u0435\u043e\u043f\u043e\u0442\u043e\u043a\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0438\u043b\u0438 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0439 EVRTCK \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0435\u0442: \u043e\u043d lossless, \u0443 \u043d\u0435\u0433\u043e \u043d\u0435\u0442 motion compensation, \u0438 \u043f\u0440\u0438 90% dirty \u043e\u043d \u0448\u043b\u0451\u0442 \u0432\u0441\u0435 \u0433\u0440\u044f\u0437\u043d\u044b\u0435 \u0442\u0430\u0439\u043b\u044b \u0446\u0435\u043b\u0438\u043a\u043e\u043c.\u041e\u0434\u0438\u043d \u0438\u0437 \u043f\u0435\u0440\u0432\u044b\u0445 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0445 \u0431\u0430\u0433\u043e\u0432: \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 H.264 \u2192 EVRTCK \u043a\u043b\u0438\u0435\u043d\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u043b \u043f\u0435\u0440\u0432\u044b\u0439 P-frame EVRTCK \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u043b \u0435\u0433\u043e \u043a \u043d\u0443\u043b\u0435\u0432\u043e\u043c\u0443 \u0431\u0443\u0444\u0435\u0440\u0443 (\u0441\u0432\u0435\u0436\u0435\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439\u00a0prev). \u0412\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u0443\u0441\u043e\u0440 \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434 \u0434\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e IDR.\u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 IDR \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438. \u041d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0441\u0442\u044c: \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0434\u0432\u0443\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0435. \u041f\u0440\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0435 EVRTCK \u2192 H.264 H.264 \u0434\u0435\u043a\u043e\u0434\u0435\u0440 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u0442\u043e\u0436\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c IDR, \u0438\u043d\u0430\u0447\u0435 \u043e\u043d \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442 P-frame \u0434\u0435\u043b\u044c\u0442\u044b \u043a \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u043c\u0443 \u043e\u043f\u043e\u0440\u043d\u043e\u043c\u0443 \u043a\u0430\u0434\u0440\u0443.\/\/ \u041d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e: \u0442\u043e\u043b\u044c\u043a\u043e H264\u2192EVRTCKif evrt_on &amp;&amp; !was_evrt_on { force_recovery_key = true; }\/\/ \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e: \u043e\u0431\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044fif evrt_on != was_evrt_on {    force_recovery_key = true;}was_evrt_on = evrt_on;IDR_MIN_EVRTCK = 10\u00a0\u0441\u0435\u043a\u0443\u043d\u0434 \u043f\u0440\u043e\u0442\u0438\u0432\u00a0IDR_MIN_H264 = 1200\u00a0\u043c\u0441. EVRTCK \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u044c \u0441\u0435\u0431\u0435 \u0440\u0435\u0434\u043a\u0438\u0435 keyframe-\u044b: P-frame \u0434\u0430\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 10 \u0441\u0435\u043a\u0443\u043d\u0434 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u043d\u0430 UI-\u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0435 \u0432\u0435\u0441\u0438\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u0438\u043b\u043e\u0431\u0430\u0439\u0442. H.264 \u043d\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u0447\u0430\u0441\u0442\u044b\u0445 IDR \u0434\u043b\u044f recovery \u043f\u0440\u0438 \u043f\u043e\u0442\u0435\u0440\u0435 \u043f\u0430\u043a\u0435\u0442\u043e\u0432.  NOP frame: \u0447\u0435\u0441\u0442\u043d\u043e \u043e\u0431 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438\u0421\u0430\u043c\u044b\u0439 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u044b\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0432 enterprise remote desktop: \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0447\u0438\u0442\u0430\u0435\u0442 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442, \u0436\u0434\u0451\u0442 \u0434\u0435\u043f\u043b\u043e\u044f, \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0432 Confluence. \u041a\u0430\u0434\u0440\u044b \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u044b. \u0414\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438:Rayon \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b 2040 \u0437\u0430\u0434\u0430\u0447 \u043d\u0430 1080p. \u041a\u0430\u0436\u0434\u0430\u044f \u0447\u0438\u0442\u0430\u043b\u0430 \u0441\u0442\u0440\u043e\u043a\u0438 \u0442\u0430\u0439\u043b\u0430 \u0441 stride-ed \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u0447\u0435\u0440\u0435\u0437 7680 \u0431\u0430\u0439\u0442 (\u0448\u0438\u0440\u0438\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0438 1920\u00d74 \u0431\u0430\u0439\u0442\u0430). \u041d\u0438 \u043e\u0434\u043d\u0430 \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. \u0418\u0442\u043e\u0433\u043e:\u00a03.17 \u043c\u0441\u00a0\u043d\u0430 \u0445\u043e\u043b\u043e\u0441\u0442\u043e\u043c \u0445\u043e\u0434\u0443 \u043f\u0440\u0438 30 fps.\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u043e \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u043e: \u043e\u0434\u0438\u043d\u00a0rgba == prev\u00a0\u043f\u0435\u0440\u0435\u0434 rayon-\u0446\u0438\u043a\u043b\u043e\u043c. Rust \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u043b\u0430\u0439\u0441\u043e\u0432 \u0432 \u0432\u044b\u0437\u043e\u0432\u00a0memcmp, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430 x86-64 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0447\u0435\u0440\u0435\u0437 AVX2 \u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442 32 \u0431\u0430\u0439\u0442\u0430 \u0437\u0430 \u0442\u0430\u043a\u0442. \u041f\u0440\u0438 bandwidth ~50 \u0413\u0411\/\u0441 \u044d\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0437\u0430\u043d\u044f\u0442\u044c ~0.15 \u043c\u0441.\/\/ \u0411\u044b\u0441\u0442\u0440\u044b\u0439 \u043f\u0443\u0442\u044c: \u043a\u0430\u0434\u0440 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u0435\u043d \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c\u0443if !is_keyframe &amp;&amp; rgba == prev {    let mut out = Vec::with_capacity(20);    out.extend_from_slice(MAGIC);    out.push(VERSION);    out.push(FLAG_NOP);              \/\/ 0x02    out.extend_from_slice(&amp;frame_id.to_le_bytes());    out.extend_from_slice(&amp;(width as u32).to_le_bytes());    out.extend_from_slice(&amp;(height as u32).to_le_bytes());    out.extend_from_slice(&amp;0u16.to_le_bytes()); \/\/ map_bytes = 0    return (out, FrameStats::default());}\/\/ Criterion: 2.93 \u043c\u0441. \u0423\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u0435 \u2014 8%.\u041f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435 20\u00d7.\u00a0rgba == prev\u00a0\u2014 \u044d\u0442\u043e\u00a0memcmp\u00a0\u0434\u0432\u0443\u0445 \u0431\u0443\u0444\u0435\u0440\u043e\u0432 \u043f\u043e 8.29 \u041c\u0411 \u043a\u0430\u0436\u0434\u044b\u0439. \u041e\u0431\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 L3 \u043a\u044d\u0448\u0430. \u041e\u0431\u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u0438\u0437 RAM: 16.58 \u041c\u0411 \u043f\u0440\u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c DDR4 bandwidth ~5\u20136 \u0413\u0411\/\u0441 = ~2.8\u20133 \u043c\u0441. Rayon \u0440\u0430\u043d\u044c\u0448\u0435 \u0447\u0438\u0442\u0430\u043b \u0440\u043e\u0432\u043d\u043e \u0442\u0435 \u0436\u0435 16.58 \u041c\u0411, \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 strided-\u0434\u043e\u0441\u0442\u0443\u043f \u0441 overhead \u043d\u0430 2040 \u0437\u0430\u0434\u0430\u0447 \u2014 \u0432\u043e\u0442 \u044d\u0442\u0438 ~0.24 \u043c\u0441 \u043c\u044b \u0438 \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u043b\u0438.\u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0430\u044f \u043f\u043e\u0431\u0435\u0434\u0430 \u0434\u0440\u0443\u0433\u0430\u044f: \u043f\u0430\u043a\u0435\u0442 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u043b\u0441\u044f \u0441 275 \u0431\u0430\u0439\u0442 \u0434\u043e 20 \u0431\u0430\u0439\u0442. \u0414\u0435\u043a\u043e\u0434\u0435\u0440 \u043f\u0440\u0438\u00a0FLAG_NOP\u00a0\u0447\u0438\u0442\u0430\u0435\u0442 header, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 prev \u043a\u0430\u043a \u0435\u0441\u0442\u044c \u2014 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043d\u043e\u043b\u044c \u0440\u0430\u0431\u043e\u0442\u044b. \u041f\u0440\u0438 30 fps \u043d\u0430 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u043e\u043c \u044d\u043a\u0440\u0430\u043d\u0435:  \u0414\u043e 61 \u041a\u0431\u0438\u0442\/\u0441 30 \u00d7 275 \u0431\u0430\u0439\u0442\/\u043a\u0430\u0434\u0440 \u00d7 8 \u041f\u043e\u0441\u043b\u0435 5 \u041a\u0431\u0438\u0442\/\u0441 30 \u00d7 20 \u0431\u0430\u0439\u0442\/\u043a\u0430\u0434\u0440 \u00d7 8Benchmark: Criterion, \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430\u0412\u0441\u0435 \u0437\u0430\u043c\u0435\u0440\u044b: Criterion 0.5, 100 \u0441\u044d\u043c\u043f\u043b\u043e\u0432,\u00a0opt-level=3 lto=thin, Windows 11 x86-64, CPU backend (GPU Phase 2 \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435).\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439\u0412\u0440\u0435\u043c\u044fThroughputKeyframe 720p39.4 \u043c\u044189.3 \u041c\u0438\u0411\/\u0441Keyframe 1080p86.7 \u043c\u044191.2 \u041c\u0438\u0411\/\u0441Keyframe 4K344.6 \u043c\u044191.8 \u041c\u0438\u0411\/\u0441P-frame 0% dirty \u2014 NOP path2.93 \u043c\u04412.63 \u0413\u0438\u0411\/\u0441P-frame 5% dirty \u2014 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043a\u0443\u0440\u0441\u043e\u0440\u04303.17 \u043c\u04412.44 \u0413\u0438\u0411\/\u0441P-frame 15% dirty \u2014 \u043f\u0435\u0447\u0430\u0442\u044c \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u04353.34 \u043c\u04412.31 \u0413\u0438\u0411\/\u0441P-frame 50% dirty \u2014 \u0441\u043a\u0440\u043e\u043b\u043b \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u04354.18 \u043c\u04411.85 \u0413\u0438\u0411\/\u0441P-frame 90% dirty \u2014 \u0432\u0438\u0434\u0435\u043e \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u04355.37 \u043c\u04411.44 \u0413\u0438\u0411\/\u0441Roundtrip encode+decode 1080p 15%3.99 \u043c\u04411.94 \u0413\u0438\u0411\/\u044130 fps \u0431\u044e\u0434\u0436\u0435\u0442 = 33.3 \u043c\u0441. \u0414\u0430\u0436\u0435 \u043f\u0440\u0438 90% dirty \u043c\u044b \u0432 6.2\u00d7 \u0437\u0430\u043f\u0430\u0441\u0435. \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0447\u0442\u043e \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 0% \u0438 5% dirty \u2014 \u043f\u043e\u0447\u0442\u0438 \u043d\u043e\u043b\u044c: overhead rayon \u0438 tile scan \u043d\u0430 1755 \u0447\u0438\u0441\u0442\u044b\u0445 \u0442\u0430\u0439\u043b\u0430\u0445 \u0434\u043e\u043c\u0438\u043d\u0438\u0440\u0443\u0435\u0442 \u043d\u0430\u0434 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c 102 \u0433\u0440\u044f\u0437\u043d\u044b\u0445.Wire size (\u0441\u0438\u043d\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0444\u0440\u0435\u0439\u043c\u044b \u0441 solid-color \u0442\u0430\u0439\u043b\u0430\u043c\u0438 \u2014 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435, \u043f\u043e\u0440\u044f\u0434\u043a\u0438 \u0442\u0435 \u0436\u0435):DirtyEncodedvs 7.91 \u041c\u0438\u0411 raw0%20 \u0411393 216:15%779 \u041110 648:115%1.7 \u041a\u04114 642:150%5.2 \u041a\u04111 551:190%9.2 \u041a\u0411877:1\u0413\u0434\u0435 \u043c\u044b \u0441\u043b\u0430\u0431\u044b \u2014 \u0447\u0435\u0441\u0442\u043d\u043eDirty detection \u0437\u0430\u0432\u044f\u0437\u0430\u043d \u043d\u0430 CPU scanWindows Desktop Duplication API (IDXGIOutputDuplication::AcquireNextFrame) \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 dirty rectangles \u043a\u0430\u043a \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u043a \u0437\u0430\u0445\u0432\u0430\u0447\u0435\u043d\u043d\u043e\u043c\u0443 \u043a\u0430\u0434\u0440\u0443 \u2014 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e, \u0431\u0435\u0437 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439 \u043c\u044b \u0438\u0445,\u00a0tile_is_dirty\u00a0\u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u0432\u043e\u043e\u0431\u0449\u0435. \u042d\u0442\u043e Phase 2: WGPU-\u0431\u044d\u043a\u0435\u043d\u0434 \u0443\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 GPU-\u0431\u0443\u0444\u0435\u0440\u044b \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435, \u043d\u043e \u043f\u043e\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 CPU fallback.\u041d\u0435\u0442 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 \u0440\u0430\u0441\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438\u0415\u0441\u043b\u0438 TCP-\u0431\u0443\u0444\u0435\u0440 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0438\u043b\u0441\u044f \u0438 \u043f\u0430\u043a\u0435\u0442 \u043f\u043e\u0442\u0435\u0440\u044f\u043b\u0441\u044f \u2014\u00a0prev\u00a0\u0443 \u044d\u043d\u043a\u043e\u0434\u0435\u0440\u0430 \u0438 \u0434\u0435\u043a\u043e\u0434\u0435\u0440\u0430 \u0440\u0430\u0441\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e IDR (\u0434\u043e 10 \u0441\u0435\u043a\u0443\u043d\u0434). \u041d\u0443\u0436\u0435\u043d: frame hash \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u043f\u0430\u043a\u0435\u0442\u0435 \u0438 out-of-band \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0430 IDR \u0434\u0435\u043a\u043e\u0434\u0435\u0440\u043e\u043c \u043f\u0440\u0438 mismatch. \u0421\u0435\u0439\u0447\u0430\u0441 \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u0442.TILE_SIZE = 32 \u0437\u0430\u0445\u0430\u0440\u0434\u043a\u043e\u0436\u0435\u043d\u0414\u043b\u044f 4K \u0440\u0430\u0437\u0443\u043c\u043d\u0435\u0435 64 \u0438\u043b\u0438 128: tile_map overhead \u0438 per-tile spawn cost \u043f\u0440\u0438 2040 \u0442\u0430\u0439\u043b\u0430\u0445 \u043f\u0435\u0440\u0435\u0432\u0435\u0448\u0438\u0432\u0430\u044e\u0442 \u043f\u0440\u0438\u0440\u043e\u0441\u0442 \u043e\u0442 \u0442\u043e\u0447\u043d\u043e\u0433\u043e dirty detection. \u0414\u043b\u044f \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 (Android, 720p) \u2014 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e 16.Rayon overhead \u043f\u0440\u0438 sparse dirty\u041f\u0440\u0438 &lt; 50 \u0433\u0440\u044f\u0437\u043d\u044b\u0445 \u0442\u0430\u0439\u043b\u0430\u0445 sequential encode \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0447\u0435\u043c spawn 2040 rayon-\u0437\u0430\u0434\u0430\u0447. Adaptive threshold: \u0435\u0441\u043b\u0438\u00a0dirty_count &lt; 50\u00a0\u2014 sequential, \u0438\u043d\u0430\u0447\u0435 \u2014 rayon. \u041d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e.90% dirty \u2192 \u043b\u0443\u0447\u0448\u0435 IDR \u0447\u0435\u043c P-frame\u041f\u0440\u0438 \u0432\u044b\u0441\u043e\u043a\u043e\u043c dirty_ratio overhead \u043d\u0430 tile_map, per-tile headers \u0438 2040 rayon-\u0437\u0430\u0434\u0430\u0447 \u0434\u0435\u043b\u0430\u0435\u0442 keyframe &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-487317","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/487317","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=487317"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/487317\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=487317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=487317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=487317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}