From 46bda3fbdc9e54e96d907263afdd90369f7a3dc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Mockers?= Date: Sat, 28 Mar 2026 18:34:33 +0100 Subject: [PATCH] only log once GPU preprocessing support --- crates/bevy_render/src/batching/gpu_preprocessing.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/bevy_render/src/batching/gpu_preprocessing.rs b/crates/bevy_render/src/batching/gpu_preprocessing.rs index b01ce0bd96345..e9144992ae920 100644 --- a/crates/bevy_render/src/batching/gpu_preprocessing.rs +++ b/crates/bevy_render/src/batching/gpu_preprocessing.rs @@ -20,7 +20,7 @@ use bevy_ecs::{ world::{FromWorld, World}, }; use bevy_encase_derive::ShaderType; -use bevy_log::{error, info}; +use bevy_log::{error, info_once}; use bevy_math::UVec4; use bevy_platform::collections::{hash_map::Entry, HashMap, HashSet}; use bevy_tasks::ComputeTaskPool; @@ -1249,16 +1249,16 @@ impl FromWorld for GpuPreprocessingSupport { || is_non_supported_android_device(&adapter_info) || adapter_info.backend == wgpu::Backend::Gl { - info!( + info_once!( "GPU preprocessing is not supported on this device. \ Falling back to CPU preprocessing.", ); GpuPreprocessingMode::None } else if !(culling_feature_support && limit_support && downlevel_support) { - info!("Some GPU preprocessing are limited on this device."); + info_once!("Some GPU preprocessing are limited on this device."); GpuPreprocessingMode::PreprocessingOnly } else { - info!("GPU preprocessing is fully supported on this device."); + info_once!("GPU preprocessing is fully supported on this device."); GpuPreprocessingMode::Culling };