About Store Forum Documentation Contact



Post Reply 
Problem between framerate and physics
Author Message
Amnedge1331 Offline
Member

Post: #1
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





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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Problem between framerate and physics
Hi,

Are you using Vehicle or SimpleVehicle class?
06-02-2016 05:31 AM
Find all posts by this user Quote this message in a reply
Amnedge1331 Offline
Member

Post: #3
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
Find all posts by this user Quote this message in a reply
Amnedge1331 Offline
Member

Post: #4
RE: Problem between framerate and physics
Any ideas so ?
06-09-2016 09:33 PM
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Member

Post: #5
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
Find all posts by this user Quote this message in a reply
Amnedge1331 Offline
Member

Post: #6
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
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #7
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. smile
06-10-2016 04:43 PM
Find all posts by this user Quote this message in a reply
Amnedge1331 Offline
Member

Post: #8
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
Find all posts by this user Quote this message in a reply
Amnedge1331 Offline
Member

Post: #9
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #10
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
Find all posts by this user Quote this message in a reply
Amnedge1331 Offline
Member

Post: #11
RE: Problem between framerate and physics
Thank you a lot it's working good now wink
06-20-2016 11:33 AM
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Member

Post: #12
RE: Problem between framerate and physics
did that only affecte vehicle or ctrl capsule as well ?
06-20-2016 05:49 PM
Find all posts by this user Quote this message in a reply
Jben Offline
Member

Post: #13
RE: Problem between framerate and physics
Yes it's work! Thanks for update! smile
06-20-2016 10:31 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply