In the wgpu 29 update PR we silenced a log when we see wgpu::CurrentSurfaceTexture::Occluded.
This information is also provided by winit as an event, and we could potentially track that information to prevent even attempting to render.
It is unknown if this has any significant performance win, but should be benchmarked to check if attempted, as this is an optimization to the current functionality.
In the wgpu 29 update PR we silenced a log when we see
wgpu::CurrentSurfaceTexture::Occluded.This information is also provided by winit as an event, and we could potentially track that information to prevent even attempting to render.
It is unknown if this has any significant performance win, but should be benchmarked to check if attempted, as this is an optimization to the current functionality.