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.

LUA Lag Spikes

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by Sparkz_25, Oct 15, 2025.

  1. Sparkz_25

    Sparkz_25
    Expand Collapse

    Joined:
    Dec 11, 2024
    Messages:
    6
    I'm having an issue that I've never encountered in BeamNG on my PC that I've had for 2 years now. I've been getting these LUA spikes in the CPU section of the graph, whenever these spikes occur they cause the game to stutter. These ONLY occur whenever I spawn in AI traffic. My FPS is good, but whenever AI is on (especially on West Coast USA) the game randomly starts to stutter (just for under a second) but it is very annoying. For 2 years I've used vulkan mode and I've had no issues with it, in fact its given me a lot of FPS, although the LUA lag spikes occur in both vulkan and normal mode.

    I did use safe mode, the LUA spikes did reduce, though even when I enable ONE random mod the LUA spikes come back. If I disable all of my mods WHEN in a loaded map, the LUA spikes stay. I've never had this issue in BeamNG so I'm a bit confused, besides my PC is pretty decent.

    Specs:
    CPU: 12th Gen Intel(R) Core(TM) i5-12400F
    GPU: RTX 3060 (12 GB)
    RAM: 16GB

    Thanks!

     
  2. OTL™

    OTL™
    Expand Collapse

    Joined:
    Dec 25, 2024
    Messages:
    81
    Might as well bump as I'm having the exact same issue, both on Vulkan and Direct11.
     
  3. Blenux

    Blenux
    Expand Collapse

    Joined:
    Oct 29, 2021
    Messages:
    84
    I had this happen also today on the west coast usa map also, did you?
    1. How many traffic vehicles were spawned?
    2. Park vehicles?
    3. Have the world editor open with the sites editor open?
    After I load into a different map (utah and italy), they didnt have a issue, only USA map did when I had the world editor open etc, but was fine afterwards, this is with 1 traffic vehicles set (basically just the player vehicle with park only traffic).
     
  4. Sparkz_25

    Sparkz_25
    Expand Collapse

    Joined:
    Dec 11, 2024
    Messages:
    6
    Basically I managed to fix the issue by removing a mod that was causing these spikes. The mod is called 'Vehicle Parts Painting.' Link: [ https://www.beamng.com/resources/vehicle-parts-painting.35874/ ]
    I removed each mod one by one to see which one was causing it and it turned out to be the vehicle parts painting mod. Unfortunately, if you don't have that mod then I'm unsure. It's likely mod-related nothing to do with the game itself.
     
  5. Sparkz_25

    Sparkz_25
    Expand Collapse

    Joined:
    Dec 11, 2024
    Messages:
    6
    I managed to fix it by removing a mod called 'Vehicle Parts Paining.' If you don't have that mod could be another mod causing that for you.
     
  6. Blenux

    Blenux
    Expand Collapse

    Joined:
    Oct 29, 2021
    Messages:
    84
    You might be correct, here, have the same mod :cool:
     
  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