Jump to content



Photo
- - - - -

B2S performance problems with select directb2s backglasses


  • Please log in to reply
10 replies to this topic

#1 DJRobX

DJRobX

    Pinball Fan

  • VP Dev Team
  • PipPipPipPip
  • 942 posts
  • Location:Valencia, CA

  • Flag: United States of America

  • Favorite Pinball: F14 Tomcat

Posted 10 March 2014 - 04:02 PM

In order to troubleshoot problems with stuttering with the new DX9 test builds, there is a new feature that shows maximum frame-render times in the F11 display.   This measures, in milliseconds, the longest period of time that VP took to render a frame.    This is more telling than a simple FPS number, in that it will highlight periodic delays that result in slowdowns.    This reveals an issue that some backglasses are not performing well, and contributing to stutter.  

 

On my cab (XP 32 bit, GTI 650ti playfield, GTI 240 backglass) - Most directb2s files don't seem to have too much impact (sometimes 3-5ms), but others have severe impacts (as high as 50ms, which causes noticeable stutter). A couple examples are Indiana Jones and Apollo 13.     In both of these cases changing the frameskip options in the B2S settings makes no improvement to this whatsoever.     

 

I would expect to see that increasing the frame-skips to have an impact on lowering this delay, but that does not happen.  I did play around with different video cards (using onboard Intel IGP, and having both displays on the same GTX 650ti).    Better video cards do lower the impact, so it seems that at least for these two backglass files, they are somehow excessively updating the display.     What's most interesting is the Indiana Jones case - the backglass does not actually change very much.   It's nearly static during play.    I've seen other B2S backglasses full of animation and blinking lights, with much more negligible impact to the table. 

 

Looking at another thread there was some discussion of better performance in an earlier version, but I saw no difference when I tried that older build.   I also confirmed that B2S Server and DOF, by themselves do not contribute to this problem.  If you rename the IJ or A13 backglasses away but suppress error messages, DOF works fine, and the performance is excellent.   So this is not a VPM/B2S/DOF interaction problem, it seems to be strictly related to the way the backglasses are being drawn to the display. 

 

Are the sources for B2S server available?   I'd like to dig into what's causing this further, but I'm afraid I'm at the limit of what I can do without seeing the underlying code.  


Edited by DJRobX, 10 March 2014 - 04:04 PM.


#2 ClarkKent

ClarkKent

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,552 posts

  • Flag: Austria

  • Favorite Pinball: Q*Bert's Quest, Red's and Ted's Road Show, Dialed In, Big Bang Bar

Posted 10 March 2014 - 04:31 PM

I noticed severe ball stutter with backglasses using a lot of animations and/or lights simultaneously. AFM is one of them, in Roadshow it affects physics somehow.



#3 Slydog43

Slydog43

    Pinball Wizard

  • Platinum Supporter
  • 3,008 posts
  • Location:Hackettstown, NJ

  • Flag: United States of America

  • Favorite Pinball: Addams Family, All Williams 90's Games

Posted 10 March 2014 - 04:55 PM

DirectB2S was such a great improvement to VP, I thought that any stutter introduced could be eliminated by changing the skip frames.  Guess not.  Really glad people are looking into this!  I have just renamed my directb2s file and tables seem to play without stutter and fire off DOF stuff just fine, so I also believe it has something to do with updating the backglass.


Edited by Slydog43, 10 March 2014 - 04:59 PM.


#4 DJRobX

DJRobX

    Pinball Fan

  • VP Dev Team
  • PipPipPipPip
  • 942 posts
  • Location:Valencia, CA

  • Flag: United States of America

  • Favorite Pinball: F14 Tomcat

Posted 10 March 2014 - 06:11 PM

I noticed severe ball stutter with backglasses using a lot of animations and/or lights simultaneously. AFM is one of them, in Roadshow it affects physics somehow.

 

What I find the most fascinating about this issue is that the amount of activity doesn't always correspond to the performance hit.   As I mentioned, Indiana Jones takes a huge performance hit, while absolutely nothing is visibly changing on the backglass.   Meanwhile, Scared Stiff with its spinning spider is taking minimal impact.



#5 pincade

pincade

    Enthusiast

  • Members
  • PipPipPip
  • 257 posts

  • Flag: Italy

  • Favorite Pinball: tom

Posted 12 March 2014 - 01:41 PM

Do you think that a static backglass gives more performance to the table? I'm not so interested in animated backglass and there is a program to build static and animated BG.. if my thoughts are right I can create several static bg to gain some fps

#6 DJRobX

DJRobX

    Pinball Fan

  • VP Dev Team
  • PipPipPipPip
  • 942 posts
  • Location:Valencia, CA

  • Flag: United States of America

  • Favorite Pinball: F14 Tomcat

Posted 12 March 2014 - 08:45 PM

If you want a static BG, usually your front-end (Hyperpin, PinballX, or whatnot) will leave the image up from its media folder while you play.   So in the Indiana Jones example, I simply removed the Directb2s file, and Hyperpin's static IJ image is there while I play, and the measured performance is much better.   In my case, I still want B2S itself, because DOF needs B2S to access my toys.   The impact of DOF is very minimal from my testing.

 

It's also pretty easy to remove all of the animated bits from a directb2s file (or create a static BG from an image) with the B2S editor. 


Edited by DJRobX, 12 March 2014 - 08:46 PM.


#7 pincade

pincade

    Enthusiast

  • Members
  • PipPipPip
  • 257 posts

  • Flag: Italy

  • Favorite Pinball: tom

Posted 13 March 2014 - 10:34 AM

uhm...ok! 

I use PinballX and it's possible to set a bg  image from a folder but in this case I need to edit the script by changing "B2S Server" with "VPinMame Control" ...is it right? 



#8 bent98

bent98

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,077 posts
  • Location:NY

  • Flag: United States of America

  • Favorite Pinball: Roadshow, Haunted House, Safe Cracker

Posted 13 March 2014 - 12:00 PM

Djrob I would work with Herweth to get a copy if the source code.

#9 insx

insx

    Enthusiast

  • Members
  • PipPipPip
  • 121 posts

  • Flag: United Kingdom

  • Favorite Pinball: Revenge From Mars

Posted 13 March 2014 - 12:12 PM

uhm...ok! 

I use PinballX and it's possible to set a bg  image from a folder but in this case I need to edit the script by changing "B2S Server" with "VPinMame Control" ...is it right? 

That's right. If you have both in there with one commented out, you just change which one is commented.



#10 DJRobX

DJRobX

    Pinball Fan

  • VP Dev Team
  • PipPipPipPip
  • 942 posts
  • Location:Valencia, CA

  • Flag: United States of America

  • Favorite Pinball: F14 Tomcat

Posted 13 March 2014 - 03:18 PM

uhm...ok! 

I use PinballX and it's possible to set a bg  image from a folder but in this case I need to edit the script by changing "B2S Server" with "VPinMame Control" ...is it right? 

 

You have a couple choices.   There's an option in the B2S settings (right click on a working B2S BG) to disable startup error messages.   If you turn that on, you can just rename/delete/remove the directb2s files without touching the scripts.   Otherwise yes, you would have to change the script back from "B2S.Server" to "VPinMame.Controller"



#11 slashbot

slashbot

    Enthusiast

  • Members
  • PipPipPip
  • 337 posts
  • Location:Ghent

  • Flag: Belgium

  • Favorite Pinball: Scared stiff on vp,Highspeed 2,Fish Tales,T2,Circus Voltaire,Congo

  • 360 Gamer Tag: slashbot

Posted 13 March 2014 - 03:30 PM

I got stutter after finishing my cab, changed B2S and Visual Pinball to the same videocard and set DMD to 2 onboard videocard solved all my stutterproblems.


r0sqir-4.pngslashbot.jpgttzReplay.gif

Cabinet Bally Radical - setup 40'' Sony Led for playfield, 32''Led LG for Backglass, LCD screen for DMD, running LEDwiz32 12v setup with DOF and boosterboard to power toys 2x Siemens contactors for flipper feedback -2e audiocard + subwoofer setup to emulate VP flippersounds and vibration in cab (sounds fantastic) 1x red police light flasher.Lots of 5050 RGB Ledstrips bottom,back,top. 1x HUD-G for digital nudge all

Check my Visual Pinball cabinet highscores: HERE

TPA artwork resources gallery here