Amnedge1331
Member
Problem between framerate and physics
Hi esenthel!
we start to implement vehicule in our game but we can have some drop of FPS because map is too big and when we are under 25 fps, the physics of vehicule start to be very strange like this video show:
ps: you can see the capsule of player bug too at 1:45 min
VIDEO
it happens when we draw physics too because it causes a drop of FPS. Any tips ??
(This post was last modified: 06-01-2016 01:05 AM by Amnedge1331 .)
06-01-2016 01:03 AM
Esenthel
Administrator
RE: Problem between framerate and physics
Hi,
Are you using Vehicle or SimpleVehicle class?
06-02-2016 05:31 AM
Amnedge1331
Member
RE: Problem between framerate and physics
I use Vehicle and the problem is on Game.Chr too.
(This post was last modified: 06-02-2016 04:03 PM by Amnedge1331 .)
06-02-2016 04:02 PM
Amnedge1331
Member
RE: Problem between framerate and physics
Any ideas so ?
06-09-2016 09:33 PM
RedcrowProd
Member
RE: Problem between framerate and physics
well the idea would be to not run under 20 fps =p as anyway its not the best things
(This post was last modified: 06-10-2016 01:09 AM by RedcrowProd .)
06-10-2016 01:09 AM
Amnedge1331
Member
RE: Problem between framerate and physics
We'll make into requierement of the game that you must run over 25 fps or maybe the physics will fail ^^
It's a strange behaviour maybe the physic update of vehicule and player is not synchronize with the draw of objects.
06-10-2016 10:02 AM
Tottel
Member
RE: Problem between framerate and physics
When the game drops below 20 FPS, you could use a fixed delta time. This would cause a slow-motion effect, but that's still better than the physics bugging out.
06-10-2016 04:43 PM
Amnedge1331
Member
RE: Problem between framerate and physics
I don't really understand what you want to implement but the idea is when you are under 25 FPS the physics should not be like on the video ^^
06-11-2016 01:18 AM
Amnedge1331
Member
RE: Problem between framerate and physics
No one is looking for the problem or you don't find a solution for the moment ?
(This post was last modified: 06-13-2016 11:47 AM by Amnedge1331 .)
06-13-2016 11:47 AM
Esenthel
Administrator
RE: Problem between framerate and physics
Hello,
I'm uploading an update for that right now.
I hope this will help you.
06-20-2016 07:25 AM
Amnedge1331
Member
RE: Problem between framerate and physics
Thank you a lot it's working good now
06-20-2016 11:33 AM
RedcrowProd
Member
RE: Problem between framerate and physics
did that only affecte vehicle or ctrl capsule as well ?
06-20-2016 05:49 PM