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

External Texture support for macOS Metal #24523

Conversation

iskakaushik
Copy link
Contributor

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@google-cla google-cla bot added the cla: yes label Feb 19, 2021
@iskakaushik iskakaushik added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Feb 19, 2021
@iskakaushik iskakaushik force-pushed the macos-external-texture-implementation branch from 85eb7ec to 5fa31dd Compare February 19, 2021 21:10
@fluttergithubbot fluttergithubbot merged commit cfbe4e1 into flutter:master Feb 19, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 22, 2021
hjfreyer pushed a commit to hjfreyer/engine that referenced this pull request Mar 22, 2021
chriscraws pushed a commit to chriscraws/engine that referenced this pull request Mar 23, 2021
@lattice0
Copy link

before I learn Metal and etc, could you kindly tell me if this is direct GPU rendering or if it renders in GPU, copies to CPU, then renders back to GPU, like other texture implementations?

@chinmaygarde
Copy link
Member

chinmaygarde commented Jul 18, 2022

There are no device-host copies.

like other texture implementations?

Which ones are you referring to?

@lattice0
Copy link

There are no device-host copies.

like other texture implementations?

Which ones are you referring to?

The windows one seems to be a copy to CPU then copy back to GPU: #19405 (comment), as he said, copying a 1920x1080 frame takes some time. I want to render 20 960x640 frames at 30 frames each or something higher. It wouldn't be possible if it did copy from GPU to CPU and GPU back.

It looks like #24916 does copies as well.

ps: is the windows one for UWP or Win32 only? It's hard to find any information on UWP, or the state of external texture in Flutter as a whole.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for external textures when rendering with metal on macos
4 participants