Jump to content



Photo
- - - - -

Stuttering Cure


  • Please log in to reply
80 replies to this topic

#1 settingsons

settingsons

    Pinball Fan

  • VIP
  • 959 posts
  • Location:Switzerland

  • Flag: Switzerland

  • Favorite Pinball: Terminator 2 and many EM machines



Posted 06 March 2012 - 10:19 PM

There are just a handful of tables that have ALWAYS given me stutter and/or micro-stutter with or without UVP. My PC is a Core i7 overclocked, GTX480, etc. I have thrown better RAM at it, a dedicated soundcard, only have 5 services running in XP and although most tables run like a dream on a 3-screen setup with UVP, there are just a few that don't.

The tables for me include Twilight Zone, Circus Voltaire (UVP version), Pinbot, Comet, Lethal Weapon, some microstutter on Freddie plus a few others. I really want Pinbot as it is a beautiful re-creation - therefore I spent a lot of time removing things from the script until I have stumbled upon a fix that sorts out my stuttering problem once and for all, for ALL tables.

The new pre-release version of UW superb BBB was also give me stuttering, but no more!

The following fix, fixes every table for me that I have had trouble with. I have absolutely no stutter anymore and I use UVP. I hope this might work for others.

Search for the line in the script where you see an interval setting for the Lamptimer.Interval, and increase the number by about 10ms to 15ms...

eg:
Lamptimer.Interval=35

and increase by 5, 10, or 15ms. I usually end up adding 10ms.

Lamptimer.Interval=45

Save and run the table. Not every table has this code in the script but it does appear in all the tables I have fixed.

From my understanding this simply means the interrupt to refresh the lamps will kick-in every 45ms instead of 35ms. I don't know if there are any consequences in doing this - someone else may know but I haven't had any issues so far.

My PC is super-fast so I am surprised this makes a difference. It will be interesting to hear if this makes a difference for anyone else, so please do try it on any tables you can't normally play smoothly.

Cheers

EDIT: It also FIXES Twilight Zone.

Edited by settingsons, 06 March 2012 - 10:27 PM.


#2 blur

blur

    Pinball Fan

  • VIP
  • 1,500 posts

  • Flag: Croatia

  • Favorite Pinball: Amazing Spiderman, Black Hole, Totem



Posted 06 March 2012 - 10:49 PM

great find!!!
congrats!

#3 michaelinfurs

michaelinfurs

    Enthusiast

  • Members
  • PipPipPip
  • 103 posts

  • Flag: United States of America

  • Favorite Pinball: twilight zone

Posted 06 March 2012 - 11:00 PM

defiantly will try this out \ i have a dedicated i3 \ gtx560 \ win 7 64 setup and most everything runs pretty smooth just a occasional micro studder on a few tables \ i am always game to get better performance


michael t


#4 JAM0

JAM0

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,146 posts
  • Location:Spain

  • Flag: Spain

  • Favorite Pinball: Fathom, Elvira

Posted 06 March 2012 - 11:00 PM

This is very exciting Settingtons dblthumb.gif Can't wait to try it. Thanks for sharing this.

#5 chriz

chriz

    Enthusiast

  • Platinum Supporter
  • 451 posts

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

  • Favorite Pinball: Funhouse

Posted 06 March 2012 - 11:20 PM

thanks for the info, can't wait to try this out cool.gif

cheers
Chris
 

 


#6 Arcade4

Arcade4

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,686 posts
  • Location:Beaumont, TX.

  • Flag: United States of America

  • Favorite Pinball: AC/DC

Posted 06 March 2012 - 11:24 PM

Thanks for taking the time to do this. smile.gif
Lethal Weapon here I come. dblthumb.gif


#7 Rawd

Rawd

    Pinball Wizard

  • VIP
  • 4,311 posts
  • Location:Edmonton, Canada

  • Flag: Canada

  • Favorite Pinball: Triple Strike



Posted 06 March 2012 - 11:52 PM

Very interesting find. Thank you, and I will test it also.



 


#8 Arcade4

Arcade4

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,686 posts
  • Location:Beaumont, TX.

  • Flag: United States of America

  • Favorite Pinball: AC/DC

Posted 06 March 2012 - 11:59 PM

Well it worked. dblthumb.gif
However not in the small intervals you were talking about.
I started out on Lethal Weapon with a 35.
Moved it to 45 and nothing.
Moved it to 55 nothing.
Moved it to 85 nothing
Moved it to 150 finally a noticeable difference.
Had to go all the way to 200 before game play was smooth.
So far I do not see any problem with the lights on the game.
I'm sure someone will tell us why we should not be doing this, but so far so good. otvclap.gif

Just tried in on Freddy Nightmare on Elm. Same thing had to go to 200 but gameplay is smooth as glass.
Confirmed on Scared Stiff but only had to go up to 45.
Tried it on Monopoly just for fun. I think it actually makes it worse if that is even possible. lol
What a great find this is.

Edited by Arcade4, 07 March 2012 - 02:32 AM.


#9 kruge99

kruge99

    Pinball Wizard

  • VPF Staff
  • 3,901 posts
  • Location:Markham, Ont.

  • Flag: Canada

  • Favorite Pinball: Black Knight, High Speed and Pin*Bot



Posted 07 March 2012 - 12:32 AM

I'd like to see what the visual pinmame gods have to say about this... what's your opinion on this Destruk? Does it affect the "realism" of the emulation at all? Won't some kind of synchronization be "off" somehow?


Best Regards,
Todd.

[proud owner of a Williams Solar Fire]

- It's called "The American Dream" because you have to be asleep to believe it.
George Carlin
- Truly great madness cannot be achieved without significant intelligence.
Henrik Tikkanen
- "Reality check, Michelle, Talk about composure, Total lack of. He's a man-- About-- 12 Feet Tall--"
Carrie Kelly
Posted Image

#10 bladexdsl

bladexdsl

    Joined the elite ranks

  • Banned
  • PipPipPipPip
  • 1,234 posts
  • Location:Queensland

  • Flag: Australia

  • Favorite Pinball: Scared stiff and Congo

Posted 07 March 2012 - 12:34 AM

QUOTE (Arcade4 @ Mar 7 2012, 12:59 AM) <{POST_SNAPBACK}>
Tried it on Monopoly just for fun. I think it actually makes it worse if that is even possible. lol

that table is a demon! rofl.gif

i'm gonna try it with bbb it's pretty much the only table i get stutter with.

#11 Arcade4

Arcade4

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,686 posts
  • Location:Beaumont, TX.

  • Flag: United States of America

  • Favorite Pinball: AC/DC

Posted 07 March 2012 - 12:50 AM

QUOTE (kruge99 @ Mar 6 2012, 06:32 PM) <{POST_SNAPBACK}>
I'd like to see what the visual pinmame gods have to say about this... what's your opinion on this Destruk? Does it affect the "realism" of the emulation at all? Won't some kind of synchronization be "off" somehow?


Best Regards,
Todd.


I agree it needs more testing and input.
I did not pay that much attention to the actual game play, just the smoothness of the ball flow.
I will play more games later tonight when I have more time.
Really just Lethal Weapon was a big problem for me. It was so bad that I rarely played it.
Maybe there will be a happy medium here somewhere, so we can finally rid the world of micro stutter.


#12 Noah Fentz

Noah Fentz

    'Rasslin' Fan

  • VPF Administrator
  • 12,189 posts
  • Location:South Lyon, MI

  • Flag: United States of America

  • Favorite Pinball: Whitewater

  • PS3 Gamer Tag: noahfentz


Contributor

Posted 07 March 2012 - 12:58 AM

I don't see how this would create a problem. The lights update at .3 seconds, instead of .04 seconds.

Not sure the eye can tell the difference.

The only problem that may arise is it takes a full 1.2 seconds to turn a lamp from the on state to the off state. I would therefore suggest a max of 200, to keep it under 1 second.

IdleReel.gif RumbleDMD.jpg HS2-DMD.jpg SBM.jpg ww_logo.jpg EK.jpg

 
T2.jpg Sorcerer.jpg Breakshot.jpg Firepower.jpg GorGar.jpg StarTrek.jpg


My Photobucket Resources
Whether You Believe You Can, Or You Can't, You Are Right." - Henry Ford
The future of pinball lives, it just needs to be nurtured!
If you're here to stab me in the back, you're going to have to get in line.


#13 maceman

maceman

    Home Pinball Machine Collector/ Restorer

  • VIP
  • 2,271 posts
  • Location:Canada, Eh!

  • Flag: Canada

  • Favorite Pinball: ....**Haunted House**....



Posted 07 March 2012 - 02:08 AM

Wow- This is extremely exciting!!!

Beautiful find man!

Maceman
________________________________________________________________________________
Canada Eh!
hm_avatar.pngss_avatar.jpg MODS ys_avatar5.jpggenie_avatar.pngj2o_avatar.png

#14 Arcade4

Arcade4

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,686 posts
  • Location:Beaumont, TX.

  • Flag: United States of America

  • Favorite Pinball: AC/DC

Posted 07 March 2012 - 02:13 AM

QUOTE (Noah Fentz @ Mar 6 2012, 06:58 PM) <{POST_SNAPBACK}>
I don't see how this would create a problem. The lights update at .3 seconds, instead of .04 seconds.

Not sure the eye can tell the difference.

The only problem that may arise is it takes a full 1.2 seconds to turn a lamp from the on state to the off state. I would therefore suggest a max of 200, to keep it under 1 second.


I will try an bump my Lethal Weapon down to 190 and see how it plays.
Edit-- Turns out the lowest I can get Lethal Weapon is 140. Any lower and the stuttering is just too bad to really want to play the table.
Thank goodness this is the only really bad table that I have in my cabinet.
I have never had a problem with Twilight Zone or Cirqus Voltaire.

Edited by Arcade4, 07 March 2012 - 02:44 AM.


#15 Aaron James

Aaron James

    <<< Grand Champion >>>

  • VIP
  • 1,408 posts
  • Location:Shelby Township, Michigan

  • Flag: United States of America

  • Favorite Pinball: Docking Complete...Negative...You Must Redock...Redock Now!



Posted 07 March 2012 - 02:17 AM

IMO, you really can't go higher than 50...because even i noticed the difference in the lights not blinking properly/as they should like the real thing.
200 may make the stutter go away, but the lighting patterns and blinking intervals are horrible and not realistic for a pro pinballer.

My trial game i did this on was cirqus voltaire. (strike an arc multiball)

In the end, even if it takes ANY of the stutter away, it's a find, so thank you.

vpsig.jpg


#16 Slydog43

Slydog43

    Pinball Wizard

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

  • Flag: United States of America

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

Posted 07 March 2012 - 02:33 AM

wow great find!!!!! I only had micro stutter on tables like Lethal Weapon 3, so I tried changing the LampTimer to 200 and It seems better, will try 50 and see if I see any change.

Edited by Slydog43, 07 March 2012 - 02:34 AM.


#17 Zablon

Zablon

    Pinball Fan

  • Members
  • PipPipPipPip
  • 642 posts

  • Flag: United States of America

  • Favorite Pinball: Funhouse

Posted 07 March 2012 - 02:49 AM

I will try this on the 3 tables I still seem to get stutter on: Checkpoint (UVP), LW3 (no UVP), Bride of Pinbot (UVP). I am curious as to why would it fix stuttering? Is it because of not trying to play a sound and a light at the exact same time? You still have the same amount of lights flashing. An answer to this might help figure out where the stuttering is coming from to begin with.

#18 oooPLAYER1ooo

oooPLAYER1ooo

    habitual deflector

  • VIP
  • 806 posts
  • Location:sydney , Australia

  • Flag: Australia

  • Favorite Pinball: Al's Garage Band Goes On A World Tour

  • 360 Gamer Tag: oooPLAYER1ooo


Posted 07 March 2012 - 02:53 AM

the timer changes the animation of the fading light script, if you crank it too high the lights wont fire exactly as they should on fast sequences.
from my experience the time should not go higher than 50 and thats the extreme end
if you change the timer too low a value you dont see the fading effect as its going too fast.

°)つ◕_◕༽つ( ͡° ͜ʖ ͡°)つ◕_◕༽つ( ͡° ͜ʖ ͡°)つ◕_◕༽つ( ͡° ͜ʖ ͡°)つ◕_◕༽つ( ͡° ͜ʖ ͡°)つ◕_◕༽つ( ͡° ͜ʖ ͡°)つ◕_◕༽つ( ͡° ͜ʖ ͡°)つ◕_◕༽つ( ͡° ͜ʖ ͡°)つ◕_◕༽つ( ͡° ͜ʖ ͡°)つ◕_◕༽つ( ͡° ͜ʖ ͡°)つ◕_◕༽つ( ͡° ͜ʖ ͡°)つ◕_◕༽つ( ͡° ͜ʖ ͡°)つ◕_◕༽つ( ͡° ͜ʖ ͡°)つ◕_◕༽つ( ͡° ͜ʖ ͡°)つ◕_◕༽つ( ͡° ͜ʖ ͡°)つ◕_◕༽つ( ͡° ͜ʖ ͡°)つ◕_◕༽つ( ͡° ͜ʖ ͡°)つ◕_◕༽つ( ͡° ͜ʖ ͡°)つ◕_◕༽つ( ͡° ͜ʖ ͡°)つ◕_◕༽つ( ͡° ͜ʖ ͡°)





ozpin.gif


#19 Noah Fentz

Noah Fentz

    'Rasslin' Fan

  • VPF Administrator
  • 12,189 posts
  • Location:South Lyon, MI

  • Flag: United States of America

  • Favorite Pinball: Whitewater

  • PS3 Gamer Tag: noahfentz


Contributor

Posted 07 March 2012 - 03:05 AM

While I certainly agree the lower, the better, if it comes down to being playable or not at all playable, I think the choice is obvious.

wink.gif

IdleReel.gif RumbleDMD.jpg HS2-DMD.jpg SBM.jpg ww_logo.jpg EK.jpg

 
T2.jpg Sorcerer.jpg Breakshot.jpg Firepower.jpg GorGar.jpg StarTrek.jpg


My Photobucket Resources
Whether You Believe You Can, Or You Can't, You Are Right." - Henry Ford
The future of pinball lives, it just needs to be nurtured!
If you're here to stab me in the back, you're going to have to get in line.


#20 KloggMonkey

KloggMonkey

    Enthusiast

  • Members
  • PipPipPip
  • 335 posts
  • Location:Kansas

  • Flag: United States of America

  • Favorite Pinball: Indiana Jones - The Pinball Adventure

Posted 07 March 2012 - 03:32 AM

I have a similar PC and get stutter on a few tables, I always had a hunch it had to do with the insert lamps... thanks for the info gonna give this a try.


Edit: Tested and confirmed. Helps me eliminate my micro stutter. Thanks!

Edited by KloggMonkey, 07 March 2012 - 03:58 AM.