Possible Performance Regression RaycastVehicle #420
-
I get much better performance using this example from codepen: Most notable is the difference in input lag. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
For the next reader: I found the main source of lag was in the vehicle model. Here is an example branch that has those changes: I think this is a rather important issue as I was evaluating if this library would be suitable for a game. I find it likely that others would come to the same conclusion simply based on the example performance. I am not nearly as worried about it if all I need to do is make sure to use easy to render materials. |
Beta Was this translation helpful? Give feedback.
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…