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

Update avian to the latest main #331

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Update avian to the latest main #331

wants to merge 5 commits into from

Conversation

Shatur
Copy link
Contributor

@Shatur Shatur commented Sep 22, 2024

Instructions for @Jondolf to debug the issue:

  1. Download the world New world.zip and unpack it to <app settings dirr>/Project Harmonia/worlds/. For example, on Linux it's ~/.config/Project Harmonia/worlds/.
  2. Run the project with cargo run -- play --world-name "New world" city "New city". It should run fast.
  3. Change rev from this line to the latest commit:
    avian3d = { git = "https://github.com/Jondolf/avian", rev = "5041bea37bec4edde808bd472b0c00c82375c148"}
  4. Repeat the command from 2.

This reverts commit b179106.
Recent change in schedule in avian reduced the performance if the
game underperforms.
On my machine in debug the game underperforms and the slowdown
is noticable. Changing the tickrate to 30 fixes it.
We use physics only for raycasting and collision detection anyway,
there is no reason for to run physics at 60 hz,
better to save the performance for something else.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant