Skip to content

[Merged by Bors] - Add some docs about lowspec rendering#5091

Closed
inact1v1ty wants to merge 4 commits intobevyengine:mainfrom
inact1v1ty:lowspec-rendering-additional-comments
Closed

[Merged by Bors] - Add some docs about lowspec rendering#5091
inact1v1ty wants to merge 4 commits intobevyengine:mainfrom
inact1v1ty:lowspec-rendering-additional-comments

Conversation

@inact1v1ty
Copy link
Contributor

@inact1v1ty inact1v1ty commented Jun 24, 2022

Objective

Solution

  • I added docs about necessity of ANGLE to use Backends::GL on Windows.
  • Also documented why prepare_windows can be long to execute and some causes.

@inact1v1ty
Copy link
Contributor Author

inact1v1ty commented Jun 24, 2022

I think this needs review of @alice-i-cecile and maybe @superdump. Thanks!

UPD: couple of oopsies, will fix now

@inact1v1ty inact1v1ty force-pushed the lowspec-rendering-additional-comments branch from 2578e12 to 734c134 Compare June 24, 2022 15:39
/// [`RenderDevice::limits`](crate::renderer::RenderDevice::limits), and the [`WgpuAdapterInfo`](crate::render_resource::WgpuAdapterInfo)
/// resource to get runtime information about the actual adapter, backend, features, and limits.
/// NOTE: [`Backends::GL`](Backends::GL) is disabled by default.
/// You can use [`Backends::GL`](Backends::GL) on Windows only with the help of [`ANGLE`](https://github.com/gfx-rs/wgpu#angle).
Copy link
Member

@alice-i-cecile alice-i-cecile Jun 24, 2022

Choose a reason for hiding this comment

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

Suggested change
/// You can use [`Backends::GL`](Backends::GL) on Windows only with the help of [`ANGLE`](https://github.com/gfx-rs/wgpu#angle).
/// On Windows, this requires [`ANGLE`](https://github.com/gfx-rs/wgpu#angle).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I committed this suggestion too, but now I think that it can be misunderstood as if all WgpuSettings require ANGLE on Windows 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe it should be something like "GL is disabled by default and requires ANGL on Windows"?

Copy link
Member

Choose a reason for hiding this comment

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

I think if we add a line break above the NOTE this will be clear by grouping.

Copy link
Contributor Author

@inact1v1ty inact1v1ty Jun 25, 2022

Choose a reason for hiding this comment

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

I didn't add a line break intentionally cause on docs.rs everything after first empty line is shown only on page of the item itself, not the module containing it, and docs.rs doesn't give any hints whether there are additional docs on an item, so I thought users can miss this rather important stuff. Dk if this is true and maybe I should add a line break anyway, your thoughts @alice-i-cecile? 🤔

Also from a fresh point of view I think that changing "this" to "it" solves ambiguity.

Copy link
Contributor

Choose a reason for hiding this comment

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

I didn’t see this discussion and made my own suggestions. Let me know what you both think of them as to clarity / too much information.

Copy link
Member

Choose a reason for hiding this comment

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

I'm happy with your suggestion :)

Copy link
Member

@alice-i-cecile alice-i-cecile left a comment

Choose a reason for hiding this comment

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

Some wording feedback, but I'm happy with this :)

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
@alice-i-cecile alice-i-cecile added C-Docs An addition or correction to our documentation A-Rendering Drawing game state to the screen labels Jun 25, 2022
Co-authored-by: Robert Swain <robert.swain@gmail.com>
@inact1v1ty
Copy link
Contributor Author

Github making possible to comment before Ctrl-R and seeing new comments makes me sad :(
I committed @superdump variant as it better describes not only quirks we've found but the state of things in general

@inact1v1ty
Copy link
Contributor Author

@alice-i-cecile CI is not happy with Direct X and OpenGL not being backticked. Should I backtick them or somehow silence the warning?

@alice-i-cecile
Copy link
Member

Backtick them please :)

@inact1v1ty inact1v1ty force-pushed the lowspec-rendering-additional-comments branch from 3cf105d to def85aa Compare June 25, 2022 15:05
@inact1v1ty inact1v1ty requested a review from superdump June 25, 2022 15:23
Copy link
Contributor

@superdump superdump left a comment

Choose a reason for hiding this comment

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

bors r+

bors bot pushed a commit that referenced this pull request Jun 25, 2022
# Objective

- When experimenting with rendering on lowspec machines I've run into some non-obvious things (huge thanks [superdump](https://github.com/superdump), [alice-i-cecile](https://github.com/alice-i-cecile), [mockersf](https://github.com/mockersf) and others for help) and so volunteered to document them.
- Is a follow-up of https://discordapp.com/channels/691052431525675048/989137552919375902

## Solution

- I added docs about necessity of `ANGLE` to use `Backends::GL` on Windows.
- Also documented why `prepare_windows` can be long to execute and some causes.
@bors bors bot changed the title Add some docs about lowspec rendering [Merged by Bors] - Add some docs about lowspec rendering Jun 25, 2022
@bors bors bot closed this Jun 25, 2022
inodentry pushed a commit to IyesGames/bevy that referenced this pull request Aug 8, 2022
# Objective

- When experimenting with rendering on lowspec machines I've run into some non-obvious things (huge thanks [superdump](https://github.com/superdump), [alice-i-cecile](https://github.com/alice-i-cecile), [mockersf](https://github.com/mockersf) and others for help) and so volunteered to document them.
- Is a follow-up of https://discordapp.com/channels/691052431525675048/989137552919375902

## Solution

- I added docs about necessity of `ANGLE` to use `Backends::GL` on Windows.
- Also documented why `prepare_windows` can be long to execute and some causes.
james7132 pushed a commit to james7132/bevy that referenced this pull request Oct 28, 2022
# Objective

- When experimenting with rendering on lowspec machines I've run into some non-obvious things (huge thanks [superdump](https://github.com/superdump), [alice-i-cecile](https://github.com/alice-i-cecile), [mockersf](https://github.com/mockersf) and others for help) and so volunteered to document them.
- Is a follow-up of https://discordapp.com/channels/691052431525675048/989137552919375902

## Solution

- I added docs about necessity of `ANGLE` to use `Backends::GL` on Windows.
- Also documented why `prepare_windows` can be long to execute and some causes.
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Feb 1, 2023
# Objective

- When experimenting with rendering on lowspec machines I've run into some non-obvious things (huge thanks [superdump](https://github.com/superdump), [alice-i-cecile](https://github.com/alice-i-cecile), [mockersf](https://github.com/mockersf) and others for help) and so volunteered to document them.
- Is a follow-up of https://discordapp.com/channels/691052431525675048/989137552919375902

## Solution

- I added docs about necessity of `ANGLE` to use `Backends::GL` on Windows.
- Also documented why `prepare_windows` can be long to execute and some causes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Rendering Drawing game state to the screen C-Docs An addition or correction to our documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants