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

load state doesn't update rendering correctly when gpu dynamics is off #941

Open
ChengshuLi opened this issue Oct 8, 2024 · 1 comment
Assignees

Comments

@ChengshuLi
Copy link
Member

ChengshuLi commented Oct 8, 2024

When USE_GPU_DYNAMICS is False and ENABLE_FLATCACHE is False, sometimes load_state will only update the physics, but not the rendering (i.e. physx doesn't update the new object state to USD)

  • need to test with ENABLE_FLATCACHE = True
  • seem to be unrelated to sleep because even waking up the objects doesn't help
@cgokmen
Copy link
Contributor

cgokmen commented Oct 9, 2024

I don't know if this is the wake mechanism or not but maybe this logic from PoseAPI can help, you'll at least figure out if it's just a fabric update issue:

            # when flatcache is on
            if og.sim._physx_fabric_interface:
                # no time step is taken here
                og.sim._physx_fabric_interface.update(og.sim.get_physics_dt(), og.sim.current_time)
            # when flatcache is off
            else:
                # no time step is taken here
                og.sim.psi.fetch_results()

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

No branches or pull requests

3 participants