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

[Merged by Bors] - Faster gltf loader #3165

Conversation

DJMcNab
Copy link
Member

@DJMcNab DJMcNab commented Nov 21, 2021

Objective

  • @superdump was having trouble with this loop in the GLTF loader.

Solution

  • Make it probably linear.
  • Measured times:
  • Old: 40s, new: 200ms

I'm sure there's still room for improvement. For example, I think making the nodes be in Arcs could be a significant gain, since currently there's duplication all the way down the tree.

@DJMcNab
Copy link
Member Author

DJMcNab commented Nov 21, 2021

Currently the tests fail because this new version panics on invalid models, whereas the old one silently accepted them.

I'm not sure which method is better.

@superdump
Copy link
Contributor

I've tested before and after on the sci-fi base scene and the look the same at the pixel level from a particular viewpoint so they are likely the same. Comparing the result to see if they are identical would be good though.

@alice-i-cecile alice-i-cecile added A-Assets Load files from disk to use for things like images, models, and sounds C-Performance A change motivated by improving speed, memory usage or compile times labels Nov 21, 2021
@cart
Copy link
Member

cart commented Nov 22, 2021

Looks good to me! Just resolved @mockersf 's comment.

@cart
Copy link
Member

cart commented Nov 22, 2021

bors r+

bors bot pushed a commit that referenced this pull request Nov 22, 2021
# Objective

- @superdump was having trouble with this loop in the GLTF loader.

## Solution

- Make it probably linear.
- Measured times: 
- Old: 40s, new: 200ms

I'm sure there's still room for improvement. For example, I think making the nodes be in `Arc`s could be a significant gain, since currently there's duplication all the way down the tree.

Co-authored-by: Carter Anderson <[email protected]>
@bors
Copy link
Contributor

bors bot commented Nov 22, 2021

@bors bors bot changed the title Faster gltf loader [Merged by Bors] - Faster gltf loader Nov 22, 2021
@bors bors bot closed this Nov 22, 2021
@DJMcNab DJMcNab deleted the faster-gltf-question-mark branch November 23, 2021 07:20
parasyte pushed a commit to parasyte/bevy that referenced this pull request Nov 25, 2021
# Objective

- @superdump was having trouble with this loop in the GLTF loader.

## Solution

- Make it probably linear.
- Measured times: 
- Old: 40s, new: 200ms

I'm sure there's still room for improvement. For example, I think making the nodes be in `Arc`s could be a significant gain, since currently there's duplication all the way down the tree.

Co-authored-by: Carter Anderson <[email protected]>
@parasyte parasyte mentioned this pull request Nov 25, 2021
DJMcNab added a commit to DJMcNab/bevy that referenced this pull request Nov 25, 2021
# Objective

- @superdump was having trouble with this loop in the GLTF loader.

## Solution

- Make it probably linear.
- Measured times: 
- Old: 40s, new: 200ms

I'm sure there's still room for improvement. For example, I think making the nodes be in `Arc`s could be a significant gain, since currently there's duplication all the way down the tree.

Co-authored-by: Carter Anderson <[email protected]>
bors bot pushed a commit that referenced this pull request Nov 25, 2021
See #3165 and #3175

# Objective

- @superdump was having trouble with this loop in the GLTF loader.

## Solution

- Make it probably linear.
- Measured times: 
- Old: 40s, new: 200ms

I think there's still room for improvement. For example, I think making the nodes be in `Arc`s could be a significant gain, since currently there's duplication all the way down the tree.

Co-authored-by: Carter Anderson <[email protected]>
HackerFoo pushed a commit to HackerFoo/bevy that referenced this pull request Nov 26, 2021
See bevyengine#3165 and bevyengine#3175

# Objective

- @superdump was having trouble with this loop in the GLTF loader.

## Solution

- Make it probably linear.
- Measured times: 
- Old: 40s, new: 200ms

I think there's still room for improvement. For example, I think making the nodes be in `Arc`s could be a significant gain, since currently there's duplication all the way down the tree.

Co-authored-by: Carter Anderson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Assets Load files from disk to use for things like images, models, and sounds C-Performance A change motivated by improving speed, memory usage or compile times
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants