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.37 Bug Reporting thread
    Solutions and more information may already be available.

Lag with Headlights

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by Memeware, Dec 22, 2018.

  1. Memeware

    Memeware
    Expand Collapse

    Joined:
    Aug 3, 2015
    Messages:
    48
    Hello :),
    Whenever you turn on the Headlight there will be a huge loss of performance. (Around 10-20fps)
    I had this problem a while now, but now especially on Italy i can notice this.
     
  2. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,698
    Because lights emit shadows, which can be expensive.
    If you don't need shadows from the headlights, go to Options > Graphics and turn the 'Display Shadows' settings to 'Partial'
     
  3. Memeware

    Memeware
    Expand Collapse

    Joined:
    Aug 3, 2015
    Messages:
    48
    But i should have a more than good enough PC for that?
     
  4. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,698
    Yes, but Italy has it's performance levels at the moment.
    They will get better as we go :)
     
    • Like Like x 1
  5. Memeware

    Memeware
    Expand Collapse

    Joined:
    Aug 3, 2015
    Messages:
    48
    Ok thank you :)
     
  6. Dr. Death

    Dr. Death
    Expand Collapse

    Joined:
    May 12, 2016
    Messages:
    2,121
    IIRC maps are the GPU intensive part, cars are the CPU intensive part, but having many cars or heavy lighting and shadows can slow down both parts just the same. BeamNG is a resource intensive game graphically, even with just a single car in a simple map.
     
  7. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,774
    That is not quite correct, maps are more CPU intensive than single car is, well they were, it is much less impact now, but still single car is surprisingly light on CPU and SSAO is quite GPU heaviest thing in game, except that also adds lot of CPU load too.

    So thing is, everything is CPU intensive, but some bits add GPU load too.

    Headlights and shadows is CPU murder, even fastest CPU can be brought to it's knees with enough headlights. Future performance optimizations are very welcomed for that.
     
  8. Dr. Death

    Dr. Death
    Expand Collapse

    Joined:
    May 12, 2016
    Messages:
    2,121
    I have the game turned on almost every setting down, maybe that's why i dont notice a big CPU usage with many maps but rather notice the GPU dying when it has to render everything. Not like i can say much tho, my PC sucks.
     
  9. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,774
    Oh yes, when you turn down light and shaders, maybe even turn shadows off, then CPU load is reduced and there is more headroom for things to live in, also if your GPU is not the fastest, then it is easy to become GPU limited and changes on CPU load for same FPS are not clear after that.

    I think there used to be quite large difference between normal and high few versions ago, but not so huge visual difference, I should test different settings more now, but there has been so much else that haven't had chance to learn every difference new performance updates have made.
     
  10. Dr. Death

    Dr. Death
    Expand Collapse

    Joined:
    May 12, 2016
    Messages:
    2,121
    in my experience wether or not i set lighting to low or highest doesn't matter since there is illumination and shadows being made.
     
  11. Memeware

    Memeware
    Expand Collapse

    Joined:
    Aug 3, 2015
    Messages:
    48
    I only had one car running at that time.
    Im surprised that just one Car with Headlights on will basically kill the CPU.
     
  12. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,774
    I keep shadows at partial, which sometimes helps without being much of visible change.

    It really depends from number of lights too and what other CPU needs to be doing, combination of everything becomes too great for CPU to handle is what then kills framerate.

    Lights etc. just is there for now I think, not much is done yet to optimize those, driving at night I think is a future possibility, but for now kinda like place holder.
     
  13. Ai'Torror

    Ai'Torror
    Expand Collapse
    QA, Mod Support, Vehicle Physics
    BeamNG Team

    Joined:
    Aug 29, 2015
    Messages:
    1,540
    My expirience with lighting on itally might be usefull...
    So, I decided to add interior lighting to the bus (8 spotlights with shadows turned on all along the roof of the bus).
    Normally on itally with lights off during the day I get 45-60fps (depending on speed of movement and location on the map)
    While if i set the time to sunset and turn on the lights, the fps drops to 20-ish, but then if i go and change the time either to day or full on night, with lights on the game settles at 40-55fps.
    I have no idea on whst could be causing sunsets/low light conditions to be much laggier than no light or a lot of it?
     
  14. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,774
    On some other game it was long shadows casting shadows on shadows etc.
     
  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