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

Document RenderingServer.get_video_adapter_name() may report a fixed name #80445

Merged

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Aug 9, 2023

Firefox may1 report the user's GPU as a GeForce GTX 980 in an attempt to make fingerprinting more difficult. This is not the case in Chromium-based browsers though.

Footnotes

  1. I've noticed this on 3 different setups (GTX 1080, RX 6900 XT, RTX 4090). I don't know if GPUs older than the GTX 980 are affected by this (probably not).

…d name

Firefox will always report the user's GPU as a GeForce GTX 980 in
an attempt to make fingerprinting more difficult.
This is not the case in Chromium-based browsers though.
@Calinou Calinou requested a review from a team as a code owner August 9, 2023 09:43
@Calinou Calinou force-pushed the doc-video-adapter-web-fixed-model branch from 6acbabb to c751f19 Compare August 9, 2023 09:43
@Calinou Calinou added enhancement documentation cherrypick:4.0 cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release labels Aug 9, 2023
@Calinou Calinou added this to the 4.2 milestone Aug 9, 2023
@@ -1450,6 +1450,7 @@
<description>
Returns the name of the video adapter (e.g. "GeForce GTX 1080/PCIe/SSE2").
[b]Note:[/b] When running a headless or server binary, this function returns an empty string.
[b]Note:[/b] On the web platform, some browsers such as Firefox may report a different, fixed GPU name such as "GeForce GTX 980" (regardless of the user's actual GPU model). This is done to make fingerprinting more difficult.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need to unify the casing of "Web" vs "web", and define some guidelines.

$ rg -g"*.xml" " Web[, ]" | wc -l
45
$ rg -g"*.xml" " web[, ]" | wc -l
30

I think at least when referring to Godot's "Web" platform, it should be capitalized, like it is in OS.get_name().

Then maybe when referring to "the web", it can be lowercase.

Here with "the web platform", are we talking about the web as a platform, or Godot's "Web" platform?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here with "the web platform", are we talking about the web as a platform, or Godot's "Web" platform?

I'd say the latter, but I don't have a strong opinion on it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this can/should be handled in a separate PR anyway, so let's merge this one.

@akien-mga akien-mga merged commit acc965c into godotengine:master Aug 16, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@YuriSizov YuriSizov removed the cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release label Sep 21, 2023
@YuriSizov
Copy link
Contributor

Cherry-picked for 4.1.2.

@Calinou Calinou deleted the doc-video-adapter-web-fixed-model branch September 21, 2023 13:59
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.

4 participants