AbsolemJackdaw / AppleCrates

sell your items out of crates
GNU General Public License v3.0
2 stars 6 forks source link

Improvements on crate rendering #1

Closed geegor101 closed 2 years ago

geegor101 commented 2 years ago

This PR optimizes some of the crates rendering logic. The quaternion offset is calculated once, instead of once/render. The block rotation quaternion is now calculated once/render instead of once/item. calculateOffset now returns a Vec3 instead of using a static var, this should also be moved to a static method. Additional files should have no notable changes, if you can remove them from here, feel free.

AbsolemJackdaw commented 2 years ago

I accepted the PR, but it won't merge. I did use your code from your BESR changes , and applied them to the base branch