Jump to content



Photo
* * * * - 6 votes

The VP 10.1 beta thread


  • Please log in to reply
868 replies to this topic

#101 Outhere

Outhere

    Pinball Wizard

  • Platinum Supporter
  • 4,805 posts

  • Flag: United States of America

  • Favorite Pinball: M M

Posted 01 February 2016 - 08:30 PM

Are these timers in the table Script or the editor?


Edited by Outhere, 01 February 2016 - 08:30 PM.


#102 toxie

toxie

    VPF Veteran

  • VP Dev Team
  • PipPipPipPipPipPip
  • 5,734 posts
  • Location:berlin, germany

  • Flag: Germany

  • Favorite Pinball: AFM

Posted 01 February 2016 - 09:30 PM

They are created in the editor, but can be changed in the script.

 

As a short term workaround, i now limited the timer interval to 5 in the code, which still provides 200Hz updates for timers.



#103 toxie

toxie

    VPF Veteran

  • VP Dev Team
  • PipPipPipPipPipPip
  • 5,734 posts
  • Location:berlin, germany

  • Flag: Germany

  • Favorite Pinball: AFM

Posted 02 February 2016 - 08:22 AM

..and changed again: the timer interval is kept like-is now, but the overall runtime of all scripts per frame is limited to 5 msecs, which means that (if the rest of the machine is up for it CPU- and GPU-wise) the scripts will never drag the machine below 200FPS..

hopefully this will solve the remaining micro-stutter issues..

 

of course there can still be some tables that can show bad physics behavior, but there you could try experimenting with the already existing 'Physics max. loops' parameter in the table backdrop settings.

start with something like 5 and decrease until the stutter shows up again. stutter will be replaced by 'slow/moon physics' instead though using this.



#104 arngrim

arngrim

    DJ Force Feedback

  • VIP
  • 2,188 posts
  • Location:Charleroi, Belgium

  • Flag: Belgium

  • Favorite Pinball: Monster bash



Posted 02 February 2016 - 08:52 AM

i have a i7 3770 3.4 ghz, 8gb ram, a gtx 970, overall almost all the tables are pretty smooth.

 

but as an example, AFM from JP, when i hit the saucer, all flashers lit and are flickering a bit, so at that time the ball goes down and it stutters, i'm running at 270 fps, it drops a little bit, to 250 at that time, but i wonder what is the cause of that, timers?



#105 toxie

toxie

    VPF Veteran

  • VP Dev Team
  • PipPipPipPipPipPip
  • 5,734 posts
  • Location:berlin, germany

  • Flag: Germany

  • Favorite Pinball: AFM

Posted 02 February 2016 - 09:00 AM

just test with a potential new build then if that goes away and let us know here in the thread..



#106 arngrim

arngrim

    DJ Force Feedback

  • VIP
  • 2,188 posts
  • Location:Charleroi, Belgium

  • Flag: Belgium

  • Favorite Pinball: Monster bash



Posted 02 February 2016 - 09:20 AM

ok



#107 fuzzel

fuzzel

    spaghetti code

  • VP Dev Team
  • PipPipPipPipPip
  • 2,818 posts

  • Flag: Germany

  • Favorite Pinball: yes I have

Posted 02 February 2016 - 01:28 PM

rev2488 is up :

 

- add a "Raise Delay" setting to drop targets
- limit maximum amount of time spent in scripts per frame
- limit timer update interval to 200Hz (interval value = 5 (msec))
- add test if user folder already exists, otherwise create it (in controller.vbs)
 



#108 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 02 February 2016 - 01:55 PM

Not that this is that important, but something that might want to be looked at.  I recently showed a buddy VPX.  He just wanted to see it in action without a fancy table, so I started a new table and just played that.  Problem is the physics aren't that good.  i think they should be finely tuned just to show off how great VPX can be.



#109 BorgDog

BorgDog

    We come in peace.. shoot to kill.. shoot to kill.

  • Members
  • PipPipPipPip
  • 1,427 posts
  • Location:Leavenworth, WA

  • Flag: United States of America

  • Favorite Pinball: Alien Star, TNA



Posted 02 February 2016 - 01:58 PM

I don't know if it's come up, but would it be possible to make it so I can actually have a white bumper base without having to replace it all with primitives and then animate it?  Most materials that get applied are ok, muted but OK, but white is always grey.  When I turn off base visible, then I have to place a skirt, a base, a ring, and then animate it.  Maybe if the ring was a separate item so I could replace the base with a primitive but still use the built in ring and animation?  This would be very time saving, and less timer animations (although slow ones, but they all add up).

 

Thanks.



#110 toxie

toxie

    VPF Veteran

  • VP Dev Team
  • PipPipPipPipPipPip
  • 5,734 posts
  • Location:berlin, germany

  • Flag: Germany

  • Favorite Pinball: AFM

Posted 02 February 2016 - 02:42 PM

rev2488 is up :

 

- add a "Raise Delay" setting to drop targets
- limit maximum amount of time spent in scripts per frame
- limit timer update interval to 200Hz (interval value = 5 (msec))
- add test if user folder already exists, otherwise create it (in controller.vbs)
 

 

this one i disabled again.. so the responsibility to keep timer intervals sane is still up to the artists..

the core now only makes sure that not a whole bunch of costly scripts will fire within the same frame.. these are then spread out over multiple frames..



#111 Seraph74

Seraph74

    Enthusiast

  • Platinum Supporter
  • 152 posts
  • Location:Australia

  • Flag: Australia

  • Favorite Pinball: EatPM, TOM, SS

Posted 02 February 2016 - 04:15 PM

The BulbIntensityScale setting is great, just wondering what would be the code to use it with cvpm Ballstack ?

Found that I could add a line before kicker init and the first ball works, but not others...

 

and/or is there a way to change the default (1) for every ball in a table

 

Thanks



#112 allknowing2012

allknowing2012

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,948 posts
  • Location:Waterloo, ON

  • Flag: Canada

  • Favorite Pinball: bucaneer

Contributor

Posted 02 February 2016 - 04:44 PM

Test with Embryon - How were you capturing where the cpu spent time? 


* I don't know everything - I just have no life *
testimageNL

 

 

 

#113 lodger

lodger

    Board Certified Funk Master

  • Members
  • PipPipPipPip
  • 993 posts
  • Location:Altoona Pennsylvania

  • Flag: United States of America

  • Favorite Pinball: Whirlwind, TAF

Contributor

Posted 02 February 2016 - 06:01 PM

Not that this is that important, but something that might want to be looked at.  I recently showed a buddy VPX.  He just wanted to see it in action without a fancy table, so I started a new table and just played that.  Problem is the physics aren't that good.  i think they should be finely tuned just to show off how great VPX can be.

I think this is more of a community issue than a software issue. There's bound to be a learning curve and to get artists up to speed it would be really good to have folks who would be able to make objective suggestions for the sake of realism. I think the options to make it right is all there in the software, but the issue is that people need to learn (and be supported) to use it effectively.


berzerk2_0logo.png

http://www.vpforums....&showfile=11819

Version 2.0- Released 2/27/16


#114 osujd

osujd

    Enthusiast

  • Silver Supporter
  • 74 posts

  • Flag: ---------

  • Favorite Pinball: TAF

Posted 02 February 2016 - 08:45 PM

The latest revision with the limit timer update interval to 200HZ seemed to really boost the performance of my boards I am wondering why you are now removing this toxie?  Seems like a great addition



#115 Ben Logan

Ben Logan

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 2,275 posts
  • Location:California

  • Flag: ---------

  • Favorite Pinball: System 11

Posted 02 February 2016 - 09:40 PM

The latest revision with the limit timer update interval to 200HZ seemed to really boost the performance of my boards I am wondering why you are now removing this toxie?  Seems like a great addition

 

I admit I was excited to see this feature employed, as I was hoping it'd eliminate some stutter. I'm curious about it being disabled, too! I support your rationale, of course. 



#116 jimmyfingers

jimmyfingers

    Pinball Fan

  • VIP
  • 832 posts

  • Flag: Canada

  • Favorite Pinball: Comet



Posted 02 February 2016 - 10:47 PM

You can always manually limit the timers yourself so having it done in code is not desirable and can affect other operation.  Plus I think people have the wrong impression and reported the latest revision as being better thinking the next one won't be by having this "feature" reverted, but this latest release already has the code reverted back to where it was (i.e. there was never a version released yet where it was at this hard coded 5ms / 200Hz level).  Toxie was just correcting the release notes, as his reverting of this feature was done at rev 2487 before this 2488 release).  So if you like / liked the way rev2488 runs, than it has nothing to do with forcing timers to no lower than 5 ms.

 

The timer stuff is not going to be the save all for stutter and certainly not the surging / tearing kind (as that is likely just going to happen if not using vsync in some way).  I can still produce plenty of it depending on other aspects / settings (aero / desktop composition / dwm off and without using vsync) but also get it butter smooth as well.  To isolate timers as ever a factor, simply using the default table for testing is the route, as it is not VPM based / integrate and has only one single timer for the ball rolling sounds plus also with that lone timer disabled, to test a timer-free experience, exclude all of this recent discussion / code changes from impact / being a factor and in that environment I can still produce stutter if I don't set things to the manner best to avoid it (and already discussed ad noxium).  In fact most of my personal tests for screen / ball smoothness have typically used the default table as in general in limits a lot of other factors from being factors. 

 

As Toxie says and I fully agree with, "responsibility to keep timer intervals sane is still up to the artists (authors)".  I don't see why a feature should ever be hardcoded and forced on that an author or end user could still do on their own, just like in this case, if you want limiting to 5 ms or 200 Hz for timers, than check the timers on a table and any that are set below change to 5 - done.



#117 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 03 February 2016 - 12:19 AM

When did popup tool tips come to VP?  under Preferences->Video Options and when I hover the mouse pointer over "rotate for cabinet use" a tool tip pops up (I think that what you call it), Very cool.  This might help out a lot of people with options



#118 toxie

toxie

    VPF Veteran

  • VP Dev Team
  • PipPipPipPipPipPip
  • 5,734 posts
  • Location:berlin, germany

  • Flag: Germany

  • Favorite Pinball: AFM

Posted 03 February 2016 - 08:55 AM

 

The latest revision with the limit timer update interval to 200HZ seemed to really boost the performance of my boards I am wondering why you are now removing this toxie?  Seems like a great addition

 

I admit I was excited to see this feature employed, as I was hoping it'd eliminate some stutter. I'm curious about it being disabled, too! I support your rationale, of course. 

 

 

Don't get me wrong, everything is still in there, exactly like in the build you guys got, nothing changed since then.

Its just that this build already does not contain the striked out part anymore as the 'limit maximum amount of time spent in scripts per frame' part seems to be good enough to do the job.

 

But still, to all authors: Please keep timer intervals in the >= 5 range! (unless its really really necessary to go lower)


Edited by toxie, 03 February 2016 - 08:57 AM.


#119 kiwi

kiwi

    Pinball Fan

  • VIP
  • 2,665 posts

  • Flag: Italy

  • Favorite Pinball: Star Trek 25th Anniversary



Posted 03 February 2016 - 09:53 AM

Something that I have already asked in the past,

in debug mode with the raised playfield, the balls are created under the playfield.

 

Thanks

 

Max



#120 fuzzel

fuzzel

    spaghetti code

  • VP Dev Team
  • PipPipPipPipPip
  • 2,818 posts

  • Flag: Germany

  • Favorite Pinball: yes I have

Posted 03 February 2016 - 11:01 AM

Do you mean with raised playfield the playfield height or another wall over the playfield?