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

Recent Periodic Lag Spikes

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by ausshir, Aug 29, 2016.

  1. ausshir

    ausshir
    Expand Collapse

    Joined:
    Aug 29, 2016
    Messages:
    5
    Recently I have had some major periodic lag spikes. This only occurs in BeamNG, and only recently. I have tried disabling all mods, clearing cache and putting settings all to default and lowest, turning off physics, collisions, sound etc.

    This is the performance log below.

    PC Specs are quite good, performance has never been a problem. No major driver changes recently, but I did install new graphics drivers as troubleshooting.

    Xeon E5 1620 v3 3.5Ghz
    16GB DDR4
    R9 Nano
    SSD
    Windows 10 with Anniversary Update

    BeamNG 0.6.1.0.2748 x64

    upload_2016-8-28_20-33-21.png
     
  2. Funky7Monkey

    Funky7Monkey
    Expand Collapse

    Joined:
    Oct 12, 2014
    Messages:
    977
    BeamNG has had issues with the deeper pipeline that Xeons have. That's probably the cause of your problem. AFAIK, there is not solution besides getting a consumer CPU.
     
  3. ausshir

    ausshir
    Expand Collapse

    Joined:
    Aug 29, 2016
    Messages:
    5
    I'm not totally convinced. The 1620 v3 is not a special Xeon, and I am not using ECC memory. There shouldn't be any other architectural differences between my specific CPU and an Core i series. Besides, it was working fine last week and for the last 21 hours (many months for me)!

    Is there any other diagnostic information I can look for?
     
  4. Funky7Monkey

    Funky7Monkey
    Expand Collapse

    Joined:
    Oct 12, 2014
    Messages:
    977
    It's the same architecture, but the data is processed a bit differently. BeamNG doesn't get along with Xeons because of that. All Xeons, every single one, not just these "special" ones you speak of, have this difference.
     
  5. redrobin

    redrobin
    Expand Collapse

    Joined:
    Aug 21, 2012
    Messages:
    606
    Every Xeon has a deeper memory and processes pipeline. This is where all of the issues come from. BeamNG is still unoptomized to hell, and as such, bogs down due to these pipelines. You've always had these framerate problems, you're just now noticing them.

    Long story short: Buy an i5/i7 next time.
     
  6. ausshir

    ausshir
    Expand Collapse

    Joined:
    Aug 29, 2016
    Messages:
    5
    I am referring to E5 vs E7 Xeons, and those with with multi CPU support etc. As far as I know, the lowest end E5 (like what I have) is only slightly different from the (for example) Haswell-E i7s, with a few extra instructions supported and features turned on. I can look at the whitepapers but I really don't think 'm going to find anything interesting.

    I've definitely not had this issue before. The lag spikes are pronounced and regular - just look at the CPU time graphs I posted. Looks like this forum isn't a good place for support - marked as "will not fix"? :/
     
  7. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,696
    You have FPS Limiter enabled.
    To what FPS you set it to?

    FPS Limiter is kinda bad and cause cause stuff like this. Turn it off and see if it persists.
     
  8. SixSixSevenSeven

    SixSixSevenSeven
    Expand Collapse

    Joined:
    Sep 13, 2013
    Messages:
    6,958
    Other thing, get HWMonitor, check your temperatures, xeons thermal throttle more aggressively than i5/i7 counterparts and the game with its high CPU load does cause many PCs to start overheating
     
  9. ausshir

    ausshir
    Expand Collapse

    Joined:
    Aug 29, 2016
    Messages:
    5
    FPS limiter was just there as I was playing with settings. The issue persists regardless of configurations. Attached is the log, with my normal graphical settings.

    There is absolutely no throttling or down-clocking going on, and no heat issues.

    I believe I found the issue:
    The log files showed these repeating few lines
    Code:
    124.05267|D|DirectInputManager::enumerateDevices| *** Input devices start ***
    124.08595|D|DirectInputDevice::create|Mouse [instance: Mouse] detected, created as mouse0 (asynchronous)
    124.08596|D|DirectInputDevice::create| - devtype 0x112
    124.08597|D|DirectInputDevice::create| - A mouse or mouse-like device (such as a trackball)
    124.08598|D|DirectInputDevice::create| + 3 axes
    124.08599|D|DirectInputDevice::create| + 8 buttons
    124.08605|D|DirectInputDevice::create|created device 'mouse0', took 0.000s: create:0.014ms, caps:0.001ms, txts:0.063ms, enum:0.016ms, fmt:0.004ms, buff:0.002ms, axis:0.000ms, leds:0.000ms
    124.08610|D|DirectInputDevice::create|Keyboard [instance: Keyboard] detected, created as keyboard0 (asynchronous)
    124.08611|D|DirectInputDevice::create| - devtype 0x413
    124.08612|D|DirectInputDevice::create| - Keyboard or keyboard-like:
    124.08613|D|DirectInputDevice::create|  - IBM PC Enhanced 101/102-key or Microsoft Natural keyboard.
    124.08614|D|DirectInputDevice::create| + 128 buttons
    124.08647|D|DirectInputDevice::create|created device 'keyboard0', took 0.000s: create:0.014ms, caps:0.000ms, txts:0.050ms, enum:0.271ms, fmt:0.028ms, buff:0.000ms, axis:0.000ms, leds:0.000ms
    124.11604|D|DirectInputManager::enumerateDevices| *** Input devices end ***
    124.11705|D|DirectInputDevice::acquire|mouse0 acquired.
    124.11712|D|DirectInputDevice::acquire|keyboard0 acquired.
    124.14443|D|Win32Window::WindowProc|Win32Window::WindowProc - getting device arrival:
    124.14449|D|Win32Window::WindowProc|Win32Window::WindowProc - getting device arrival:
    125.15240|D|DirectInputDevice::unacquire|   mouse0 input device unacquired.
    125.15243|D|DirectInputDevice::unacquire|   keyboard0 input device unacquired.
    I found out how to show the console in game, and this was printed for each pair of lag spikes. I think it is pretty clear what is going on here! And it's definitely not related to my CPU architecture... >.<

    EDIT: By disabling all HID devices, the lag spike goes away. Now to find which one is actually causing this problem. However, BeamNG is the only program I've used that seems extremely sensitive to which peripheral is plugged in, there is probably a logical fix to the problem.

    EDIT 2: Attached a performance graph of what the normally performing system looks like.
     

    Attached Files:

    #9 ausshir, Aug 30, 2016
    Last edited: Aug 30, 2016
  10. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,696
    Thanks for updating us on that.
    I forwarded this to the team so that we can see what was happening there :)
     
  11. stenyak

    stenyak
    Expand Collapse
    Programmer & Global Moderator
    BeamNG Team

    Joined:
    Aug 6, 2012
    Messages:
    2,014
    Hey, I want to take a better look at your data, can you please send a support report showing the issue?

    And after that, send another report after having disabled all HID devices like you mention.

    Thanks!
     
  12. ausshir

    ausshir
    Expand Collapse

    Joined:
    Aug 29, 2016
    Messages:
    5
    Submitted the reports. The ID for the reports are 3282 and 3283.

    More information about the HID device that causes problems:

    Bluetooth Audio/Video Remote Control HID
    BtaMPM.sys
    BthAvrcpTg.sys

    Related to a Windows 10 Mobile device, but the device is not connected or even turned on when the problem occurs.
     
  13. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    Not to beat a dead horse, but would you two mind simply editing your posts with some strike-thru? You are both wrong. Pipeline depth is the same between a Haswell desktop product and Haswell server product. See these references if you remain confused:
    There's lots of misleading hardware info laying around in these forums. There is no reason for it to persist after proven wrong.
     
  14. Funky7Monkey

    Funky7Monkey
    Expand Collapse

    Joined:
    Oct 12, 2014
    Messages:
    977
    Then would you please care to explain the significant performance deficits that users have had with Xeons compared to consumer processors of similar specs? While the OPs issue is not related to this, my post still remains valid, as I didn't say that Xeons' data pipeline was deeper, I said that the data was processed differently.
     
  15. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    Actually.. you did. See your own post #2 in this thread. You specifically referenced the (non-existent) deeper pipeline.

    I'm not familiar with the problems you refer to. Can you link me to some other thread(s) where the Xeon was determined to be the culprit and not some other thing? I'll be happy to elaborate on those cases - the OP's Xeon obviously performs fine and does not cause an issue.
     
  16. SixSixSevenSeven

    SixSixSevenSeven
    Expand Collapse

    Joined:
    Sep 13, 2013
    Messages:
    6,958
    First hand experience with a 3.5ghz haswell xeon, CPU bound 15fps 1 D15 on ECA with a quadro GPU, 90+FPS paused.
    A few other users have reported xeon performance issues in BeamNG. Xeon reportedly gets issues in quite a few other games too.
     
  17. redrobin

    redrobin
    Expand Collapse

    Joined:
    Aug 21, 2012
    Messages:
    606
    I think somebody needs to learn a little more about computers before they try to help someone else. ;)
     
  18. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    Are you saying that you disagree with the points I made in post #13?
     
  19. Funky7Monkey

    Funky7Monkey
    Expand Collapse

    Joined:
    Oct 12, 2014
    Messages:
    977
    And then there are others with similarly speced Xeons that bottleneck Quadros to below full physics sim speed (as in, the physics don't refresh at the required 2000 Hz)
     
  20. firestarspelt

    firestarspelt
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    101
    my xeon seems to run the game fine 35 frames with 6 d series on gridmap is the max i can do real time with 8 chrome tabs and a few other programs
     
  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