1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.32 Bug Reporting thread
    Solutions and more information may already be available.

Change physics calculations per second?

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by Nissan Skyline, Dec 22, 2016.

  1. Nissan Skyline

    Nissan Skyline
    Expand Collapse

    Joined:
    Aug 11, 2013
    Messages:
    229
    I believe the game does 2000 physics calculations per second.
    First: Would the engine allow to reduce that?
    Second: If that is possible, would that improve performance with a low-spec CPU?
    Third: If it can be done, and there is gains, is there a file I can modify to change this?
     
  2. Blijo

    Blijo
    Expand Collapse

    Joined:
    Apr 27, 2016
    Messages:
    2,055
    1, yes, but you won't play in realtime because it has to do 2k/sec for running realtime
    2. no, it enables when you get less then 20 fps
    3. no idea, i dont think so
     
    • Informative Informative x 1
  3. Nissan Skyline

    Nissan Skyline
    Expand Collapse

    Joined:
    Aug 11, 2013
    Messages:
    229
    So 2x Slo-Motion is effectively running 1000 calculations per second?
     
  4. Blijo

    Blijo
    Expand Collapse

    Joined:
    Apr 27, 2016
    Messages:
    2,055
    I don't know, @Nadeox1 or @tdev should know wether I'm making a fool out of myself now
     
  5. estama

    estama
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 7, 2012
    Messages:
    267
    First: The engine can do that
    Second: Yes it would improve performance.
    Third: This is not exposed to the users because ...

    ... the vehicles would immediately blow up.

    This happens because there is a correlation between physics stability and number of physics steps. The stiffer a structure is (like a car) the higher the number of physics steps that are required to keep it stable. It turns out 2000 steps is the minimum to reach metal like stiffness. At around 4500 you start to touch the range of diamond like stiffness [*].

    [*] Take these numbers with a large grain of salt, because there are a lot of complexities in how these things are calculated, and apart from the steps there are 1000 other things that affect the stiffness numbers.
     
    • Informative Informative x 4
    • Like Like x 1
  6. estama

    estama
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 7, 2012
    Messages:
    267
    Yes indeed at 2x slow-mo, it is 1000 physics steps/sec.

    But.

    You'll be actually seeing a bigger percentage of physics steps. At normal gameplay you see 2.5% of these 2000 steps (if your graphics cars runs at 50 FPS). If you slow it down by 2x, you'll be seeing 5% of the 1000 steps that happen every second.
     
    • Informative Informative x 4
  7. Nissan Skyline

    Nissan Skyline
    Expand Collapse

    Joined:
    Aug 11, 2013
    Messages:
    229
    Very interesting. I am assuming this is how the April fools video of the indestructible car was made?
     
  8. NoxiousFumes

    NoxiousFumes
    Expand Collapse

    Joined:
    Apr 24, 2016
    Messages:
    675
    Any way to change that? I need to blow up stuff. Also, I want to mess around with diamond like stiffness and stuff like that.
     
  9. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,957
    No, that was just a globally scaled beam deform/strength value ;)
     
    • Like Like x 1
  10. randomshortguy

    randomshortguy
    Expand Collapse

    Joined:
    Aug 9, 2013
    Messages:
    1,562
    In BeamNG terms, "blow up" doesn't mean a fiery explosion or anything dramatic. It means the car becomes spaghetti and causes instability which crashes the physics engine basically instantly. Not very fun. You can also make cars hard as diamond with what Diamondback said above, by scaling the car's deform values.
     
    • Agree Agree x 1
  11. gigawert

    gigawert
    Expand Collapse

    Joined:
    Sep 6, 2015
    Messages:
    2,029
    • Informative Informative x 1
  12. NoxiousFumes

    NoxiousFumes
    Expand Collapse

    Joined:
    Apr 24, 2016
    Messages:
    675
    I know. I just want to mess around with the physics to see what happens.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice