ladybird/Userland/Libraries/LibSoftGPU
Stephan Unverwerth b7c0c32f24 LibSoftGPU: Add option to render a debug overlay
This displays statistics regarding frame timings and number of pixels
rendered.

Timings are based on the time between draw_debug_overlay() invocations.
This measures actual number of frames presented to the user vs. wall
clock time so this also includes everything the app might do besides
rendering.

Triangles are counted after clipping. This number might actually be
higher than the number of triangles coming from LibGL.

Pixels are counted after the initial scissor and coverage test. Pixels
rejected here are not counted. Shaded pixels is the percentage of all
pixels that made it to the shading stage. Blended pixels is the
percentage of shaded pixels that were alpha blended to the color buffer.

Overdraw measures how many pixels were shaded vs. how many pixels the
render target has. e.g. a 640x480 render target has 307200 pixels. If
exactly that many pixels are shaded the overdraw number will read 0%.
614400 shaded pixels will read as an overdraw of 100%.

Sampler calls is simply the number of times sampler.sample_2d() was
called.
2022-01-01 15:09:21 +01:00
..
Clipper.cpp LibGL+LibSoftGPU: Implement eye, clip, NDC and window coordinates 2021-12-30 14:24:29 +01:00
Clipper.h LibGL+LibSoftGPU: Move Vertex and Triangle structs to LibSoftGPU 2021-12-24 05:10:28 -08:00
CMakeLists.txt LibSoftGPU: Add device method for creating images 2021-12-24 05:10:28 -08:00
Config.h LibSoftGPU: Add option to render a debug overlay 2022-01-01 15:09:21 +01:00
DepthBuffer.cpp LibGL+LibSoftGPU: Move rendering related code to LibSoftGPU library 2021-12-24 05:10:28 -08:00
DepthBuffer.h LibGL+LibSoftGPU: Move rendering related code to LibSoftGPU library 2021-12-24 05:10:28 -08:00
Device.cpp LibSoftGPU: Add option to render a debug overlay 2022-01-01 15:09:21 +01:00
Device.h LibSoftGPU: Add option to render a debug overlay 2022-01-01 15:09:21 +01:00
DeviceInfo.h LibGL+LibSoftGPU: Add method to query device info 2021-12-24 05:10:28 -08:00
Enums.h LibGL+LibSoftGPU: Implement texture coordinate generation 2021-12-30 14:24:29 +01:00
Image.cpp LibSoftGPU: Add method to copy texels between images 2021-12-24 05:10:28 -08:00
Image.h LibSoftGPU: Add method to copy texels between images 2021-12-24 05:10:28 -08:00
ImageDataLayout.h LibSoftGPU: Add methods to read and write image data 2021-12-24 05:10:28 -08:00
ImageFormat.h LibGL: Optimize float divisions in unpack_color 2021-12-30 14:24:29 +01:00
Sampler.cpp LibSoftGPU: Put all constexpr config options into Config.h 2022-01-01 15:09:21 +01:00
Sampler.h LibSoftGPU: Add legacy texture env mode to sampler config 2021-12-24 05:10:28 -08:00
Triangle.h LibGL+LibSoftGPU: Move Vertex and Triangle structs to LibSoftGPU 2021-12-24 05:10:28 -08:00
Vertex.h LibGL+LibSoftGPU: Implement eye, clip, NDC and window coordinates 2021-12-30 14:24:29 +01:00