Jump to content



Photo
- - - - -

Is there a way to set DDRAW = 0 globally?


  • Please log in to reply
55 replies to this topic

#21 hauntfreaks

hauntfreaks

    Real 4K Tables Since 2013

  • VIP
  • 2,522 posts
  • Location:South Jersey

  • Flag: United States of America

  • Favorite Pinball: -<3<3<3 All Real Pins



Posted 03 July 2017 - 02:33 AM

I'll admit I'm still manually setting ddraw to zero for each individual table in regedit. I never was able to get global setting to work through creation of default table, or setting the one already named default to zero. So I'm curious like sifuson! :)

 

Ben I'm sure you already know this.... but if not.... if you export the VPM folder within regedit, open it into something like notepad++ you can do a find and replace to all the existing rom entries .... then save it and double click it...to apply the reg......  I sure wasn't going to do 260+ entries one by one...


 26794541816_30ca1cca80_o.gif 43109635392_fc11af1a57_o.gif


#22 hauntfreaks

hauntfreaks

    Real 4K Tables Since 2013

  • VIP
  • 2,522 posts
  • Location:South Jersey

  • Flag: United States of America

  • Favorite Pinball: -<3<3<3 All Real Pins



Posted 03 July 2017 - 08:33 AM

I've always wondered why if having DDRAW set to 0 works fine in windows FS as well as forced FS.... why cant the rom just be set to zero before it ever makes it to the end user??

please remember I'm saying this, but know nothing what so ever that goes into these roms.... info on why would just be interesting to know


 26794541816_30ca1cca80_o.gif 43109635392_fc11af1a57_o.gif


#23 Drybonz

Drybonz

    Really bad at pinball, but having fun.

  • Members
  • PipPipPipPip
  • 1,538 posts

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

  • Favorite Pinball: Theatre of Magic

Posted 03 July 2017 - 09:49 AM

I set the "default" reg entry as 0, then all new tables added have that as the default.  At one point I deleted all the ones I had already added and started fresh, but that was some time ago.  It would be nice if you could somehow overwrite the old ones but it doesn't work with that method.  You can use the notepad method, or perhaps there will be an option in VPM some day.



#24 Outhere

Outhere

    Pinball Wizard

  • Platinum Supporter
  • 4,805 posts

  • Flag: United States of America

  • Favorite Pinball: M M

Posted 03 July 2017 - 02:04 PM

Like Drybonz in my default ROM area in the "regedit", I have the Ddraw set to 0 and I also have the size and location of the DMD so every time I load a game it automatically goes to the right location and size

-

If you are comfortable with the Windows registry, here is the manual way to setup a specific DMD size and location for all new tables (I used this approach)
1) Setup the DMD for one VP table manually the way you want it.  
2) Open the registry and locate Computer\HKEY_CURRENT_USER\Software\Freeware\Visual PinMame\<rom filename> for the table you manually setup.  Write down the values for the 5 keys below, 
3) Now navigate to Computer\HKEY_CURRENT_USER\Software\Freeware\Visual PinMame\default and create duplicate keys in the Default folder.  
 
ALTERNATE APPROACH: 
1) Setup the DMD for one VP table manually the way you want it.  
2) Open the registry and locate Computer\HKEY_CURRENT_USER\Software\Freeware\Visual PinMame\default   and delete that entry
2) In the registry, now locate Computer\HKEY_CURRENT_USER\Software\Freeware\Visual PinMame\<rom filename> for the table you manually setup and rename it to Computer\HKEY_CURRENT_USER\Software\Freeware\Visual PinMame\default
All new tables will automatically pick up the Default settings
 
 
Every new ROM/Table played will start with the default values.  You can edit any existing ROM entries if desired or delete them, so they will be re-created based on the default entry the next time you play that table

 

More Info - http://www.vpforums....als&article=136


Edited by Outhere, 03 July 2017 - 02:06 PM.


#25 Replay

Replay

    Enthusiast

  • Platinum Supporter
  • 91 posts
  • Location:Eugene Oregon

  • Flag: United States of America

  • Favorite Pinball: Star Trek TNG

Posted 05 September 2017 - 07:50 PM

 


 

Ben I'm sure you already know this.... but if not.... if you export the VPM folder within regedit, open it into something like notepad++ you can do a find and replace to all the existing rom entries .... then save it and double click it...to apply the reg......  I sure wasn't going to do 260+ entries one by one...

 

 

When I try doing this I get a terminated before initialized error, check rom path or file!

 

If I set everything back to use ddraw then it works

 

I can't figure out why trying to run with direct3d would throw me an error. Anyone have any ideas?


Edited by Replay, 05 September 2017 - 07:51 PM.


#26 hauntfreaks

hauntfreaks

    Real 4K Tables Since 2013

  • VIP
  • 2,522 posts
  • Location:South Jersey

  • Flag: United States of America

  • Favorite Pinball: -<3<3<3 All Real Pins



Posted 05 September 2017 - 08:05 PM

 

 


 

Ben I'm sure you already know this.... but if not.... if you export the VPM folder within regedit, open it into something like notepad++ you can do a find and replace to all the existing rom entries .... then save it and double click it...to apply the reg......  I sure wasn't going to do 260+ entries one by one...

 

 

When I try doing this I get a terminated before initialized error, check rom path or file!

 

If I set everything back to use ddraw then it works

 

I can't figure out why trying to run with direct3d would throw me an error. Anyone have any ideas?

 

what is you just set one manually?   same error?


 26794541816_30ca1cca80_o.gif 43109635392_fc11af1a57_o.gif


#27 Replay

Replay

    Enthusiast

  • Platinum Supporter
  • 91 posts
  • Location:Eugene Oregon

  • Flag: United States of America

  • Favorite Pinball: Star Trek TNG

Posted 05 September 2017 - 09:17 PM

 

 

 


 

Ben I'm sure you already know this.... but if not.... if you export the VPM folder within regedit, open it into something like notepad++ you can do a find and replace to all the existing rom entries .... then save it and double click it...to apply the reg......  I sure wasn't going to do 260+ entries one by one...

 

 

When I try doing this I get a terminated before initialized error, check rom path or file!

 

If I set everything back to use ddraw then it works

 

I can't figure out why trying to run with direct3d would throw me an error. Anyone have any ideas?

 

what is you just set one manually?   same error?

 

 

Yeah, same error testing with afm_113b and jpsalas version of the VPX table. I'm not sure what's wrong.

 

This is in registry for afm_113b

https://pastebin.com/j1fXWcjX

 

Default

https://pastebin.com/J5wtVec5

 

putting ddraw 0 and direct3d 1 makes it error but reverse then table with DMD loads as it should. Have no idea how to fix at the moment.
 


Edited by Replay, 05 September 2017 - 09:18 PM.


#28 hauntfreaks

hauntfreaks

    Real 4K Tables Since 2013

  • VIP
  • 2,522 posts
  • Location:South Jersey

  • Flag: United States of America

  • Favorite Pinball: -<3<3<3 All Real Pins



Posted 05 September 2017 - 09:40 PM

here is a screenshot of my AFM reg setting

post-73849-0-21614000-1504647563.png

Attached Files


 26794541816_30ca1cca80_o.gif 43109635392_fc11af1a57_o.gif


#29 Replay

Replay

    Enthusiast

  • Platinum Supporter
  • 91 posts
  • Location:Eugene Oregon

  • Flag: United States of America

  • Favorite Pinball: Star Trek TNG

Posted 05 September 2017 - 09:47 PM

Any chance you're willing to export and copy and paste like I did in my post above?

 

I can just paste your entire thing then set the DMD position I want and hope it allows me to run direct3d



#30 hauntfreaks

hauntfreaks

    Real 4K Tables Since 2013

  • VIP
  • 2,522 posts
  • Location:South Jersey

  • Flag: United States of America

  • Favorite Pinball: -<3<3<3 All Real Pins



Posted 05 September 2017 - 10:11 PM

here is my whole vpinmame reg.... open it in notepad++ and copy what you from it

Attached File  HF_Vpinmame.zip   53.86KB   41 downloads


 26794541816_30ca1cca80_o.gif 43109635392_fc11af1a57_o.gif


#31 Replay

Replay

    Enthusiast

  • Platinum Supporter
  • 91 posts
  • Location:Eugene Oregon

  • Flag: United States of America

  • Favorite Pinball: Star Trek TNG

Posted 05 September 2017 - 10:30 PM

Thanks so much for the help. Really appreciate it.

 

So in your afm_113b you have both ddraw and direct3d both set to 0

 

Is having both set to 0 optimal for Fullscreen Exclusive mode?

 

I imported your settings for afm_113b and the table loads along with the appropriate DMD as it should. Maybe trying to set direct3d is where I went wrong?



#32 hauntfreaks

hauntfreaks

    Real 4K Tables Since 2013

  • VIP
  • 2,522 posts
  • Location:South Jersey

  • Flag: United States of America

  • Favorite Pinball: -<3<3<3 All Real Pins



Posted 05 September 2017 - 11:15 PM

yes I've been running in Fullscreen Exclusive mode since the day it was added... I would never not run VPX any other way

the setting i'm using are also the same...


Edited by hauntfreaks, 05 September 2017 - 11:16 PM.

 26794541816_30ca1cca80_o.gif 43109635392_fc11af1a57_o.gif


#33 chokeee

chokeee

    Enthusiast

  • Members
  • PipPipPip
  • 333 posts

  • Flag: Poland

  • Favorite Pinball: High Speed

Posted 06 September 2017 - 07:44 AM

When I play VPX in Exclusive FS every table plays super smooth but I have flippers lag. I havent the lag problem when I play in normal FS. Any ideas? ;)



#34 TNT2

TNT2

    Enthusiast

  • Members
  • PipPipPip
  • 420 posts

  • Flag: United States of America

  • Favorite Pinball: Depends on the day

Posted 06 September 2017 - 08:09 AM

If I remember correctly, I had lag until I set the vsync to match my monitor refresh rate.



#35 Replay

Replay

    Enthusiast

  • Platinum Supporter
  • 91 posts
  • Location:Eugene Oregon

  • Flag: United States of America

  • Favorite Pinball: Star Trek TNG

Posted 06 September 2017 - 09:15 PM

I don't have any lag I guess because I have a G-Sync (144 Hz) display as my main. I have to put 60 for the FPS limiter or else everything goes really fast.

 

Controlling the flippers with a USB gamepad doesn't give me any lag at all.

 

I'd be curious to see what others with a G-Sync display and video card have for their video settings.

 

Attached File  video.jpg   157.56KB   9 downloads

 

I might be better off if I limit the FPS by 80 or so, but I haven't found the magic number as of yet. Maybe someone else has an idea?


Edited by Replay, 06 September 2017 - 09:17 PM.


#36 hauntfreaks

hauntfreaks

    Real 4K Tables Since 2013

  • VIP
  • 2,522 posts
  • Location:South Jersey

  • Flag: United States of America

  • Favorite Pinball: -<3<3<3 All Real Pins



Posted 06 September 2017 - 10:21 PM

I don't have any lag I guess because I have a G-Sync (144 Hz) display as my main. I have to put 60 for the FPS limiter or else everything goes really fast.

 

Controlling the flippers with a USB gamepad doesn't give me any lag at all.

 

I'd be curious to see what others with a G-Sync display and video card have for their video settings.

 

attachicon.gifvideo.jpg

 

I might be better off if I limit the FPS by 80 or so, but I haven't found the magic number as of yet. Maybe someone else has an idea?

when did you last play a real pinball machine?


 26794541816_30ca1cca80_o.gif 43109635392_fc11af1a57_o.gif


#37 Replay

Replay

    Enthusiast

  • Platinum Supporter
  • 91 posts
  • Location:Eugene Oregon

  • Flag: United States of America

  • Favorite Pinball: Star Trek TNG

Posted 07 September 2017 - 01:41 AM

It's been about 20 years give or take :(



#38 stiquem

stiquem

    Hobbyist

  • Members
  • PipPip
  • 14 posts

  • Flag: Netherlands

  • Favorite Pinball: Game of Thrones

Posted 07 September 2017 - 01:30 PM

I don't have any lag I guess because I have a G-Sync (144 Hz) display as my main. I have to put 60 for the FPS limiter or else everything goes really fast.

 

Controlling the flippers with a USB gamepad doesn't give me any lag at all.

 

I'd be curious to see what others with a G-Sync display and video card have for their video settings.

 

attachicon.gifvideo.jpg

 

I might be better off if I limit the FPS by 80 or so, but I haven't found the magic number as of yet. Maybe someone else has an idea?

 

Hello fellow g-sync monitor owner ;D. I have a g-sync display but never use that feature. In shooters it produces crazy input lag to the point that I prefer tearing, and in VP I never bothered trying it out. Simply turning on v-sync reduced any last bit of bull stutter that was noticeable with v-sync turned off.

What exactly do you mean when you say "everything goes really fast"? Do you mean that the ball travels way faster?

 

I tried setting my max fps in VP to 144 and turning on g-sync to replicate your fast moving of the ball.

The result was that my frames started fluctuating wildly (from 70 to 300+). This induced huge stutter in the balls movement and occasionally led to the ball "skipping" across the playfield. At times the skipping made it seem as if the ball was moving very fast. Is that what you're referring to?

The dips in frame rate never occurred with v-sync simply turned on or off. Off yields a constant 240 fps but with stutter, and on means it's locked at 144 and the ball is free of stutter. Note that if you're using a playfield and a blackglass with difference refresh rates you wanna force exclusive full screen mode to allow v-sync to work properly, otherwise the frames will start becoming unstable. I am running windows 10 though, so if you're running windows 7 you might not need to do this if you disable aero (not sure).

 

Tables that maintain a constant 144 frames per second run silky smooth for me.

I've posted my video settings and setup below. Hope this helps!

 

Setup

i7 4790k

gtx 980ti (OCed to 1500mhz on water)

32gb ram

windows 10

wqhd 144hz panel as playfield

fhd 60hz panel for b2s

 

Video settings

dqku45.png



#39 Replay

Replay

    Enthusiast

  • Platinum Supporter
  • 91 posts
  • Location:Eugene Oregon

  • Flag: United States of America

  • Favorite Pinball: Star Trek TNG

Posted 07 September 2017 - 10:41 PM

<<I have a g-sync display but never use that feature.

 

That's pretty weird to hear that. G-Sync is really nice with MAME as well as modern games. I've used a few different gamepads and don't have lag with any games that I run.

G-Sync is especially good with MAME because it's supports any custom frame rate without needing to enable waitvsync or syncrefresh. A game like Mortal Kombat runs at 54.706840 Hz and so because G-Sync isn't hard-locked to anything specific, it supports it natively.

 

<<What exactly do you mean when you say "everything goes really fast"? Do you mean that the ball travels way faster?

 

Yes. It goes so fast I can't keep my eye on the ball. It's like Super Street Fighter II Turbo on crack.

 

My mistake might have been setting FPS/Limiter/VSync to 0. I didn't think anything would run faster than the max my display supports and I wanted to disable VSync since I've never needed it with anything else, but I'm realizing now it's probably not optimal.

 

Thanks stiquem, for posting your settings. I'll give them a run tonight and see what results I get.

 

i7 930 at stock clock 2.8 GHz

GTX 970

6 GB RAM

Windows 10 Pro X64

Acer 4:3 60 Hz display for B2S



#40 xenonph

xenonph

    I have Pinball Fever!

  • VIP
  • 4,127 posts
  • Location:Castle Rock, WA.

  • Flag: United States of America

  • Favorite Pinball: TRON Classic-Congo-Xenon-PINBOT-BOP-LOTR-A Real American Hero OPERATION PINBALL-Millionaire-Whirlwind-Krull-NFL-BlackKnight-FishTales

Contributor

Posted 07 September 2017 - 10:59 PM

You can also add this to table script...

 

Controller.Games(cGameName).Settings.Value("ddraw") = 0

 

some table scripts may be different so it may also look like this with rom name...

 

Controller.Games("afm_113b").Settings.Value("ddraw") = 0

 

This should be added after the Sub Table1_Init line.

In the area of ShowDMD=1.

 

This will only work on a per table basis, but if you have to reset your Windows to factory setting, (Or your Harddrive dies.), all your tables will already be set up like this, so you will never have to mess with registry again.

 

Just an alternate way of doing it. It may be harder, but it is permanent, even if you redo your system.

(For those who don't know how to edit registry, this method will help.)


Edited by xenonph, 07 September 2017 - 11:26 PM.

CHECK OUT THIS TUTORIAL http://www.vpforums....howtopic=32515
TO USE DB2S BACKGLASS PROGRAM WITH DESKTOP TABLES ON 1 MONITOR