MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

Hawkjon
MAME Fan
Reged: 02/19/13
Posts: 8
Send PM


HLSL Horizontal and Vertical line issues in Win 7 64bit with Mame v148
#305258 - 03/04/13 07:12 PM


To start with. I really like the HLSL functionality in Mame so thank you very much to the developers for putting these great options in there.

So... I'm having an issue with the HLSL option in 64bit or 32bit (tried them both) Mame v148 on my Windows 7 64bit machine. Just wondering if anyone out there is having this issue as well or knows how to fix it.

The problem is that when HLSL is turned on I have either a vertical and horizontal line running through my screen that appears to be a line of duplicated or stretched pixels and/or a large blurred section near the middle of my screen depending on my prescale value under the display options and the game's internal resolution. I should mention that this is MameUI I am using. When I run with a prescale of 1 I don't seem to have this issue but then the screen image is quite blurry. Oddly enough when I run Mame v148 32bit on my old 32bit Windows XP machine with an Nvidia gtx 260 I don't have any issues with HLSL and the image is wonderful. HLSL does appear to work on my Windows 7 64bit machine it just has the above image issues. I'm using an Nvidia 660ti on the Win7 machine and I've updated the drivers and I've updated the directx end user runtime but nothing seems to fix this issue. I've also tested this on another Win7 x64 machine (this one with an Nvidia GTX 260 like my xp machine) and I have the same issue. This makes me think that it is an issue with either Win7 or how Win7 handles directx 9.

I have also noticed on the Win7 machine that there are some minor screen issues even with HLSL turned off. One issue is that the image for every game is slightly offset such that the bottom row of pixels is cut off. The other issue is that there is a horizontal and verticle row of pixels on the screen that seem to be duplicated creating a faint line on the screen similar to the issues that I have with HLSL turned on only much more subtle. Just as a side note I also see these issues in Mess.

I don't know if these are new issues or if they have been around for a while since I haven't updated Mame for years and since I just recently started using Mame on Win7. I think that this is an issue with Win7 since even my old version of Mame has similar issues on Win7 that I didn't see in XP.

Here are my setting:

#
# WINDOWS VIDEO OPTIONS
#
video d3d
numscreens 1
window 0
maximize 1
keepaspect 1
prescale 7
waitvsync 0
syncrefresh 0
menu 0

#
# DIRECTDRAW-SPECIFIC OPTIONS
#
hwstretch 1

#
# DIRECT3D-SPECIFIC OPTIONS
#
d3dversion 9
filter 1

#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlsl_enable 1
hlslpath hlsl
hlsl_ini_read 1
hlsl_ini_write 1
hlslini %g
hlsl_prescale_x 0
hlsl_prescale_y 0
hlsl_preset -1
hlsl_write
hlsl_snap_width 2048
hlsl_snap_height 1536
shadow_mask_alpha 0.0
shadow_mask_texture aperture.png
shadow_mask_x_count 320
shadow_mask_y_count 240
shadow_mask_usize 0.09375
shadow_mask_vsize 0.109375
curvature 0.0
pincushion 0.0
scanline_alpha 0.0
scanline_size 1.0
scanline_height 0.7
scanline_bright_scale 1.0
scanline_bright_offset 0.0
scanline_jitter 0.0
defocus 0.0,0.0
converge_x 0.0,0.0,0.0
converge_y 0.0,0.0,0.0
radial_converge_x 0.0,0.0,0.0
radial_converge_y 0.0,0.0,0.0
red_ratio 1.0,0.0,0.0
grn_ratio 0.0,1.0,0.0
blu_ratio 0.0,0.0,1.0
saturation 1.0
offset 0.0,0.0,0.0
scale 1.0,1.0,1.0
power 1.0,1.0,1.0
floor 0.0,0.0,0.0
phosphor_life 0.0,0.0,0.0
yiq_enable 0
yiq_cc 3.59754545
yiq_a 0.5
yiq_b 0.5
yiq_o 0.0
yiq_p 1.0
yiq_n 1.0
yiq_y 6.0
yiq_i 1.2
yiq_q 0.6
yiq_scan_time 52.6
yiq_phase_count 2

#
# PER-WINDOW VIDEO OPTIONS
#
screen auto
aspect auto
resolution auto
view auto
screen0 \\.\DISPLAY2
aspect0 auto
resolution0 auto
view0 auto
screen1 auto
aspect1 auto
resolution1 auto
view1 auto
screen2 auto
aspect2 auto
resolution2 auto
view2 auto
screen3 auto
aspect3 auto
resolution3 auto
view3 auto

#
# FULL SCREEN OPTIONS
#
triplebuffer 1
switchres 0
full_screen_brightness 1.0
full_screen_contrast 1.0
full_screen_gamma 1.0



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9711
Loc: ECV-197 The Orville
Send PM


Re: HLSL Horizontal and Vertical line issues in Win 7 64bit with Mame v148 new [Re: Hawkjon]
#305261 - 03/04/13 08:13 PM


Can you post a screenshot of this happening?



Hawkjon
MAME Fan
Reged: 02/19/13
Posts: 8
Send PM


Re: HLSL Horizontal and Vertical line issues in Win 7 64bit with Mame v148 new [Re: R. Belmont]
#305267 - 03/04/13 10:12 PM


Here are some screenshots of the issues:

This is a blurred section in Chuka Taisen. On even prescale number (2,4,6,etc...) this blurred section shows in some games. On Odd prescale numbers I just see the other issue of a horizontal and vertical pixel doubling.





This is an example of the horizontal and vertical stretched pixel lines. This effect is very visible during screen movement. More so than in a still image.






Here is an example of a the bottom pixel line being cut off. It's not a huge issue but some games have text touching the bottom line of the screen.




krick
Get Fuzzy
Reged: 02/09/04
Posts: 4235
Send PM


Re: HLSL Horizontal and Vertical line issues in Win 7 64bit with Mame v148 new [Re: Hawkjon]
#305277 - 03/05/13 04:42 AM


I don't know if this will help, but it couldn't hurt.

Make sure you have the latest version of DirectX9...
http://www.microsoft.com/en-us/download/details.aspx?id=35



GroovyMAME support forum on BYOAC



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9711
Loc: ECV-197 The Orville
Send PM


Re: HLSL Horizontal and Vertical line issues in Win 7 64bit with Mame v148 new [Re: Hawkjon]
#305278 - 03/05/13 05:01 AM


Your first problem shown by the ini file is the ludicrous value of prescale. Prescale has a useful range of 0-4 for the majority of games on MAME. Turning it higher than that eliminates the ability of HLSL to show any CRT effects and tortures the hell out of your CPU and GPU for no reason.

Secondly, please check if you get any of the same errors with HLSL disabled but all other settings the same. According to several people that mslug thing is not unique to HLSL, and the other problems may not be as well.



Hawkjon
MAME Fan
Reged: 02/19/13
Posts: 8
Send PM


Re: HLSL Horizontal and Vertical line issues in Win 7 64bit with Mame v148 new [Re: R. Belmont]
#305298 - 03/05/13 05:41 PM



Thank you for the info R.Belmont. My prescale value is a bit high but I do see some difference in sharpness when going from 4 to 5 and even 6. I guess it is just a matter of personal preference.

I do have some of the same screen issues with HLSL turned off. For instance, the bottom missing line of pixels is always there and there is some minor form of the horizontal and vertical line running through the screen with HLSL turned off. It just becomes much more pronounced with HLSL turned on. The other issue of the large blurred area in the middle of the screen has only been apparent to me with HLSL turned on but it may just be very hard to detect when it is turned off as well.

I am mostly wondering if my experience is unique since I haven't seen any posts of others having the same issues. I'm so used to Mame having such a perfect rendered image that it just stands out to me that I'm having these issues in Win7. Mame, by far, has the most flexible and feature rich rendering capabilities of any emulator that I've used when it comes to rendering any resolution on a fixed resolution monitor in just about any way that you want. It makes me wonder why people who make other emulators don't copy Mame's rendering solution considering that all modern monitors are fixed resolution.



Hawkjon
MAME Fan
Reged: 02/19/13
Posts: 8
Send PM


Re: HLSL Horizontal and Vertical line issues in Win 7 64bit with Mame v148 new [Re: krick]
#305299 - 03/05/13 05:49 PM


Thank you krick. I have tried this as well on both Win7 computers. I must have already had the latest since it just told me that there was no newer version of Directx to install.



Hawkjon
MAME Fan
Reged: 02/19/13
Posts: 8
Send PM


Re: HLSL Horizontal and Vertical line issues in Win 7 64bit with Mame v148 new [Re: Hawkjon]
#305322 - 03/06/13 05:46 PM


Just to be more specific. Is there anyone out there who has the following hardware/software configuration and NO graphical issues while using d3d in Mame v148?

Hardware/Software:
Windows 7 x64 Enterprise or Professional
Core i5 processor
Nvidia Geforce Video card

The issues I see are an obvious Horizontal and Vertical line that seem to be made up of a line of stretched pixels that becomes more obvious with hlsl turned on. Also missing a pixel line at the bottom of the screen. Also some possible areas that are blurred when hlsl is turned on. The prescale value must be set to 2 or higher for me to see these issues and it seems consistent across the two computers that I have tried this on.

If you don't have any of these issues and a similar hardware and OS then could you please tell me what your configuration is? Also, could you tell me which version of Windows 7 you have.

Thank you



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9711
Loc: ECV-197 The Orville
Send PM


Re: HLSL Horizontal and Vertical line issues in Win 7 64bit with Mame v148 new [Re: Hawkjon]
#305324 - 03/06/13 06:10 PM


What resolution are you running at? That's probably *the* most important parameter when scaling problems are involved.



B2K24
MAME @ 15 kHz Sony Trinitron CRT user
Reged: 10/25/10
Posts: 2663
Send PM


Re: HLSL Horizontal and Vertical line issues in Win 7 64bit with Mame v148 new [Re: Hawkjon]
#305327 - 03/06/13 06:38 PM


win 7 Ultimate X64
i7 930 @ 4 GHz
nvidia GTX 480 driver 306.97

no problems with HLSL here

http://pastebin.com/zP7M1TnM

You might consider renaming your mame.ini for backup purposes and creating a fresh one with mame64 -cc plus deleting everything in your ini directory to see if you get different results.



Hawkjon
MAME Fan
Reged: 02/19/13
Posts: 8
Send PM


Re: HLSL Horizontal and Vertical line issues in Win 7 64bit with Mame v148 new [Re: B2K24]
#305337 - 03/06/13 08:01 PM


I notice that you don't have hlsl enabled in this config file. Is that just for a specific game or is it disabled for all games?

"hlsl_enable 0"

I'm not seeing too many issues with hlsl turned off... or at least the issues aren't as severe.



Hawkjon
MAME Fan
Reged: 02/19/13
Posts: 8
Send PM


Re: HLSL Horizontal and Vertical line issues in Win 7 64bit with Mame v148 new [Re: R. Belmont]
#305338 - 03/06/13 08:07 PM


I have tried running various games at a number of resolutions in both windowed and full screen mode on a couple of different monitors (one is 1920x1200 native and the other is 1280x1024 native): 640x480, 1024x768, 1280x960, 1280x1024, 1600x1200, 1920x1200. In both cases the fullscreen resolutions are being scaled by the monitors if it deviates from the native resolution.

The location of the artifacts while using hlsl seems to change slightly as I try different resolutions but they are apparent in all of them.



B2K24
MAME @ 15 kHz Sony Trinitron CRT user
Reged: 10/25/10
Posts: 2663
Send PM


Re: HLSL Horizontal and Vertical line issues in Win 7 64bit with Mame v148 new [Re: Hawkjon]
#305346 - 03/06/13 10:47 PM


> I notice that you don't have hlsl enabled in this config file. Is that just for a
> specific game or is it disabled for all games?
>
> "hlsl_enable 0"

When I'm playing for fun I always keep it enabled 1
I had forgotten I was testing something which is the reason it shows disabled when I posted that. 99% of the time I always keep it enabled

I also choose not to write game specific ini files so everything goes by what's in my mame.ini

the pic with mslug also happens when HLSL is disabled. I haven't had time to load the other games as of yet.



Hawkjon
MAME Fan
Reged: 02/19/13
Posts: 8
Send PM


!!! >>> Found a solution for hlsl and non hlsl artifacts <<< !!! new [Re: R. Belmont]
#305347 - 03/06/13 10:55 PM


So... I found a solution. I apologize if this is something that everybody already knows or something that I already should have known.

Basically, I set the normal prescale to 1 and change the x and y prescale under hlsl to a higher number such as 4. Here is what that looks like in my config file (this is just the section of the config that matters for this fix. I've omitted the rest).

#
# WINDOWS VIDEO OPTIONS
#
video d3d
numscreens 1
window 0
maximize 1
keepaspect 1
prescale 1
waitvsync 0
syncrefresh 0
menu 0

#
# DIRECT3D-SPECIFIC OPTIONS
#
d3dversion 9
filter 1

#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlsl_enable 1
hlslpath hlsl
hlsl_ini_read 0
hlsl_ini_write 0
hlslini %g
hlsl_prescale_x 4
hlsl_prescale_y 4


This seems to fix the issue entirely and also fixes the issues that I was having outside of using hlsl. So, it also fixes the missing line of pixels at the bottom that is noticeable in games such as Metal Slug. It seems like the normal d3d prescale value is giving me issues unless set to "1" but the prescale that is done under the hlsl settings works just fine.

I have tried this on both Windows 7 x64 machines that were giving me issues and it seems to work fine on both. I still don't know what was causing the original problem but hopefully this will help others with the same issue.



nicotears
MAME Fan
Reged: 04/20/13
Posts: 1
Send PM


Re: !!! >>> Found a solution for hlsl and non hlsl artifacts <<< !!! new [Re: Hawkjon]
#307554 - 04/20/13 01:45 PM


Thanks a lot!!!
I've had the same problem.
It works perfectly now, no f**** blur!!!!


Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 25 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 5541