Author Topic: Blanking...  (Read 3483 times)

FrizzleFried

  • Sr. Member
  • ****
  • Posts: 243
    • View Profile
    • Idaho Garagecade
Blanking...
« on: June 20, 2019, 08:29:58 PM »
For some reason,  attract-mode has stopped "blanking" when I press a button to select a game.  Now,  it will simply freeze the front end for a couple seconds while the ROM loads/prepares to run then it kicks in to the ROM...

...my Pi version allows for a LOADING screen... how does that work with the PC version?
Visit my arcade blog ... www.idahogaragecade.com (updated 06-27-19)

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Re: Blanking...
« Reply #1 on: June 20, 2019, 09:07:51 PM »
Maybe these will help...

FadeToGame plugin - https://github.com/keilmillerjr/fadetogame-plugin

How to modify FadeToGame plugin to load images - http://forum.attractmode.org/index.php?topic=1893.msg13126#msg13126
« Last Edit: June 20, 2019, 09:10:33 PM by progets »

FrizzleFried

  • Sr. Member
  • ****
  • Posts: 243
    • View Profile
    • Idaho Garagecade
Re: Blanking...
« Reply #2 on: June 21, 2019, 07:00:34 AM »
I have the fade to game plugin installed.  It seemed to work fine (in that it did fade to black)... UNTIL i installed Super Resolutions va CRT Emudriver.  That said,  I am not 100% sure that was the culprit,  it's just that I happened to notice the behavior right about the time I switched over.
Visit my arcade blog ... www.idahogaragecade.com (updated 06-27-19)

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: Blanking...
« Reply #3 on: June 21, 2019, 02:35:51 PM »
Worked fine for me with crt emudriver, until my motherboard died. Can you share a video for me and perhaps an attract log?

FrizzleFried

  • Sr. Member
  • ****
  • Posts: 243
    • View Profile
    • Idaho Garagecade
Re: Blanking...
« Reply #4 on: June 21, 2019, 08:15:55 PM »
I see no issues...

Code: [Select]
Attract-Mode v2.5.1 (Windows, SFML 2.5.1 +SWF +7z +Curl)
avcodec 58.18.100 / avformat 58.12.100 / swscale 5.1.100 / avutil 56.14.100 / swresample 3.1.100

Config: D:\ATTRACT-MODE\attract.cfg

*** Initializing display: '2000'
 - Loaded master romlist '2000 & LATER' in 51 ms (248 entries kept, 0 discarded)
 - Constructed 2 filters in 0 ms (496 comparisons)
 - Loaded layout: D:\ATTRACT-MODE\layouts/Sphere/ (layout.nut)
 - Constructed 1 filters in 0 ms (16 comparisons)
 - Loaded layout: D:\ATTRACT-MODE\layouts/DisplayView/ (layout.nut)

*** Initializing display: 'favorites'
 - Loaded master romlist 'HORIZONTAL - NO CLONES' in 171 ms (3646 entries kept, 0 discarded)
 - Constructed 1 filters in 0 ms (3646 comparisons)
 - Loaded layout: D:\ATTRACT-MODE\layouts/SHUFFLE & SLIDE/ (layout.nut)
 - Working directory: D:\GROOVYMAME\./
*** Running: D:\groovymame\mame64.exe eswat
 - Loaded layout: D:\ATTRACT-MODE\layouts/SHUFFLE & SLIDE/ (layout.nut)
 - Working directory: D:\GROOVYMAME\./
*** Running: D:\groovymame\mame64.exe extdwnhl
 - Loaded layout: D:\ATTRACT-MODE\layouts/SHUFFLE & SLIDE/ (layout.nut)
 - Working directory: D:\GROOVYMAME\./
*** Running: D:\groovymame\mame64.exe fgtlayer
 - Loaded layout: D:\ATTRACT-MODE\layouts/SHUFFLE & SLIDE/ (layout.nut)
 - Working directory: D:\GROOVYMAME\./
*** Running: D:\groovymame\mame64.exe elvactr
 - Loaded layout: D:\ATTRACT-MODE\layouts/SHUFFLE & SLIDE/ (layout.nut)
 - Working directory: D:\GROOVYMAME\./
*** Running: D:\groovymame\mame64.exe suprmrio
 - Loaded layout: D:\ATTRACT-MODE\layouts/SHUFFLE & SLIDE/ (layout.nut)

...you can see the result of the sprmrio ROM load here...

https://youtu.be/fvzxDL16mis
Visit my arcade blog ... www.idahogaragecade.com (updated 06-27-19)

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: Blanking...
« Reply #5 on: June 21, 2019, 11:31:48 PM »
Interesting. Whats the specs of your computer? Do you get the same lag if you launch mame from command line?

FrizzleFried

  • Sr. Member
  • ****
  • Posts: 243
    • View Profile
    • Idaho Garagecade
Re: Blanking...
« Reply #6 on: June 22, 2019, 07:16:49 AM »
Interesting. Whats the specs of your computer? Do you get the same lag if you launch mame from command line?

Ryzen 1200 running at 3.9ghz...

Radeon R7 250...

8GB RAM

Prior to the issue with it not blanking... it took that long to switch resolution,  the difference being it would blank to a black screen at selection rather than sit there looking stupid for 3-4 seconds before going on to whatever it does to switch graphic modes, etc...

Calamity (author of CRT Emudriver) says it has to do with the number of modes available to the card and some (mostly newish) cards take a lot longer to query each mode or whatever....

...while that sort of sucks (I'll have to live with it),  I was hoping to be able to fix the or in some way CHANGE the behavior so that it either blacks out before kicking over to GROOVYMAME or (more preferably) it loads a "NOW LOADING" screen.  I suspect that if the front end actually switched screens to this NOW LOADING screen ... THEN hit Groovymame... it would "freeze" on the "NOW LOADING" screen...which would be acceptable.

Visit my arcade blog ... www.idahogaragecade.com (updated 06-27-19)

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: Blanking...
« Reply #7 on: June 22, 2019, 07:47:17 AM »
Makes sense I suppose. Have you tried my fadetogame plugin? If that doesn’t work, perhaps integrate something similar directly within the layout.

FrizzleFried

  • Sr. Member
  • ****
  • Posts: 243
    • View Profile
    • Idaho Garagecade
Re: Blanking...
« Reply #8 on: June 22, 2019, 08:51:16 AM »
Makes sense I suppose. Have you tried my fadetogame plugin? If that doesn’t work, perhaps integrate something similar directly within the layout.

I have tried the fadetogame pluin... and unfortunately it doesn't do anything...which is a bit worrisome to be honest as it SHOULD fade before loading the mame executable...
Visit my arcade blog ... www.idahogaragecade.com (updated 06-27-19)

FrizzleFried

  • Sr. Member
  • ****
  • Posts: 243
    • View Profile
    • Idaho Garagecade
Re: Blanking...
« Reply #9 on: June 23, 2019, 11:11:21 PM »
THIS is working for me! (though it breaks the intro ...but I didn't use the intro!)

Code: [Select]
local screen_now_loading   = fe.add_image("Loading.png", (fe.layout.width - 640)/2, (fe.layout.height - 480)/2, 0, 0);

fe.add_transition_callback( "launch_transition" );

function launch_transition( ttype, var, ttime ) {
   switch ( ttype )
   {
   case Transition.StartLayout:
      screen_now_loading.alpha = 0;
      break;
   case Transition.FromGame:
      if ( ttime < 255 )
      {
         foreach (o in fe.obj)
            o.alpha = ttime;
               screen_now_loading.alpha = 0;
         return true;
      }
      else
      {
         foreach (o in fe.obj)
            o.alpha = 255;
         screen_now_loading.alpha = 0;
      }
      break;
   case Transition.EndLayout:
      if ( ttime < 255 )
      {
         foreach (o in fe.obj)
            o.alpha = 255 - ttime;
         screen_now_loading.alpha = 0;
         return true;
      }
      break;
   case Transition.ToGame:
      if ( ttime < 255 )
      {
         foreach (o in fe.obj)
            o.alpha = 255 - ttime;
         screen_now_loading.alpha = ttime;
         return true;
      }
      screen_now_loading.alpha = 255;
      break;
   }
   return false;
}

Top line... Loading.png... create one.  Same line ... indicate size of the image you create... width / height.

Visit my arcade blog ... www.idahogaragecade.com (updated 06-27-19)