1. Trouble with the game?
    Try the troubleshooter!

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

    Dismiss Notice

For developers: Idea: Benchmark visualization program

Discussion in 'General Discussion' started by tdev, Feb 9, 2015.

  1. tdev

    tdev
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 3, 2012
    Messages:
    3,074
    We have so much things to work off that we cannot do them all :(

    So i wanted to throw my idea out what i think would be cool to have: a little app that starts the benchmark via launching the beamng console and reads the results back over json file output in order to visualize them nicely :)

    So the task: write a nice GUI around that :)

    See attached files (to be unpacked in main game folder or as mod .zip) for proof of concept launch args, and lua benchmark that will output in json files (i added some example output files). (Lua writing from the console is currently broken, will be fixed within next update)

    - - - Updated - - -

    UPDATE: Idea2: write a .html file as output directly, that would be cool as well :)
     

    Attached Files:

    #1 tdev, Feb 9, 2015
    Last edited: Feb 9, 2015
  2. SixSixSevenSeven

    SixSixSevenSeven
    Expand Collapse

    Joined:
    Sep 13, 2013
    Messages:
    6,958
    Sample just crashes on both of my machines. Completely unresponsive after "system reloaded". Regular bananabench is fine.


    Although if we are allowed to use the .NET framework for this GUI, there is a rather sneaky workaround I can employ instead...
     
    #2 SixSixSevenSeven, Feb 11, 2015
    Last edited: Feb 11, 2015
  3. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,966
    Here are some screenshots from an app I made for this. It runs the benchmark, fetches the results and generates a html chart from the data.
    Features so far:

    • Run Banana Bench
      • Single run
      • Best of five
      • Average of five
    • Retrieve JSON data
    • Generate an interactive Google Chart
    • Realtime threshold indicator
      • Indicates which realtime reading is still playable (about 120- 140% for me, but I guess I'd need more data to make it a bit more accurate)
      • Can be used to easily gauge how many cars you can run at once
    • Export chart
      • As image
      • As HTML

    Potentially planned for the future is some sort of upload to the BeamNG team for easy spec comparision. I did not include any PC spec listing in the diagram yet, but that is also planned (Not sure yet where to put it).
    Let me know what you think :)
     

    Attached Files:

    • 1.PNG
    • 2.PNG
    • 3.PNG
  4. SHOme1289

    SHOme1289
    Expand Collapse

    Joined:
    Nov 6, 2013
    Messages:
    1,286
    hmm....so 1 reply to tdev and 3 weeks later this pops up? looks amazing, very cool...would love to test it out on my slaptop to get a low end comaprison (am i rite in thinking this is basically a visual, pretty version of the BB?)
     
  5. tdev

    tdev
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 3, 2012
    Messages:
    3,074
    Very cool work, well done! :)

    Is it open source?
     
  6. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,966
    It's not open source currently, but I do plan to make it OSS. :) It's going to be a git on bit bucket or rather already is, just private.
     
  7. Pyroxyde

    Pyroxyde
    Expand Collapse

    Joined:
    Nov 13, 2012
    Messages:
    58
    This is very interesting ! Will there be a public realease ?
     
  8. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,966
    Absolutely. :)
     
  9. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,696
    You should include the processor type and vehicle name in the results btw ;)
     
  10. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,966
    Like so? :p
     

    Attached Files:

    • specs.PNG
  11. LJFHutch

    LJFHutch
    Expand Collapse
    Environment Artist
    BeamNG Team

    Joined:
    Aug 4, 2012
    Messages:
    667
    I also think there should be a clear "100%" line since that is probably the most important thing.
     
  12. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,966
    Well that's what the "Realtime threshold" thing is about. It currently sits at 140% since I found that everything below ~120% is laggy for me. I am not sure why, but 100% doesn't seem to be the limit on my computer. (6 cars work just fine, 7 are laggy already even though in theory it's above the 100% mark).
    I chose 140% for now as that's a nice point inbetween 6 and 7 cars on my machine (and 120% *looks* like 7 cars still work), but I can tweak that value to whatever works best.
     
  13. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,966
    Is anyone here willing to test my benchmark tool? I'd like to get a few results from different systems to see if everything is working fine before making it available to the broad public.
    Just let me know via PM. :)
     

    Attached Files:

    • benchmark 2015-03-16 01-27-35.png
  14. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,966
    Just a little update: I am currently working on some sort of upload feature, so users can upload their benchmark results to a central database.
    The app will then display some of these results as some kind of a high score list.

    I also had the idea to add a feature that rates the user's computer based on the results and tells him how good the computer will be CPU wise.
     
  15. Bubbleawsome

    Bubbleawsome
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    1,887
    If you are already planning a database, I think maybe you should have a few "baseline" systems set up. Maybe find a few users on here with the most common CPUs (maybe stolen from steams hardware survey) and have them all bench and then average them all out? Like one for an AMD chip, one for a mid range i5, and then one new i5. Maybe feature them on a front area?

    If you need any more help I would also be glad to test, this is a very cool project.
     
  16. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,966
    I already have something like this set-up, just not sure yet if it will stay this way.
    Currently I basically have a list of 5 different setups, ranging from a "Low Score" to an "Extreme Score", where it displays the graph for each of these. You can toggle what you'd like to display with some expanding area things in the app.

    If you got any nice ideas for the visualization, please let me know. :)

    - - - Updated - - -

    Here are some current screenshots, they are probably not final yet, but this is the direction it's heading :)
     

    Attached Files:

    • bench1.PNG
    • bench2.PNG
    • bench3.PNG
  17. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,966
  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