Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix sysinfo CPU brand output (#11850)
# Objective sysinfo was updated to 0.30 in #11071. Ever since then the `cpu` field of the `SystemInfo` struct that gets printed every time one starts an bevy app has been empty. This is because the following part of the sysinfo migration guide was overlooked: --- ### `Cpu` changes Information like `Cpu::brand`, `Cpu::vendor_id` or `Cpu::frequency` are not set on the "global" CPU. --- ## Solution - Get the CPU brand information from a specific CPU instead. In this case, just choose the first one. It's theoretically possible for different CPUs to have different names, but in practice this doesn't really happen I think. Even Intel's newer hybrid processors use a uniform name for all CPUs in my experience. - We can use this opportunity to also update our `sysinfo::System` initialization here to only fetch the information we're interested in.
- Loading branch information