English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 28 May 2016, 13:49   #1
AlexC
Registered User
 
Join Date: Jun 2015
Location: Los Angeles / California
Posts: 10
Possible Direct3D scaling issue

Hi Tony,

There is a minor D3D rendering issue I noticed which doesn't happen with DirectDraw, and I was able to notice it with all the 3.3.0.0 beta versions since uae.gfx started working in OS4, as that feature made it possible to use 1080p resolution.
If it already happened with earlier betas I wouldn't know as with the PicassoIV emulation I couldn't get more than 1280x960, making the display too blurry to notice minor artifacts.

I made some B/W background patterns to better illustrate the issue, and as can be seen on the attached screenshots (which are resized to 200% to make it easier to see) there are some horizontal "stretching" artifacts on the column spawning the first 120 pixels or so.

Without the special pattern it's not as pronounced, but still causes the fonts of icon names, Project menu and text editors to look uneven, as can be seen on the WB titlebar.

I'm using a 3840x2160 display, so to keep the pixels crisp I set the WinUAE "Display->Screen->Fullscreen" setting to 3840x2160 and the Amiga ScreenMode to 1920x1080, resulting in 2x2 physical pixels for each "Amiga" pixel since WinUAE scales it up to 3840x2160.

The same happens with RTG set to either "Full-window" or "Fullscreen". Of course in windowed mode it doesn't happen as no scaling takes place.

I don't know if it could be an issue with D3D itself, or the buffer used by WinUAE, but the WinUAE window (F12) doesn't show any artifact in fullscreen mode even though the GUI too gets scaled up.

With DirectDraw there are no scaling artifacts but for some reason the boot time seems much longer, and the gfx speed is around 10% slower overall, according to the intuition and graphics tests of SysSpeed.

I'd call these artifacts a minor issue as the rest of the screen is razor sharp :-)

Ironically Windows doesn't know how to set a proper 2:1 ratios for itself and gets all blurry if trying to set the desktop resolution to 1920x1080.
Attached Thumbnails
Click image for larger version

Name:	Clipboard01.png
Views:	161
Size:	23.7 KB
ID:	48633   Click image for larger version

Name:	Clipboard02.png
Views:	200
Size:	21.3 KB
ID:	48634  
Attached Files
File Type: uae A4K.uae (13.9 KB, 98 views)
AlexC is offline  
Old 28 May 2016, 15:19   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
You need to confirm it with OS3 and also if it happens with some smaller resolution. (for example 1680 or 1440 wide)
Toni Wilen is offline  
Old 28 May 2016, 15:28   #3
AlexC
Registered User
 
Join Date: Jun 2015
Location: Los Angeles / California
Posts: 10
I can certainly try with OS3, as for the other resolutions I'm not sure the artifacts would be visible since the screen will be blurry again as the scaling won't have a perfect 2:1 ratio.
AlexC is offline  
Old 28 May 2016, 15:31   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Quote:
Originally Posted by AlexC View Post
I can certainly try with OS3, as for the other resolutions I'm not sure the artifacts would be visible since the screen will be blurry again as the scaling won't have a perfect 2:1 ratio.
Windowed mode in same resolution should work exact same as fullscreen in monitor's native mode. (No 4k monitor until there are at least 100Hz capable ones = can't test)
Toni Wilen is offline  
Old 28 May 2016, 16:21   #5
AlexC
Registered User
 
Join Date: Jun 2015
Location: Los Angeles / California
Posts: 10
Ok, I tested with 3.1 and the same issue exists there too with 1920x1080.

At 1680x1050 in windowed mode it doesn't scale so the vertical lines look fine as the pixels are 1:1 but it's too small to use, and in full window it scales from 1680 to 3840 just like it does in fullscreen mode so there are scaling artifacts across the whole screen.

You might be able to reproduce the artifact without a 4K monitor. My guess is that if you can open a screen (e.g. with picasso96mode test screen) at exactly half the physical resolution of your monitor, assuming your Windows desktop is set to the physical resolution, you'd have a 2:1 ratio as well, showing the artifacts.
AlexC is offline  
Old 28 May 2016, 16:29   #6
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
I want confirmed test case, sorry. There is chance it is windows/driver/hardware/something specific and I am not going to hunt for something that does not happen.
Toni Wilen is offline  
Old 28 May 2016, 16:35   #7
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Does it happen if you select smaller resolution, tick "always scale in window" (rtg panel) and then type resolution*2 to display panel width and height boxes?
Toni Wilen is offline  
Old 29 May 2016, 14:07   #8
AlexC
Registered User
 
Join Date: Jun 2015
Location: Los Angeles / California
Posts: 10
Ok, I tried it that way with a 1366x768 resolution in a 2732x1536 window.

A similar vertical strip of unevenly stretched pixels happens, over fewer pixels but still roughly a 1/16th ratio of the screen width.
Attached Thumbnails
Click image for larger version

Name:	Clipboard04.png
Views:	177
Size:	17.4 KB
ID:	48650  
AlexC is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Direct3D Problem Foebane support.WinUAE 7 16 April 2016 21:34
Pre-Scaling before Bilinear Scaling? rsn8887 request.UAE Wishlist 6 05 September 2015 19:13
Scaling differences between DirectDraw and Direct3D dazzleman support.WinUAE 2 07 June 2014 20:47
DirectDraw VS Direct3D centering msayed1977 support.WinUAE 2 10 April 2013 19:19
Direct3D onscreen led issue Kitty support.WinUAE 35 30 December 2009 20:37

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:26.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07032 seconds with 14 queries