Jump to content



Photo
* * * * * 1 votes

True Full screen in VP 10.1 loses focus - requires Alt-tab


  • Please log in to reply
373 replies to this topic

#241 chokeee

chokeee

    Enthusiast

  • Members
  • PipPipPip
  • 333 posts

  • Flag: Poland

  • Favorite Pinball: High Speed

Posted 22 October 2016 - 10:00 AM

Is it possible that someone throw summary about: how to run VPX tables in hyperpin or pinballx from start to finish with B2S, lost focus problem, DMD size problem etc. ;) wishful thinking ;>



#242 osujd

osujd

    Enthusiast

  • Silver Supporter
  • 74 posts

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

  • Favorite Pinball: TAF

Posted 24 October 2016 - 05:25 PM

Not to rehash this issue but did someone find out a solution to fix table crashes with the fullscreen mode.  I have downloaded the latest pinballx.  I receive a b2s error only on certain tables and it only fails in Pinballx. 



#243 tspeirs

tspeirs

    Enthusiast

  • VIP
  • 151 posts

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

  • Favorite Pinball: Funhouse

Posted 24 October 2016 - 05:48 PM

I have not been able to duplicate the issues myself. If you send me the tables and b2s with the issues over at my place I will be happy to test.


Posted Image

#244 osujd

osujd

    Enthusiast

  • Silver Supporter
  • 74 posts

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

  • Favorite Pinball: TAF

Posted 24 October 2016 - 07:41 PM

Hi Tom

 

I  moved the discussion.

 

Josh



#245 DJRobX

DJRobX

    Pinball Fan

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

  • Flag: United States of America

  • Favorite Pinball: F14 Tomcat

Posted 27 October 2016 - 06:43 AM

True FS works for me (without delay) outside or PBX, but inside PBX, the behavior is downright weird.   It often takes me right back to the PBX wheel even though VP was actually launched in the background.   The alt-tab focus thing doesn't help either.    It doesn't seem needed on my system when run from VPX directly.   In fact it causes VP to lose focus.

 

Of course, the reason I'm messing with true fullscreen at all, is that I'm losing a lot of performance when run from PBX.  *sigh*.   I don't know why everything with VP is so difficult. :) 



#246 Carny_Priest

Carny_Priest

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,257 posts
  • Location:Austin, TX

  • Flag: United States of America

  • Favorite Pinball: EATPM

Posted 27 October 2016 - 06:58 AM

Integrated VP support within PinballX is supposed to detect if you are running VPX in true full screen and bring focus to the player automatically. Some, myself included, have reported issues with this. Something to try would be to use an Other System slot with Custom System Type and use VP's built-in feature for bringing the focus to the player.

Ultimately I use a script to launch VP and PinballX launches the script. That gives me more control over timing.


Sent from my iPad using Tapatalk

#247 DJRobX

DJRobX

    Pinball Fan

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

  • Flag: United States of America

  • Favorite Pinball: F14 Tomcat

Posted 27 October 2016 - 09:50 PM

Is it possible that someone throw summary about: how to run VPX tables in hyperpin or pinballx from start to finish with B2S, lost focus problem, DMD size problem etc. ;) wishful thinking ;>

 

I will take a stab at fixing the DMD size when ddraw=0 problem in VPM.    That's at least something I understand and have control over.  :) 



#248 Drybonz

Drybonz

    Really bad at pinball, but having fun.

  • Members
  • PipPipPipPip
  • 1,538 posts

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

  • Favorite Pinball: Theatre of Magic

Posted 27 October 2016 - 09:58 PM

 

Is it possible that someone throw summary about: how to run VPX tables in hyperpin or pinballx from start to finish with B2S, lost focus problem, DMD size problem etc. ;) wishful thinking ;>

 

I will take a stab at fixing the DMD size when ddraw=0 problem in VPM.    That's at least something I understand and have control over.   :)

 

 

Thanks, DJR... this will make a lot of people very happy if you can fix it.



#249 TerryRed

TerryRed

    Pinball Fan

  • Silver Supporter
  • 1,960 posts

  • Flag: Canada

  • Favorite Pinball: Too many to choose...

Contributor

Posted 27 October 2016 - 10:18 PM

 

Is it possible that someone throw summary about: how to run VPX tables in hyperpin or pinballx from start to finish with B2S, lost focus problem, DMD size problem etc. ;) wishful thinking ;>

 

I will take a stab at fixing the DMD size when ddraw=0 problem in VPM.    That's at least something I understand and have control over.   :)

 

 

 

.... A LOT of people would be happy if you could fix that problem.



#250 DJRobX

DJRobX

    Pinball Fan

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

  • Flag: United States of America

  • Favorite Pinball: F14 Tomcat

Posted 28 October 2016 - 01:18 AM

Integrated VP support within PinballX is supposed to detect if you are running VPX in true full screen and bring focus to the player automatically. Some, myself included, have reported issues with this. Something to try would be to use an Other System slot with Custom System Type and use VP's built-in feature for bringing the focus to the player.

 

 

Thanks for that bit of information, Carny!  I just loaded an older version of PinballX that doesn't have that "feature" and now everything works perfect!

 

I then proceeded to remove some lines of code that prevent the DMD from scaling, and now I have gloriously smooth, low latency pinball FROM pinballX AND a scaled DMD!  YAY!    For those interested in this fix, I will post it shortly in an unspeakable corner of the internet. 



#251 Carny_Priest

Carny_Priest

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,257 posts
  • Location:Austin, TX

  • Flag: United States of America

  • Favorite Pinball: EATPM

Posted 28 October 2016 - 01:30 AM

Man, if that means not having run the third screen with a custom resolution that would bypass a huge hassle in my setup. Probably would result in higher luminosity too!


Sent from my iPad using Tapatalk

#252 TerryRed

TerryRed

    Pinball Fan

  • Silver Supporter
  • 1,960 posts

  • Flag: Canada

  • Favorite Pinball: Too many to choose...

Contributor

Posted 28 October 2016 - 01:59 AM

Man, if that means not having run the third screen with a custom resolution that would bypass a huge hassle in my setup. Probably would result in higher luminosity too!


Sent from my iPad using Tapatalk

 

 

What he said....  this would be fantastic being able to run VPX full screen, while being able to have my 3rd (dmd) screen run at its native resolution again! (with ddraw=1 again, as well)



#253 Drybonz

Drybonz

    Really bad at pinball, but having fun.

  • Members
  • PipPipPipPip
  • 1,538 posts

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

  • Favorite Pinball: Theatre of Magic

Posted 28 October 2016 - 02:21 AM

Out of "likes" for the day, but big thanks DJRobX for working on that.

 

*edit*  For anyone wondering... it works perfectly!  No black bars on the DMD in true fullscreen!  lol... it's the little things.   :)


Edited by Drybonz, 28 October 2016 - 02:27 AM.


#254 DJRobX

DJRobX

    Pinball Fan

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

  • Flag: United States of America

  • Favorite Pinball: F14 Tomcat

Posted 28 October 2016 - 06:11 AM

I have one more thing to offer on this.  I now see the issue you guys have with it losing focus inconsistently with different B2S files.   I was completely unable to launch Scared Stiff no matter what I tried.  

 

The current alt-tab hack doesn't work on Windows 8 or above.  They added some restrictions unless the binary is signed and set to be an accessibility app.    So I looked for other alternatives.     I found a MUCH simpler, better fix is to prevent B2S / VPM from stealing focus in the first place:

 

In Player::InitWindow add:

 

if (m_fFullScreen)

  ::LockSetForegroundWindow(LSFW_LOCK);

 

Right after the CreateWindow.    This function blocks processes from taking focus away from our exclusive fullscreen app.   Seems to work great. 


Edited by DJRobX, 28 October 2016 - 06:13 AM.


#255 toxie

toxie

    VPF Veteran

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

  • Flag: Germany

  • Favorite Pinball: AFM

Posted 28 October 2016 - 06:47 AM

cool, will add this to VP then..



#256 Drybonz

Drybonz

    Really bad at pinball, but having fun.

  • Members
  • PipPipPipPip
  • 1,538 posts

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

  • Favorite Pinball: Theatre of Magic

Posted 28 October 2016 - 09:11 AM

Awesome... thanks, guys.



#257 tspeirs

tspeirs

    Enthusiast

  • VIP
  • 151 posts

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

  • Favorite Pinball: Funhouse

Posted 28 October 2016 - 10:59 AM

Awesome work.

 

Guys, should I remove the feature from PinballX?


Posted Image

#258 DJRobX

DJRobX

    Pinball Fan

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

  • Flag: United States of America

  • Favorite Pinball: F14 Tomcat

Posted 28 October 2016 - 03:13 PM

Awesome work.

 

Guys, should I remove the feature from PinballX?

 

How hard is it to make it configurable?   I would want to wait and confirm my tweak works for others before you pull it.   That lock focus command was added in windows 2000 though, so I'm very hopeful.   It's apparently a common thing that true fullscreen games do to prevent taskbar popups from screwing with things. 

 

On the other hand, I can't use current builds of PinballX on my cab with true fullscreen enabled (with or without this new tweak), so I definitely need a way to revert or disable your feature change in some way.    Thanks Tom!


Edited by DJRobX, 28 October 2016 - 03:14 PM.


#259 gStAv

gStAv

    Pinball Lover

  • Members
  • PipPipPipPip
  • 1,331 posts

  • Flag: Sweden

  • Favorite Pinball: TOM, IJ, AFM, WC94

Posted 28 October 2016 - 04:02 PM

Holy mackerel!!!

I have nt played my cab in a while now just cause of the B2S not showing up! This would be awesome if fixed!

Great find DjRobX!!!

Can't wait to try this feature.

3rs054-6.png


#260 osujd

osujd

    Enthusiast

  • Silver Supporter
  • 74 posts

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

  • Favorite Pinball: TAF

Posted 28 October 2016 - 06:58 PM

Tried with VP10.2 2825 on my windows 10 PC this works great to keep Visual Pinball from loosing focus and fixes my problems completely on the Visual Pinball side.  However I am still getting the direct2bs missing file error in PinballX.  Looks like we are getting closer thanks again DJRobX


Edited by osujd, 28 October 2016 - 07:00 PM.