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

Different FPS (g_dt) setting causes very differnt simulation behaviour #14

Closed
ghost opened this issue Aug 17, 2017 · 2 comments
Closed

Comments

@ghost
Copy link

ghost commented Aug 17, 2017

When I change the "g_dt" var in main.cpp the buoyancy scene gets disturbed

//	g_dt = 1.0f / 60.0f; // ORG  60fps

	g_dt = 1.0f / 30.0f;  // TEST  30fps

I think the simulation result should be very similar on final video which uses 15fps, but
the modified main.cpp with g_dt= 1.0 / 30 (=30fps) version is very different
SOLVED.

@sschirm
Copy link

sschirm commented Aug 17, 2017

Not sure I can follow. It seems normal that bigger time steps make the simulation less stable. Are you aiming at doing everything at 30 Hz? Did you try to use more iterations per step?

@ghost
Copy link
Author

ghost commented Aug 17, 2017

I doubled g_numSubsteps to 4 and it seems to work now also for 30fps. Thanks!
The final result in my case will be a 30fps video and so for reducing overhead and saving resources I run the simulations on that rate.

@ghost ghost closed this as completed Aug 17, 2017
This issue was closed.
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

1 participant