Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sysinfo version to 0.30.0 #11071

Merged
merged 1 commit into from
Dec 23, 2023

Conversation

GuillaumeGomez
Copy link
Contributor

New version comes with a lot of improvements. Full list is available there: https://github.com/GuillaumeGomez/sysinfo/blob/master/migration_guide.md

@mockersf mockersf added the C-Dependencies A change to the crates that Bevy depends on label Dec 22, 2023
@matiqo15 matiqo15 added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Dec 23, 2023
@james7132 james7132 added this pull request to the merge queue Dec 23, 2023
Merged via the queue into bevyengine:main with commit e360763 Dec 23, 2023
29 checks passed
@GuillaumeGomez GuillaumeGomez deleted the update-sysinfo branch December 23, 2023 17:57
github-merge-queue bot pushed a commit that referenced this pull request Feb 13, 2024
# 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Dependencies A change to the crates that Bevy depends on S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants