mirror of
https://github.com/bevyengine/bevy
synced 2024-12-22 11:03:06 +00:00
9d54f33974
# Objective - While animating 501 https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/BrainStem, I noticed things were getting a little slow - Looking in tracy, the system `extract_skinned_meshes` is taking a lot of time, with a mean duration of 15.17ms ## Solution - ~~Use `Vec` instead of a `SmallVec`~~ - ~~Don't use an temporary variable~~ - Compute the affine matrix as an `Affine3A` instead - Remove the `temp` vec | |mean| |---|---| |base|15.17ms| |~~vec~~|~~9.31ms~~| |~~no temp variable~~|~~11.31ms~~| |removing the temp vector|8.43ms| |affine|13.21ms| |all together|7.23ms|
31 lines
1.1 KiB
TOML
31 lines
1.1 KiB
TOML
[package]
|
|
name = "bevy_pbr"
|
|
version = "0.7.0-dev"
|
|
edition = "2021"
|
|
description = "Adds PBR rendering to Bevy Engine"
|
|
homepage = "https://bevyengine.org"
|
|
repository = "https://github.com/bevyengine/bevy"
|
|
license = "MIT OR Apache-2.0"
|
|
keywords = ["bevy"]
|
|
|
|
[features]
|
|
webgl = []
|
|
|
|
[dependencies]
|
|
# bevy
|
|
bevy_app = { path = "../bevy_app", version = "0.7.0-dev" }
|
|
bevy_asset = { path = "../bevy_asset", version = "0.7.0-dev" }
|
|
bevy_core = { path = "../bevy_core", version = "0.7.0-dev" }
|
|
bevy_core_pipeline = { path = "../bevy_core_pipeline", version = "0.7.0-dev" }
|
|
bevy_ecs = { path = "../bevy_ecs", version = "0.7.0-dev" }
|
|
bevy_math = { path = "../bevy_math", version = "0.7.0-dev" }
|
|
bevy_reflect = { path = "../bevy_reflect", version = "0.7.0-dev", features = ["bevy"] }
|
|
bevy_render = { path = "../bevy_render", version = "0.7.0-dev" }
|
|
bevy_transform = { path = "../bevy_transform", version = "0.7.0-dev" }
|
|
bevy_utils = { path = "../bevy_utils", version = "0.7.0-dev" }
|
|
bevy_window = { path = "../bevy_window", version = "0.7.0-dev" }
|
|
|
|
# other
|
|
bitflags = "1.2"
|
|
# direct dependency required for derive macro
|
|
bytemuck = { version = "1", features = ["derive"] }
|