Skip to content

Conversation

@spydon
Copy link
Member

@spydon spydon commented Jan 22, 2025

Description

When both images are already loaded and we're using a future it will go into loading for one tick, with this PR we avoid that.

Checklist

  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples or docs.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

Related Issues

@spydon spydon requested a review from erickzanardo January 22, 2025 17:00
@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2025

Benchmark Results

Package flame:

Benchmarks Current Branch
[fix/assets-for-button-already-loaded]
Base Branch
[main]
Diff
Render Components Benchmark 1183.385 μs 1184.374 μs 🟢 -0.083 %
Updating Components Benchmark 265054.250 μs 263449.250 μs 🔴 +0.609 %

Benchmarks provided with 💙 by Dart Benchmark Action.

@spydon spydon merged commit 324ac2b into main Jan 26, 2025
9 checks passed
@spydon spydon deleted the fix/assets-for-button-already-loaded branch January 26, 2025 15:47
nickf2k pushed a commit to nickf2k/flame that referenced this pull request Nov 16, 2025
flame-engine#3456)

When both images are already loaded and we're using a future it will go
into loading for one tick, with this PR we avoid that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants