Skip to content

Possible Performance Regression RaycastVehicle #420

Answered by EthanShoeDev
EthanShoeDev asked this question in Q&A
Discussion options

You must be logged in to vote

For the next reader:

I found the main source of lag was in the vehicle model.
After removing shadows, the spotlight, and hard to render materials the responsiveness improved dramatically.

Here is an example branch that has those changes:
https://github.com/EthanShoeDev/use-cannon/tree/performance-raycast-vehicle

I think this is a rather important issue as I was evaluating if this library would be suitable for a game.
Based on the initial performance of the demo, I thought there was no way this package would work.
I initially thought the lag was being introduced via the web worker architecture and that cannot be disabled within this library.

I find it likely that others would come to the s…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@isaac-mason
Comment options

@EthanShoeDev
Comment options

Answer selected by EthanShoeDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants