Skip to main content
All testing guides

How the texture test works

The actual WebGL2 workload, texture memory calculation, sampling method and limits of the browser test on vramtest.com.

Maintained by the VRAM Test project · Updated:

The workload, step by step

The test requests a WebGL2 context with a high-performance preference, checks the maximum 2D texture size and fragment texture units, then compiles a shader and uploads procedurally generated textures. Each texel uses four 8-bit channels. The red, green and blue values vary with position and texture slot. Alpha is fixed at 255.

After initialization, each rendered animation callback binds the same textures and submits one draw of two triangles over a fixed 640 × 360 canvas. The fragment shader samples each selected texture at moving coordinates and blends the results. Linear filtering interpolates texels. Nearest filtering selects the closest texel.

The binding counter increases by the selected texture count for each submitted frame. A run with four textures and 1,800 frames therefore records 7,200 bindings. The workload ends at rendering and contains no byte-by-byte verification step.

Calculate the texture data size

The estimate is texture count × width × height × 4 bytes ÷ 1,048,576. Four 1024 × 1024 RGBA8 textures contain 16 MiB of base-level pixel data. Sixteen 2048 × 2048 textures contain 256 MiB. Doubling both dimensions multiplies the data size by four; doubling texture count doubles it.

The estimate excludes browser copies, shader resources, framebuffers, driver overhead and alignment. No mipmaps are generated in this workload. The driver decides how resources are placed. A successful upload does not prove that this amount is dedicated physical VRAM or that more memory is unavailable.

Calculated base-level RGBA8 texture data, not measured GPU capacity
SettingsCalculationData size
1 × 256 × 2561 × 256² × 4 bytes0.25 MiB
4 × 1024 × 10244 × 1024² × 4 bytes16 MiB
16 × 2048 × 204816 × 2048² × 4 bytes256 MiB

What the timing measures

The timing clock starts after shader setup and texture upload. Frames are counted when the draw is submitted inside requestAnimationFrame. The measured intervals cover callback scheduling, including browser and JavaScript work. The first interval starts at timer initialization.

Average FPS divides submitted frames by actual elapsed seconds, including the final partial sample window. The FPS graph, minimum, maximum and low percentiles use completed sample windows of approximately one second, each normalized by its actual length. If the run stops before the first window, the summary uses the whole-run average for those FPS statistics.

When a callback crosses the requested end time, the test records its interval and finishes before submitting another frame. A delayed callback at the end can therefore lower both the run’s average FPS and its frame consistency. Frame consistency is 100 ÷ (1 + the standard deviation of the recorded intervals ÷ their mean). The site’s workload score combines this index with average FPS normalized to a 60 FPS target and capped at 100.

Choose a setting that tests your question

Keep the same browser, display, power mode and 30-second duration. Use the foreground tab throughout. To compare dimensions, run four 1024-pixel textures, then four 2048-pixel textures with the same filtering. The estimated texture data increases from 16 MiB to 64 MiB while the shader still samples four textures per fragment.

For a separate comparison, try one 2048-pixel texture and four 1024-pixel textures. Both settings contain 16 MiB of base-level data, but the second configures four texture samples per fragment instead of one. A difference in frame timing shows why equal texture data sizes can produce different rendering workloads.

What to use for memory integrity

A memory-integrity test must verify data, which is a different task from rendering textured triangles. Native tools such as memtest_vulkan describe the patterns and verification they perform. Follow the tool’s own documentation and record the tested amount, duration and errors.

A native test can still be affected by drivers, shared memory, system instability and inaccessible reserved memory. Use it together with the symptoms you are investigating, rather than treating any single clean run as a guarantee.

References and further reading

Related guides

More GPU & browser tools

Check your environment, budget texture data and establish a low-load frame timing baseline.

Browse all tools