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

Poor Performance With Shapecast and large tilemap (2D Physics) #309

Open
marcozee03 opened this issue Nov 16, 2024 · 3 comments
Open

Poor Performance With Shapecast and large tilemap (2D Physics) #309

marcozee03 opened this issue Nov 16, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@marcozee03
Copy link

Describe the bug
A large tile map combined with shape-cast nodes dramatically drops performance compared to built-in physics. if a shape cast is colliding with a wall performance improves. (The goal of the shape casts in the original project was to improve wall detection for wall jumps since IsOnWall has some unwanted behavior)

To Reproduce

just run the project

Expected behavior

for the project to run smoothly at least as fast as built in godot physics or comparable.

Environment:

  • OS: Windows 11
  • Version: latest
  • Godot Version: 4.3
  • Type: SIMD 2d and cross-platform determinism 2D

Example project(zip)
rapier2d-poor-performance.zip

@marcozee03 marcozee03 added the bug Something isn't working label Nov 16, 2024
@juanitonelli
Copy link

Same thing happening to me, seems related to:
#139 (comment)

@juanitonelli
Copy link

FYI: Rapier v0.8.4 doesn't exhibit this performance issue. It might be related to breaking changes introduced in v0.8.5.

@Ughuuu
Copy link
Contributor

Ughuuu commented Feb 2, 2025

Looks like in 0.8.5 i changed stuff to work instead of with RID with an internal rapier id. This was to remove undeterminism from randomness of RID's. The change itself is pretty big tho. I wonder if accessing dictionaries a lot can affect performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants