perf(vk): read the picture's own pixel for the window filter at the window's own size #3217
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!3217
Loading…
Reference in a new issue
No description provided.
Delete branch "klimovich008/Longshot:perf/filter-1to1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
What was wrong: with the Window scaling filter on Catmull-Rom or Lanczos, the last pass, which fits the game's picture to the window, still ran the filter's 16 taps for every pixel when the picture is shown at its own size. That happens with an Output resolution at the window's size (the menu's filter row then reads "Not needed (window = output)"), the default on 1080p and 1440p screens, and on the Steam Deck, whose 16:9 picture sits between bars on its 16:10 screen (1280x720 on 1280x800). At that size both filters weigh 1 at the pixel itself and 0 at every other pixel, so all that work returned the picture's own pixel.
What this changes: there the pass now reads that pixel directly:
fg_scale.comp's new mode 3, onetexelFetchat the crop's corner plus the window pixel, kept in the crop as the filter's taps are.framegen_scalechooses it when the checked crop is the window's size and no ultrawide menu side is drawn.The result: the same picture for less GPU time. On the Steam Deck's GPU, every 8-bit code Catmull-Rom and Lanczos stored at 1:1 is the one mode 3 stores, from 1280x720 to 7680x2160 (Testing). The pass alone takes 0.10 ms instead of 0.94 ms with Lanczos (0.85 ms with Catmull-Rom) on the Steam Deck at 1280x720, its GPU held at 1300 MHz as the game holds it, and 0.89 ms instead of 9.08 ms at 3840x2160 (Measurements).
Who it affects: players whose picture is shown at its own size with the filter on Catmull-Rom or Lanczos. On PCs that is the default on 1080p and 1440p screens: the Output resolution is the game's 2560x1440, or the screen's size where that is smaller, so the picture is the window's size, and the presets Auto picks above Minimum use Lanczos (Low, High, Ultra; #3100) or Catmull-Rom (Balanced). On the Steam Deck the default is not affected: Auto picks Minimum and sets its filter Off. A Deck player who chooses Catmull-Rom or Lanczos is affected (the Deck's 16:9 picture is 1280x720, between bars on its 1280x800 screen). It also applies to frame generation's made frames, headless runs and shots, which go through the same function.
Unchanged: a picture that is scaled (any other size), the Off filter, and the picture beside an ultrawide menu's sides, black or blurred, whose soft edge mixes the filter's own result. The pass itself still runs, with its image, its alpha, and what reads it afterwards (the HDR pass, the output effects, the blit). No switch and no setting are added, and no shader-cache input changes (
fg_scale.compis not part of the translator's stamp), so no player prepares shaders again.Read first:
framegen_scaleingpu/vk/vk_framegen.cpp(theone_to_oneline and the push constants), then the end ofmain()ingpu/vk/shaders/fg_scale.comp.Prior work: none found (searched for window filter, "Not needed",
fg_scale, upscale 1:1, window scaling, Lanczos,texelFetch). #2706 also changed how this pass samples cropped pictures, but not the 1:1 case. #2542 (WIP) would have the Output resolution a player never chose fit their window, which makes this 1:1 case more common. No open PR changes the files this one does, apart from #2515, which already conflicts with main invk_framegen.cpp; this branch adds no file to its conflicts.Testing
Tested: in the game on a Steam Deck OLED (SteamOS 3.9.5, kernel 7.2.7, Mesa 26.2.0-devel RADV, 4 cores / 8 threads, AC power, stock 15 W). main
f8b54338againstf8b54338with this change (the same renderer lines as the head; later commits changed tests only), each built from source on the Deck. The game kept its window under gamescope's headless backend at 1280x720 (the harness's--gamescope; output and picture 1280x720), with Lanczos. WithRX_VK_UPSCALE_LOG=1every main run loggedupscale dispatched: mode 2, source 1280x720 ... destination 1280x720, and every run of this change loggedmode 3 (the filter 2), source 1280x720 ... destination 1280x720. Market as a child, 3 alternating pairs, 150 s lead; no crash or Vulkan error. Then at 1920x1080 and 2560x1440, the window, the Output resolution and the picture all that size (HOS_WINDOW_SIZE,--gamescope, Render resolution 100 %), where the GPU's work is most of the frame: the same log lines at those sizes, no crash or Vulkan error (Measurements).The picture, on the GPU: a standalone Vulkan program (not part of this PR; its source, and the timing program's below, can be posted on request) ran
fg_scale.compfrom this branch on the Deck's GPU at 1:1 over a picture of random codes (fixed seed). It stored the window with Catmull-Rom, with Lanczos and with mode 3, read all three back, and compared them code by code:The sRGB rows are the filters' own arithmetic error crossing a rounding point, which mode 3 does not have; the commit message names this case. Negative control: the same shader with mode 3 reading the next pixel over fails (2,751,546 of 2,764,800 codes differ at 1280x720).
Checks: the related tests pass (
test_fg_scale_sharpen,test_upscale_independent,test_sharpen,test_temporal_present_bandwidth,test_hdr_encode,test_crt_policy,test_present_aspect,test_upscaler_rows,test_output_trial,test_capture_dimensions).test_present_aspect_vulkancannot link on the Deck (no-lvulkanthere), the same as on main. ruff andgit diff --checkare clean. The tests check what the code does, not its spelling (the second commit, after review).test_upscale_independentrunsframegen_scaleover the window sizes and crops as played, with frame generation on and headless, beside menu sides of three widths, with the filter Off too, one call after another as the window is resized, and with a filter the menu changes while it is read: mode 3 exactly at the checked crop's own size with no sides, every pass into an image of its window's size, and the upscale log's line naming the very mode dispatched and the filter chosen, for a table of first calls (each filter, each kind of side, a picture of the window's size, cropped, larger and smaller).test_fg_scale_sharpencompilesfg_scale.compitself (both builds) as C++ and runs every invocation of a dispatch asframegen_scalemakes it: at 1:1 mode 3 stores every pixel once, opaque, its picture pixel's value exactly, from one read; at any other size every read stays in the crop; Catmull-Rom, Lanczos and the Off filter's plain pass at 1:1 give the same codes, their reads in the crop. Each commit message lists its negative controls (41 for the tests' second commit), each failing as expected, and the equivalent rewrites that pass (14). 25 rounds of a second-opinion review (gpt-6.2-sol); rounds 6 to 25 found no runtime defect, and every test gap they found in this PR's lines is closed.Still to test:
RX_VK_UPSCALE_LOG=1. Expectmode 3 (the filter 2)in this PR's log andmode 2in main's, the same picture, and no fps loss (a small gain where the GPU limits the whole frame) (@Beanstalk).RX_VK_UPSCALE_LOG=1logsmode 3 (the filter 2), source 1280x720 ... destination 1280x720, and the picture looks the same (by hand).Measurements
Verdict: At 1:1 the pass takes about 89 % less GPU time: 0.83 ms a frame with Lanczos (0.75 ms with Catmull-Rom) at the Steam Deck's 1280x720, 2.0 ms at 1920x1080, 3.4 ms at 2560x1440 and 8.2 ms at 3840x2160, on the Deck's GPU; the existing filters' own times are unchanged. In the game on the Steam Deck at 15 W, fps does not move, at 1280x720 (CPU-bound) nor at 1920x1080 and 2560x1440 where the GPU's work is most of the frame: on the Deck's thread shape the frame is about 10 ms longer than the GPU's work at every size, and this pass runs in that wait. What changes there is the GPU's load: at 1920x1080 it is busy 74 % of the time instead of 90 %, and the APU draws 15.1 W instead of 15.7 W. A gain in fps needs a GPU that is busy the whole frame (desktop GPU limits; Still to test).
Setup: Steam Deck OLED, SteamOS 3.9.5, Mesa 26.2.0-devel RADV, stock 15 W, AC power.
The pass alone (the standalone program above:
fg_scale.compat 1:1, RGBA8, 64 dispatches between two GPU timestamps, a barrier after each, 15 rounds after a warm-up round, amdgpu held at its peak power state (1300 MHz at every batch) as the renderer holds it on the Deck (vk_gpu_clock.cpp); main's shader and this branch's interleaved in every round, in rotated order, with the GPU clock read around each batch). Median GPU time a frame:f359e262, Catmull-Romf359e262, Lanczos185051fb(mode 3)Saved a frame against Lanczos (Catmull-Rom): 0.833 ms (0.751 ms) at 1280x720, 0.903 ms (0.828 ms) at 1280x800, 2.045 ms (1.680 ms) at 1920x1080, 3.400 ms (2.974 ms) at 2560x1440, 8.195 ms (6.676 ms) at 3840x2160: 89 to 90 % of the pass. (fg_scale.comp is the same at
f359e262andf8b54338, and at feef390f, the earlier head the program took it from,185051fband the heade086045f.)This branch's shader ran Catmull-Rom and Lanczos within 0.2 % of main's at every size (at 1280x720: 0.8531 against 0.8545 ms, 0.9345 against 0.9365 ms), so mode 3's branch costs the other modes nothing measurable.
In the game (Market child, uncapped,
--lead 150steady state, the Deck's own thread shape, 3 alternating pairs; pair 1 was skipped because its main run swapped 183 MB in its window, so 2 pairs counted):f8b54338185051fb, on mainf8b54338mode 2mode 3 (the filter 2)In the game where the GPU's work is most of the frame (BeanBot's L1): the game windowed at 1920x1080 under gamescope's headless backend, Output resolution 1920x1080, Render resolution 100 %, Lanczos, so the pass is 1:1 (main logged
mode 2, source 1920x1080 ... destination 1920x1080, this changemode 3 (the filter 2)); Market child, uncapped,--lead 150, 4 alternating pairs, 15 W. The Deck's harness counted only one run: it refuses a run whose window saw over 64 MB of swap-ins, and at this size the game's own memory (1.2 to 1.5 GB of it swapped out while it loads) is re-read in the window in most runs. Every run is listed, as their numbers agree:f8b54338185051fb, on mainf8b54338At 2560x1440 (the same setup, 2560x1440 everywhere): main 18.75, 18.31, 18.89, 18.49 fps (GPU busy 94.8, 85.9, 89.2, 88.9 %), this change 18.76 fps (82.9 %); the GPU's work 43 ms of a 53 ms frame. Main's runs there were all refused (swap-ins of 0.6 to 0.8 GB, or one game-clock probe in the window at 18 fps), so this size was not finished.
Risks
What could break: the window would show a wrong pixel at 1:1 if mode 3's read were wrong. The GPU check above and the tests rule out an offset, a sampled read, or a read outside the crop. A developer's
RX_VK_SHADER_DIRoverride offg_scalebuilt from an earlier tree reads mode 3 as its tent filter; build the override from this tree'sfg_scale.comp, as for any change to the pass's push constants. A revert is enough to undo the change; no switch turns it off.What a player notices after updating: nothing on screen. Where the GPU limits the whole frame, slightly more fps at 1:1 with Catmull-Rom or Lanczos; on the Steam Deck, a less busy GPU at the same fps.
Not covered: discrete GPUs and Windows (Still to test). Native HDR's 10-bit picture is covered by the tests (the
FG_SCALE_PQbuild, mode 3 dispatched for it), not by the GPU check above, which ran 8-bit pictures.Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named): its two steps on the Deck (gen-shaders allwith the system's glslang 16.3.0, the pinned 16.6.0 not being there, thenrun_all.py --strict), this branch and mainf359e262alike: 210 failing cases in 134 test files, the same set on both, none only on this branch. They are the tools this Deck lacks under--strict(clang, clang++, the SPIR-V headers, cmake, zstandard) and the checks that need them; every test this PR changes or touches passes.main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
tests/that reads changed source is updated, not weakened.fg_scale.compchanged; its headers are generated bygen-shaders(none are checked in), here and in every build of this branch.Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.🤖 Generated with Claude Code
https://claude.ai/code/session_012MibRabbL9JhKKrsNVaBfg
@Beanstalk windows and linux, PCs with a discrete GPU (NVIDIA, AMD and Intel, whichever are free), this PR's head and main: Window scaling filter Lanczos, Output resolution at the window's size (the filter row then reads "Not needed (window = output)"), uncapped (frame_rate_cap=6, vsync=2),
RX_VK_UPSCALE_LOG=1, the Market for 3 minutes a side. Expectupscale dispatched: mode 3 (the filter 2)with the window's size as source and destination in this PR's log andmode 2in main's, no crash or device loss, and no fps loss (a small gain where the GPU limits the frame rate).@review
Recommendation: Approve. The new path substantially reduces the scaler’s GPU time in isolation, but an in-game gain has not been demonstrated. The affected desktop GPUs and the Steam Deck’s actual 16:10 presentation path still need testing. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.
At a 1:1 picture size, the window filter fetches the corresponding source pixel instead of running the Catmull-Rom or Lanczos kernel. This saves work in the pass at the cost of an additional shader mode and implementation-specific test assertions.
Should fix (1): not blocking, but worth doing before merging.
tests/test_upscale_independent.py:76: The new checks require the implementation and even its comment to match literal source text, despite the fixture already exercising the routing behavior. (more on the line) Do: Keep the behavioral matrix and log assertions, and replace the literal implementation checks with behavior-focused checks that allow equivalent code.Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
gpu/vk/vk_framegen.cpp:1401: The measured pass saving has not yet produced a demonstrated player-facing gain. (more on the line) Do: Measure base and head in an in-game GPU-limited 1:1 scene with interleaved runs, reporting FPS, 1% lows and frame times.gpu/vk/shaders/fg_scale.comp:115: The new shader path still needs runs on the supported systems it affects. (more on the line) Do: Run the requested base-versus-head desktop GPU and Deck Game Mode checks, and compare Native HDR output on a supported HDR setup.@fixcan do L3.Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven in game. On the Steam Deck, the standalone pass measured 0.936 ms before and 0.104 ms after at 1280x720 with Lanczos; two counted in-game pairs had median FPS fall from 44.24 to 43.28, within the reported spread, with 1% lows of 25.9 and 24.9.
Other systems: The path also runs for Native HDR, output effects, frame-generated frames, headless output and captures. The routing tests cover several of these, but the GPU comparison covered 8-bit pictures on RADV only; Windows, discrete GPUs, Native HDR pixels and the Deck’s letterboxed Game Mode remain unverified.
Switches: No switches added, changed or removed. RX_VK_UPSCALE_LOG now reports both the dispatched mode and selected filter; its default is unchanged.
Reviewed:
185051fbdeagainstf359e26213: Read AGENTS.md, CONTRIBUTING.md, docs/dev/standards.md, the PR template, the diff and commit message, the changed shader and test files, and the changed framegen function with its present caller and related references. Skimmed the rest of the large renderer files. docs/review-checklist.md and ../Tooling/AGENTS.md were absent. No generated files or recorded runs were changed.; nothing run (a code review).Checked and fine:
Testing: Read-only review; no builds, tests or project scripts were run. The supplied CI checks are still running.
Overlaps and merge order: The PR reports #2542 as making the case more common and #2515 as touching vk_framegen.cpp; no merge order was established from the available offline evidence.
Automated code review by BeanBot (gpt-6.1-terra), asked for by klimovich008. Nothing was run; a maintainer decides.
@ -112,0 +112,4 @@// Catmull-Rom's and Lanczos' 16 taps come to there (tests/test_fg_scale_sharpen.py); kept in the crop as their taps// are, whatever size dst has)const ivec2 own = ivec2(pc.crop_x, pc.crop_y);vec3 c = pc.mode == 3 ? texelFetch(src, clamp(own + g, own, own + ivec2(pc.crop_w, pc.crop_h) - 1), 0).rgb : filtered(uv);L2 (should fix): The new shader path still needs runs on the supported systems it affects.
When: The pixel comparison used 8-bit inputs on the Deck’s RADV GPU, while desktop Windows and Linux drivers, Native HDR’s 10-bit path, and the Deck’s 1280x800 letterboxed presentation also execute this fetch.
Do: Run the requested base-versus-head desktop GPU and Deck Game Mode checks, and compare Native HDR output on a supported HDR setup.
@ -1397,0 +1398,4 @@// are 0 at every other pixel there, so their 16 taps and weights a pixel came to the picture's own pixel, within less// than half an 8-bit step (tests/test_fg_scale_sharpen.py): the pass reads that pixel instead, exactly (fg_scale.comp's// mode 3, one texelFetch). Not beside an ultrawide menu, either side: its soft edge mixes the filter's own result)const bool one_to_one = source.w == dw && source.h == dh && !wide.side;L1 (should fix): The measured pass saving has not yet produced a demonstrated player-facing gain.
When: The only in-game comparison was CPU-bound and its two counted pairs overlap in spread; the isolated dispatch does not establish the effect on frame pacing or FPS when this pass is on the critical path.
Do: Measure base and head in an in-game GPU-limited 1:1 scene with interleaved runs, reporting FPS, 1% lows and frame times.
@ -67,0 +73,4 @@"framegen_scale: a preprocessor line in it: the fixture checks one build only"# (mode 3's condition, word for word: the fixture's matrix checks what it does with the sizes and sides, and nothing# else may decide it, frame generation's made frames, headless runs and shots included, all of which call this)assert '''L3 (should fix): The new checks require the implementation and even its comment to match literal source text, despite the fixture already exercising the routing behavior.
When: Renaming the local filter variable or rewording its comment without changing any dispatch makes this test fail; the shader test similarly requires the exact spelling of its final statements.
Do: Keep the behavioral matrix and log assertions, and replace the literal implementation checks with behavior-focused checks that allow equivalent code.
Pushed
e086045f(tests only; the renderer change is185051fb, unchanged). The description now has the Deck's in-game 1080p and 1440p runs, the suite result, and every Measurements column named by its commit.Answers to the review (BeanBot,
185051fb):L3 (literal checks): done in
e086045f. Both tests now check what the code does, and allow equivalent code:test_upscale_independent: no source pins left (only the existing no-preprocessor-line check). The fixture runsframegen_scaleover the window sizes and crops as played, with frame generation on and headless, beside menu sides of three widths, with the filter Off too and as the window is resized, and checks the whole window is dispatched into an image of its size. For a table of first calls (each filter, each kind of side, a picture of the window's size, cropped, larger, smaller) the log line must name the very mode dispatched and the filter chosen. It also runs with a filter the menu changes while the scaler reads it (at each reading, or once after the first, second or third), for the SDR picture and Native HDR's: the log line must name the mode and filter that were dispatched. Renamingfilter,const auto filter, or a reworded comment pass.test_fg_scale_sharpen: the tail pin is gone. The test compilesfg_scale.compitself (both builds) as C++ and runs every invocation of a dispatch asframegen_scalemakes it (its push-constant bytes, its group count, the shader's local size). Mode 3 must store every pixel once, opaque, as the picture pixel's exact value, from one read. At any other window size every read must stay in the crop, and nothing GLSL leaves undefined may happen. Catmull-Rom, Lanczos and the Off filter's plain pass at 1:1 must give the same codes. An if/else form, renamed locals,vec4(c.r, c.g, c.b, 1.0),.xyzorvoid main ()pass.L1 (an in-game GPU-limited 1:1 measurement): measured on the Steam Deck, no fps change. At 1920x1080 and 2560x1440 (window, output and picture all that size, Lanczos, 15 W), the GPU's own work is 28 and 43 ms of 37 and 53 ms frames. fps, frame times and 1 % lows match: 26.97–27.40 vs 26.76–27.29 fps at 1080p. But the GPU is less busy: 74 % instead of 90 % at 1080p, and the APU draws 15.1 W instead of 15.7 W (Measurements, every run listed).
L2: desktop discrete GPUs via the farm (requested below). The Deck in Game Mode at 1280x800 and Native HDR on an HDR screen are by-hand checks in Still to test.
🤖 Generated with Claude Code
https://claude.ai/code/session_012MibRabbL9JhKKrsNVaBfg
@Beanstalk windows and linux, PCs with a discrete GPU (NVIDIA, AMD and Intel, whichever are free), this PR's head and main, at the farm's own 1920x1080 headless output with Render resolution 100 %, so the picture is the output's size (1:1): Window scaling filter Lanczos (
LONGSHOT_SET=system/graphics:upscaling=2,system/graphics:resolution=1), uncapped (frame_rate_cap = 6,vsync = 2,frame_generation = 0),RX_VK_UPSCALE_LOG=1, the Market, three starts a side. Expectupscale dispatched: mode 3 (the filter 2)in this PR's log (main logsmode 2); the same pictures; frame times and GPU time the same or better within the noise; no crash or device loss. One-start metrics (run_hitch_count,run_frametime_max_ms) report-only.Beanstalk test farm · 🔄 testing (0 of 6 reports so far)
Commit
e086045· approved by klimovich008 (reviewed) · dashboard⚠️ Note: The expected log rule judges the PR only; main's mode-2 log is recorded but cannot be required by that rule.
⚠️ Note: GPU total time is measured rather than the scaler pass alone, and a CPU-limited run may hide an in-game frame-time gain.
⚠️ Note: The Deck's letterboxed Game Mode presentation and Native HDR output are not covered by this headless desktop plan.
Done (started 03:58 UTC). Comment
@Beanstalkto run it again.windows+nvidia+dgpulinux+nvidia+dgpuwindows+amd+dgpulinux+amd+dgpuwindows+intel+dgpulinux+intel+dgpuWhat was tested
What will be tested · AI plan (
gpt-6.1-terra)The plan compares the PR with main in the Market at 1920x1080 headless output, using Lanczos at 1:1 and uncapped rendering. Three starts per side measure 30 seconds of frame and GPU time and compare a stationary picture on Windows and Linux discrete GPUs from NVIDIA, AMD and Intel. A missing PR mode-3 dispatch log, crash, device loss, material picture difference, or frame-time or GPU-time regression beyond the allowed noise fails the test. Targets without a matching online discrete GPU will wait for a volunteer. No tester online now matches windows+intel+dgpu, linux+intel+dgpu: those targets wait for one.
market-entrance(settings vsync=2, upscaling=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0; switchesHOS_OUTPUT_RES=1920x1080,RX_VK_AUTO_TUNE=0), then teleport to Market, take the picture market to compare with main, measure market for 30 s (after 10 s warm-up); 3 runs on each side.In-game run on Windows: mode 3 is the path taken at 1:1, and the frame rate and GPU time are level on this PC.
This head (
e086045f0) as a pack over mainf359e2621, its merge base (the DLL only).Setup: Windows 11, Ryzen 7 5700X3D, RX 9070 XT, AMD 26.11.2. Market center (child, a save at the fountain, loaded directly), the right stick held right from the load, a 1280x720 window with Output resolution 1280x720 and the Window scaling filter on Lanczos (the 1:1 case this PR changes), uncapped (HOS_FPS_MAX=240), render thread on, 3 alternating pairs, all 6 runs admitted, game clock 1.000.
f359e2621vk: upscale dispatched: mode 3 (the filter 2), source 1280x720, crop request 0,0 1280x720, destination 1280x720(RX_VK_UPSCALE_LOG=1).Note for anyone measuring on main since #2822: Mouse camera now defaults to Native, and with
HOS_INPUT_EXCLUSIVE=1read_input(host/nn_hid.c) returns beforehos_mouse_native_stick(), so a scripted right stick turns nothing. These runs setHOS_MOUSE_NATIVE=0.🤖 Generated with Claude Code
WIP: perf(vk): read the picture's own pixel for the window filter at the window's own sizeto perf(vk): read the picture's own pixel for the window filter at the window's own size