Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: hlsl anomaly  (Read 2049 times)

0 Members and 1 Guest are viewing this topic.

InfantSorrow

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 71
  • Last login:August 13, 2017, 02:53:22 pm
  • Scrumtrulescent!
hlsl anomaly
« on: March 15, 2014, 10:23:01 pm »
Hi guys

permit me in lieu of my more commonplace sobriquet, to post a puzzle.

Scouring these very threads for info, I have come across a function in MAME that allows a quite glorious imitation of the aged CRT monitors.
I am of course, referring to the HLSL functions and presets you can enable in the mame.ini file.

The puzzling part is, when I enable these functions, the system slows down to 60% of normal speed. I initially thought the system was too slow to run these new nostalgic graphical inclusions, but when I disable the throttle (F10) the system speeds up far beyond normal speed (100%).
So, either the system is too slow or too fast with these scan lines enabled.
I have no such problems when not using the HLSL functions.

Has anyone come across a similar problem? I trust that you will not be disinclined to acquiesce to my humble educational requests.

« Last Edit: March 15, 2014, 10:25:27 pm by InfantSorrow »
Let me begin phase 2 of my plan... or is it phase 3? I don't know phases.

nitz

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 507
  • Last login:November 24, 2015, 07:57:29 pm
Re: hlsl anomaly
« Reply #1 on: March 15, 2014, 11:39:05 pm »
There is an issue with the HLSL prescale. Check your mame.ini for this

hlsl_prescale_x           0
hlsl_prescale_y           0

You probably have them both set at 0. This is for automatic prescaling, but that causes problems on some systems. Try increasing them. The higher you go, the better it'll look, but the slower it'll run as well. A setting of 1 will look terrible, 2 should look ok, and 3 or 4 will look even better, but will require a very beefy video card for full speed.

I'm pretty sure that'll fix your problem.  :cheers:

InfantSorrow

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 71
  • Last login:August 13, 2017, 02:53:22 pm
  • Scrumtrulescent!
Re: hlsl anomaly
« Reply #2 on: March 16, 2014, 07:02:28 am »
There is an issue with the HLSL prescale. Check your mame.ini for this

hlsl_prescale_x           0
hlsl_prescale_y           0

You probably have them both set at 0. This is for automatic prescaling, but that causes problems on some systems. Try increasing them. The higher you go, the better it'll look, but the slower it'll run as well. A setting of 1 will look terrible, 2 should look ok, and 3 or 4 will look even better, but will require a very beefy video card for full speed.

I'm pretty sure that'll fix your problem.  :cheers:

Hi

Unfortunately, that did not sort out the problem.
Perhaps an error in ini?

Thanks for the assist.

Let me begin phase 2 of my plan... or is it phase 3? I don't know phases.

nitz

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 507
  • Last login:November 24, 2015, 07:57:29 pm
Re: hlsl anomaly
« Reply #3 on: March 16, 2014, 07:26:51 pm »
I see you have both prescale settings at 4 in your ini - I would expect that to fix the problem provided your video card is up to the task. A setting of 4 would require a very stellar video card to get full speed though, so if you haven't already, I would try a setting of 2 and see if that works.

You should also check your hlsl folder and make sure you don't have any individual game inis that are overriding your mame.ini. For example, if you're testing this with pacman and you've got a file named pacman.ini in your hlsl folder, then mame is using that file for hlsl settings instead of mame.ini.

If neither of these suggestions fix your problem, I would try asking this question over at mameworld - some of the devs hang out there and answer questions like this. If it runs faster than full speed with throttling off, then it stands to reason that you should be able to get full speed with throttling on, so some setting has gotta be amiss somewhere. I'd be curious to know what the problem was when you figure this out.

Good luck!  :cheers:

InfantSorrow

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 71
  • Last login:August 13, 2017, 02:53:22 pm
  • Scrumtrulescent!
Re: hlsl anomaly
« Reply #4 on: March 17, 2014, 12:58:33 pm »
@ Nitz.

When changing prescales to 2, there is a slight increase to 75% of full speed when throttling is enabled, rather than 60%

When I change prescales to 1, then it runs at 100% but this is really foggy picture quality.

Thanks for the assist, I will query this with the mameworld guys, see what they have to say.
I'll keep you in the loop.
Let me begin phase 2 of my plan... or is it phase 3? I don't know phases.

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9272
  • Last login:Yesterday at 02:05:45 pm
  • ...
Re: hlsl anomaly
« Reply #5 on: March 17, 2014, 04:50:11 pm »
When changing prescales to 2, there is a slight increase to 75% of full speed when throttling is enabled, rather than 60%

When I change prescales to 1, then it runs at 100% but this is really foggy picture quality.

Thanks for the assist, I will query this with the mameworld guys, see what they have to say.
I'll keep you in the loop.

I've read that pre-scale is done by the processor (Pre-GPU).  Your processor might be underpowered for HLSL.
It also varies by game.  The old games that had discrete sound (Frogger for example) are more demanding that other games from the same era.

I have most games set to 4, but had to reduce it on games with discrete sound and 90's 3D games.
It doesn't make much difference to scale it larger than your monitor resolution.
For example, if the original game was 240x320, it doesn't make sense to scale it more than 4x on a 1080 monitor.
MAME scales it to 960, then your video card scales it from 960 to 1080.

At least that's my understanding of how it works and results of my tinkering are consistent with it.




benll64

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 81
  • Last login:November 07, 2024, 03:37:15 pm
Re: hlsl anomaly
« Reply #6 on: August 06, 2014, 07:51:58 pm »
Hi -

To the original poster, did you ever figure this out? I'm having the exact same issue.

My CPU/GPU are "budget" but they both exceed the specs that I've seen others post that are running HLSL smoothly.

Throttle on = speed 50-60%; throttle off = speed 500-800%. I've tried tweaking every setting (it seems), including setting the prescales from 1 through 6.