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

[Impeller] use BufferSubData to update gles device buffer. #55330

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

jonahwilliams
Copy link
Member

Measures as substantially faster on windows. See the bufferSubData docs:

When replacing the entire data store, consider using glBufferSubData rather than completely recreating the data store with glBufferData. This avoids the cost of reallocating the data store.

Tracks invalidated ranges and only updates those ranges using the Flush API.

Fixes flutter/flutter#104447

@jonahwilliams jonahwilliams changed the title [Impeller] use buffer sub data to update gles device buffer. [Impeller] use BufferSubData to update gles device buffer. Sep 21, 2024
@jonahwilliams jonahwilliams added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 23, 2024
@auto-submit auto-submit bot merged commit 5a4a30a into flutter:main Sep 23, 2024
30 checks passed
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Sep 24, 2024
…155583)

flutter/engine@95c5a09...8a5af19

2024-09-23 skia-flutter-autoroll@skia.org Roll Skia from 7174ab7a984d to 7b0669f89aef (1 revision) (flutter/engine#55371)
2024-09-23 jonahwilliams@google.com [Impeller] Fix GLES gaussian implementation. (flutter/engine#55329)
2024-09-23 30870216+gaaclarke@users.noreply.github.com Made YAML version of vscode workspace to avoid redundancy (flutter/engine#55322)
2024-09-23 skia-flutter-autoroll@skia.org Roll Skia from acb93a9f241f to 7174ab7a984d (6 revisions) (flutter/engine#55369)
2024-09-23 jonahwilliams@google.com [Impeller] add triangle fan support and remove drawVertices copying. (flutter/engine#55236)
2024-09-23 jason-simmons@users.noreply.github.com Copy Dart SDK vm_shared sources into the sky_engine package (flutter/engine#55158)
2024-09-23 jonahwilliams@google.com [Impeller] use BufferSubData to update gles device buffer. (flutter/engine#55330)
2024-09-23 jonahwilliams@google.com [Impeller] remove usage of VBB when allocating vertices of a fixed size. (flutter/engine#55235)
2024-09-23 68449066+zijiehe-google-com@users.noreply.github.com [fuchsia] Update fuchsia instruction in Compiling-the-engine.md (flutter/engine#55365)
2024-09-23 jonahwilliams@google.com [iOS] sprinkle some null checks on BringLayersIntoView. (flutter/engine#55334)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC chinmaygarde@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
thejitenpatel pushed a commit to thejitenpatel/flutter that referenced this pull request Sep 26, 2024
…lutter#155583)

flutter/engine@95c5a09...8a5af19

2024-09-23 skia-flutter-autoroll@skia.org Roll Skia from 7174ab7a984d to 7b0669f89aef (1 revision) (flutter/engine#55371)
2024-09-23 jonahwilliams@google.com [Impeller] Fix GLES gaussian implementation. (flutter/engine#55329)
2024-09-23 30870216+gaaclarke@users.noreply.github.com Made YAML version of vscode workspace to avoid redundancy (flutter/engine#55322)
2024-09-23 skia-flutter-autoroll@skia.org Roll Skia from acb93a9f241f to 7174ab7a984d (6 revisions) (flutter/engine#55369)
2024-09-23 jonahwilliams@google.com [Impeller] add triangle fan support and remove drawVertices copying. (flutter/engine#55236)
2024-09-23 jason-simmons@users.noreply.github.com Copy Dart SDK vm_shared sources into the sky_engine package (flutter/engine#55158)
2024-09-23 jonahwilliams@google.com [Impeller] use BufferSubData to update gles device buffer. (flutter/engine#55330)
2024-09-23 jonahwilliams@google.com [Impeller] remove usage of VBB when allocating vertices of a fixed size. (flutter/engine#55235)
2024-09-23 68449066+zijiehe-google-com@users.noreply.github.com [fuchsia] Update fuchsia instruction in Compiling-the-engine.md (flutter/engine#55365)
2024-09-23 jonahwilliams@google.com [iOS] sprinkle some null checks on BringLayersIntoView. (flutter/engine#55334)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC chinmaygarde@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
thejitenpatel pushed a commit to thejitenpatel/flutter that referenced this pull request Sep 26, 2024
…lutter#155583)

flutter/engine@95c5a09...8a5af19

2024-09-23 skia-flutter-autoroll@skia.org Roll Skia from 7174ab7a984d to 7b0669f89aef (1 revision) (flutter/engine#55371)
2024-09-23 jonahwilliams@google.com [Impeller] Fix GLES gaussian implementation. (flutter/engine#55329)
2024-09-23 30870216+gaaclarke@users.noreply.github.com Made YAML version of vscode workspace to avoid redundancy (flutter/engine#55322)
2024-09-23 skia-flutter-autoroll@skia.org Roll Skia from acb93a9f241f to 7174ab7a984d (6 revisions) (flutter/engine#55369)
2024-09-23 jonahwilliams@google.com [Impeller] add triangle fan support and remove drawVertices copying. (flutter/engine#55236)
2024-09-23 jason-simmons@users.noreply.github.com Copy Dart SDK vm_shared sources into the sky_engine package (flutter/engine#55158)
2024-09-23 jonahwilliams@google.com [Impeller] use BufferSubData to update gles device buffer. (flutter/engine#55330)
2024-09-23 jonahwilliams@google.com [Impeller] remove usage of VBB when allocating vertices of a fixed size. (flutter/engine#55235)
2024-09-23 68449066+zijiehe-google-com@users.noreply.github.com [fuchsia] Update fuchsia instruction in Compiling-the-engine.md (flutter/engine#55365)
2024-09-23 jonahwilliams@google.com [iOS] sprinkle some null checks on BringLayersIntoView. (flutter/engine#55334)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC chinmaygarde@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
thejitenpatel pushed a commit to thejitenpatel/flutter that referenced this pull request Sep 27, 2024
…lutter#155583)

flutter/engine@95c5a09...8a5af19

2024-09-23 skia-flutter-autoroll@skia.org Roll Skia from 7174ab7a984d to 7b0669f89aef (1 revision) (flutter/engine#55371)
2024-09-23 jonahwilliams@google.com [Impeller] Fix GLES gaussian implementation. (flutter/engine#55329)
2024-09-23 30870216+gaaclarke@users.noreply.github.com Made YAML version of vscode workspace to avoid redundancy (flutter/engine#55322)
2024-09-23 skia-flutter-autoroll@skia.org Roll Skia from acb93a9f241f to 7174ab7a984d (6 revisions) (flutter/engine#55369)
2024-09-23 jonahwilliams@google.com [Impeller] add triangle fan support and remove drawVertices copying. (flutter/engine#55236)
2024-09-23 jason-simmons@users.noreply.github.com Copy Dart SDK vm_shared sources into the sky_engine package (flutter/engine#55158)
2024-09-23 jonahwilliams@google.com [Impeller] use BufferSubData to update gles device buffer. (flutter/engine#55330)
2024-09-23 jonahwilliams@google.com [Impeller] remove usage of VBB when allocating vertices of a fixed size. (flutter/engine#55235)
2024-09-23 68449066+zijiehe-google-com@users.noreply.github.com [fuchsia] Update fuchsia instruction in Compiling-the-engine.md (flutter/engine#55365)
2024-09-23 jonahwilliams@google.com [iOS] sprinkle some null checks on BringLayersIntoView. (flutter/engine#55334)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC chinmaygarde@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
thejitenpatel pushed a commit to thejitenpatel/flutter that referenced this pull request Sep 27, 2024
…lutter#155583)

flutter/engine@95c5a09...8a5af19

2024-09-23 skia-flutter-autoroll@skia.org Roll Skia from 7174ab7a984d to 7b0669f89aef (1 revision) (flutter/engine#55371)
2024-09-23 jonahwilliams@google.com [Impeller] Fix GLES gaussian implementation. (flutter/engine#55329)
2024-09-23 30870216+gaaclarke@users.noreply.github.com Made YAML version of vscode workspace to avoid redundancy (flutter/engine#55322)
2024-09-23 skia-flutter-autoroll@skia.org Roll Skia from acb93a9f241f to 7174ab7a984d (6 revisions) (flutter/engine#55369)
2024-09-23 jonahwilliams@google.com [Impeller] add triangle fan support and remove drawVertices copying. (flutter/engine#55236)
2024-09-23 jason-simmons@users.noreply.github.com Copy Dart SDK vm_shared sources into the sky_engine package (flutter/engine#55158)
2024-09-23 jonahwilliams@google.com [Impeller] use BufferSubData to update gles device buffer. (flutter/engine#55330)
2024-09-23 jonahwilliams@google.com [Impeller] remove usage of VBB when allocating vertices of a fixed size. (flutter/engine#55235)
2024-09-23 68449066+zijiehe-google-com@users.noreply.github.com [fuchsia] Update fuchsia instruction in Compiling-the-engine.md (flutter/engine#55365)
2024-09-23 jonahwilliams@google.com [iOS] sprinkle some null checks on BringLayersIntoView. (flutter/engine#55334)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC chinmaygarde@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App e: impeller
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Impeller] Perform sparse buffer uploading in DeviceBufferGLES.
2 participants