1. Thread posting restricted: Only the BeamNG team members can post new threads in this sub-forum in order to prevent spam. Posting is available on unlocked threads.

CEF - black screen issue

Discussion in 'Microblogs' started by tdev, May 7, 2019.

  1. tdev

    tdev
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 3, 2012
    Messages:
    2,869
    Hi guys, we worked very hard since we released 0.16 on fixing the new CEF (Chromium Embedded Framework) issues we experienced so far. Thought i include you all a bit into what issues we are tackling and how we solve them:

    1) Black screen: Basically, the game uses one GPU, CEF the other one. We just fixed that by patching CEF ourselfs with the required command line arguments. Open sourced: https://github.com/BeamNG/cef_3626_gpu_commandline-patch

    2) Slow software rendering: We will re-add some optimizations we had in place for the old software rasterizer part

    3) Dynamic fallback from GPU to software rendering: We are working on this right now, we want to detect if some 3rd party software messes with our UI and fall back to software rendering dynamically, without restarting the game.
     
    #1 tdev, May 7, 2019
    Last edited: May 7, 2019
    • Like Like x 15
    • Informative Informative x 1
  2. tdev

    tdev
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 3, 2012
    Messages:
    2,869
    Building CEF took a loooong time, nearly 3 hours on a 32 core threadripper 2990WX machine :D
     

    Attached Files:

    • chrome_reVSdmVVHG.png
    • Informative Informative x 14
    • Like Like x 10
    • Agree Agree x 1
  3. Michaelflat

    Michaelflat
    Expand Collapse

    Joined:
    Jul 10, 2014
    Messages:
    1,626
    Would be nice if we could go back to software rendering, gpu rendering bogs down my gtx 960, and causes framerate to drop below 60 sometimes to 45-50 at 100% load...without UI onscreen i get 60 easily and gpu load around 70-80%... so it's a bit of a performance hit, granted it is easier on the CPU but it would be nice to ave the option to fallback..
     
  4. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    7,073
    I have no idea how GPU rendering of UI generally uses GPU, but for such simple item that should not get even shadow or reflection calculations that sounds bit much.

    Maybe 5fps or so for me when having around 100fps and only at GPU limited situation which is pretty hard to achieve for me. Does that come out as 5% of gtx1080 power for UI then? Could scale to 10-15% of GTX1050Ti computing power, maybe, not sure what would be 5% of gtx1080 in gtx 960 though, 1050Ti is slightly faster maybe?
     
  5. CrimsonCrocodile

    CrimsonCrocodile
    Expand Collapse

    Joined:
    Jun 27, 2017
    Messages:
    1,678
    I have a GTX 960 4GB and I haven't noticed any obvious issues, although I haven't yet looked at the impact it has on GPU load and framerate. I'll check next time I play Beam.

    Although there may be no difference for me as I average 40fps anyway as I play with max settings and dynamic reflections.
     
  6. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    7,073
    It can get bit complex with those settings, or not, for me at Italy turning reflections up actually decreases GPU usage as there comes CPU load too, that is without vsync and fps limiter, it then depends from your CPU if it is enough to feed GPU so that GPU stays at limit all the time, if not there is then more chance for GPU to render stuff that does not rely on CPU and no issue occurs where as with some other CPU issue might occur, if the issue is from increased GPU usage.

    It gets annoyingly complex pretty fast.
     
    • Agree Agree x 1
  7. tdev

    tdev
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 3, 2012
    Messages:
    2,869
    We will add an option now.
     
    • Like Like x 4
    • Informative Informative x 1
  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