X Tutup
Skip to content

[iOS] Add device SOC list, update DPI list.#110192

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
bruvzg:ios_soc_list
Dec 18, 2025
Merged

[iOS] Add device SOC list, update DPI list.#110192
akien-mga merged 1 commit intogodotengine:masterfrom
bruvzg:ios_soc_list

Conversation

@bruvzg
Copy link
Member

@bruvzg bruvzg commented Sep 2, 2025

Seems like there's no way to get CPU name, only model name, so this PR adds model ↔ CPU list.

Fixes #110168 also updates DPI list.

@bruvzg bruvzg added this to the 4.6 milestone Sep 2, 2025
@bruvzg bruvzg requested a review from a team as a code owner September 2, 2025 06:48
@mihe
Copy link
Contributor

mihe commented Sep 2, 2025

Any chance I could argue for also removing the ERR_FAIL_V_MSG at the bottom of OS_AppleEmbedded::get_processor_name? Maybe we can replace it with a print_verbose instead or something?

Part of the motivation behind reporting #110168 was to hopefully avoid emitting this particular error, as it's proven to be prevalent and annoying for one of our clients, due to them sending all their errors off to an error reporting service.

Since there's no OS.try_get_processor_name or anything, there isn't a whole lot you can do to avoid this error, which basically leaves you having to explicitly filter it out before sending them off to the error reporting service, and since this solution relies on continuously adding new models to this list, it would seem guaranteed that you'll run into this error again eventually.

For what it's worth, Android relies on the default OS::get_processor_name, which just returns an empty string without any error, so I don't think it's too out-of-place to just remove this Couldn't get the CPU model name error altogether and have the fallback be an empty string.

godot/core/os/os.cpp

Lines 439 to 441 in 6339f31

String OS::get_processor_name() const {
return "";
}

@bruvzg
Copy link
Member Author

bruvzg commented Sep 2, 2025

Any chance I could argue for also removing the ERR_FAIL_V_MSG at the bottom of OS_AppleEmbedded::get_processor_name? Maybe we can replace it with a print_verbose instead or something?

I guess this makes sense, there's no benefit from this error, and it will inevitably fail in some conditions (when old versions are used on yet to be released devices).

akien-mga added a commit that referenced this pull request Dec 18, 2025
[iOS] Add device SOC list, update DPI list.
@bruvzg
Copy link
Member Author

bruvzg commented Dec 18, 2025

047a7c5

Seems like something went wrong and commit before I have added latest set of devices got merged, while PR still show as open.

@akien-mga
Copy link
Member

Oops, my bad. Let's re-merge this rebased version then.

@akien-mga akien-mga merged commit cd15723 into godotengine:master Dec 18, 2025
20 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OS.get_processor_namedoesn't seem to work on iOS

3 participants

X Tutup