Skip to main content

GPU_INFO_WIDTH_SLACK

Constant GPU_INFO_WIDTH_SLACK 

Source
pub(crate) const GPU_INFO_WIDTH_SLACK: f32 = 2.0;
Expand description

Slack added to the GPU-info panel’s measured width.

A label wraps on a strict comparison against the width it is handed, and a window rounds its size to a whole pixel, so a width that fits a fact exactly can still come out a hair too narrow. A couple of points keep the longest fact on its line when the rounding would otherwise break it.