Author Topic: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]  (Read 3709 times)

gsm2021

  • Newbie
  • *
  • Posts: 6
    • View Profile
in the display options of the flex layout, at the very bottom, you should see an option that says "Enable key for resolution testing". Set that to "Custom2" for example. Then go into Control Settings in Attract options and set Custom2 to whatever keys you want that aren't assigned to something else. Then while in the display you should be able to hit those set keys to change resolution. Hope that helps.

tsaylor

  • Full Member
  • ***
  • Posts: 38
    • View Profile
sosimple, my 4k system runs this theme fine, but it's using a fairly modern GPU (Nvidia 1660ti). What does your CPU/GPU hardware look like? And when do you notice the lag? I assume it's when scrolling through the game titles?

gsm2021's suggestion is good advice for testing different aspect ratios, but I don't think it will help in this case because it is simulating different aspect ratios but still based on the current resolution.

I'm trying to think of what would cause the most slowdown. Most likely suspect is the shaders, which are used by several settings:
  • Enable CRT screen glow shader
  • Enable CRT bloom or lottes shaders
  • Enable lighted marquee effect
  • Enable wheel background
  • Text glow on "Show game information" and music player
  • (the top drawn above the cabinet for narrow resolutions)
You could test whether disabling any/all of those makes a significant improvement. Perhaps some of those are more of a GPU burden than others.

sosimple

  • Full Member
  • ***
  • Posts: 48
    • View Profile
sosimple, my 4k system runs this theme fine, but it's using a fairly modern GPU (Nvidia 1660ti). What does your CPU/GPU hardware look like? And when do you notice the lag? I assume it's when scrolling through the game titles?

gsm2021's suggestion is good advice for testing different aspect ratios, but I don't think it will help in this case because it is simulating different aspect ratios but still based on the current resolution.

I'm trying to think of what would cause the most slowdown. Most likely suspect is the shaders, which are used by several settings:
  • Enable CRT screen glow shader
  • Enable CRT bloom or lottes shaders
  • Enable lighted marquee effect
  • Enable wheel background
  • Text glow on "Show game information" and music player
  • (the top drawn above the cabinet for narrow resolutions)
You could test whether disabling any/all of those makes a significant improvement. Perhaps some of those are more of a GPU burden than others.
As you already have noticed, i don't have good gpu. I use a mini pc i7 10710u (6 core 12 threat) with it's internal gpu.. 16 giga ram. I also test your theme to a i5 7200u laptop (also the same internal gpu) and it is working fine there but the resolution of the screen is HD there. Also if i set the tv resolution to HD it works fine. Actually you can't tell what is lugging as it is everything lug, even the videosnap i think.. I already have set a button to change aspects ratio (i think this is what is changing, not the actual resolution) but no improvement.. I'll try to change some things to see if things go better. Until now whatever i changed, may improve things but not much. The solution would be if theming has the option to change resolution. I think it haven't until now.
At past i had written a script in autoit which changed the resolution - run attract mode - wait until attract mode stops working - changed resolution back.  But i doesn't know where i have it now. I can always re written it but i need to remember some coding..
I'll posted if/when I'll do it again although it may be a non universal solution as changing resolution may not work in all monitors by same code.
I actually using your theme instead of original at the arcade multicub mostly because cabinet are a bit bigger in your theme and i like it more. Otherwise its almost the same for my use. The original doesn't lugg in 4k.
(i also like it better because i have pinball games).
« Last Edit: September 04, 2021, 06:51:17 AM by sosimple »

tsaylor

  • Full Member
  • ***
  • Posts: 38
    • View Profile
Ah ok, so you have a strong CPU, better than mine, but no discrete graphics card. I don't believe AttractMode has any way to set screen resolution. The resolution of the layout can be changed in the scripting, but that just changes the area within the window not the resolution of the screen itself, so you'd just end up with black borders which I don't think is what you are looking for.

You could use an external app to switch resolution as you mentioned, but I'm also interested in improving the performance if we can find a way. Thinking about what is different between the original multi-cab and this flex version, but main thing that comes to mind is the shader that does the wheel background. I could see that one causing poor performance, so I'd be curious how much improvement you see if you turn that feature off. The other thing that comes to mind is the shader that draws the cabinet top, depending on your aspect ratio -- do you run this in portrait or landscape?

It's nice to see the pinball feature is useful to somebody other than myself. 8)

sosimple

  • Full Member
  • ***
  • Posts: 48
    • View Profile
I'm also interested in improving the performance if we can find a way. Thinking about what is different between the original multi-cab and this flex version, but main thing that comes to mind is the shader that does the wheel background. I could see that one causing poor performance, so I'd be curious how much improvement you see if you turn that feature off. The other thing that comes to mind is the shader that draws the cabinet top, depending on your aspect ratio -- do you run this in portrait or landscape?

It's nice to see the pinball feature is useful to somebody other than myself. 8)
Ok i found the "guilty". Its :Crt glow shaders. I changed everything one by one. Although everything seems to have a small reduction in performance (so if you don't use anything will be the fastest possible - probability someone with worst hardware might find it useful -), but crt glow shaders does an huge lugginess.. I would say 20-30 times reduction speed than all other options together :). You press a key to show next game in cabin and it shows it 2 sec later... By disabling this its fast enough for me.
I run it in landscape (65 inch tv). It looks wonderful :)
Thanks again for all.
« Last Edit: September 04, 2021, 01:54:38 PM by sosimple »

tsaylor

  • Full Member
  • ***
  • Posts: 38
    • View Profile
Excellent! Thanks for running those experiments, it is good to know. I think that glow shader does some sort of overlapping gaussian blur (and it extends out over the whole screen to some degree, so probably operating on way too many pixels in the 4k case). That option also exists in the original multi-cab theme so perhaps it would slow that one down too if enabled. But I would definitely regard that as one of the optional effects, not really critical to have, so I'm glad that was able to get you "good enough" performance.

Maybe eventually we could get the newer wheel logic in there, as I understand it performs much better. But that's a project for another day.