ScummVM logo Forum Index - ScummVM website - Contact us - Buy Supported Games: GOG.com Rules - Search - Register - Login curved edge
Folder Forum Index > Help and Support > How to display games as they were intended with a CRT?
How to display games as they were intended with a CRT?
  Author    Thread Reply to topic
khaz



Joined: 27 Oct 2014
Posts: 6
How to display games as they were intended with a CRT? 

I have a modern gaming PC, and a CRT. I can change to whatever resolution is needed. How do I configure SCUMmVM so that it displays fullscreen at 400p natively? (with the correct aspect ratio.)

I messed with the options a bit but it seems that SCUMMVM doesn't change the display resolution, it sticks to the desktop resolution and only changes its internal resolution.

I switched the desktop to 720x400@70Hz, but then games were displayed with black bars on the side. Checking "aspect ratio correction" only made the game even thinner.

 Reply with quote  
Post Thu Jan 18, 2018 9:18 pm 
 View user's profile Send private message
GUN



Joined: 08 Nov 2005
Posts: 45
Location: Germany
 

Native resolutions in DOS was

320x200 320x240
in HiMode 640x400 640x480

so the resolutions of the game are same.

if you use a widescreen resolution (720x400) you get these left and right borders. so i don`t get the point.

choose a more fitting resolution or scale it to fit more your monitor resolution.

 Reply with quote  
Post Fri Jan 19, 2018 11:31 am 
 View user's profile Send private message Visit poster's website
LogicDeLuxe



Joined: 10 Nov 2005
Posts: 389
 

VGA doubled the lines in 200 and 240 row resolutions. To replicate this, you would set the resolution to 640x400 and use the 2x scaler on lowres games and disable aspect ratio correction.
70 Hz is VGA standard for 400 (and 200 logical) lines, but many graphic cards could be set to higher frequencies reducing flicker. So if your CRT supports it, you might just do that.
For hires games, use a 640x480 resolution and the 1x scaler.


720 width is commonly used on DVD and DVB, but not on VGA. Also, they are pre-defined in modern graphic drivers, since they are mandatory for HDMI.

 Reply with quote  
Post Fri Jan 19, 2018 12:58 pm 
 View user's profile Send private message
khaz



Joined: 27 Oct 2014
Posts: 6
 

This was taken by booting with a DOS floppy disk and running the game natively.



This is SCUMMVM 2.0.0 on Windows, with the resolution artificially set at 720x400 (SCUMMVM only changes its internal rendering resolution, not the display resolution; it keeps the Windows desktop resolution)



The video card cannot have its resolution set at lower than 720x400 or 640x480, but displays the correct image under primitive DOS conditions.

Earlier SCUMMVM builds (I tried 1.8.1) change the display resolution. On my computer, this resulted in the exact same incorrect thin image, in 720x400, as shown above.

 Reply with quote  
Post Fri Jan 19, 2018 1:33 pm 
 View user's profile Send private message
LogicDeLuxe



Joined: 10 Nov 2005
Posts: 389
 

It really is 320 pixels. Don't trust the 720, the monitor simply doesn't know any better. This mismatch may cause aliasing, but probably isn't noticeable due to the really low resolution, hence can be ignored.

You may try to define a 960x600 resolution and use the 3x scaler. It is not exactly DOS timing, but is probably the closest thing you'll get if your GPU does not let you define anything lower than 720x400.

 Reply with quote  
Post Fri Jan 19, 2018 7:15 pm 
 View user's profile Send private message
khaz



Joined: 27 Oct 2014
Posts: 6
 

quote:
Originally posted by LogicDeLuxe
It really is 320 pixels. Don't trust the 720, the monitor simply doesn't know any better. This mismatch may cause aliasing, but probably isn't noticeable due to the really low resolution, hence can be ignored.


I don't know what my graphics card and/or monitor do exactly, but I can't see any sign of stretching. No doubled pixels, no in-between with merged colours, etc.

Here's a close up of another game in DOS 6.22 with a single-pixel grid pattern. You can click on the image for a bigger version.


 Reply with quote  
Post Fri Jan 19, 2018 7:32 pm 
 View user's profile Send private message
criezy
ScummVM Developer


Joined: 23 Sep 2006
Posts: 517
Location: West Sussex, UK
Re: How to display games as they were intended with a CRT? 

quote:
Originally posted by khaz
it seems that SCUMMVM doesn't change the display resolution, it sticks to the desktop resolution and only changes its internal resolution.

That is correct when ScummVM uses SDL2 (as opposed to SDL 1.2) which is the case in the last release for most platforms (including Windows, macOS, Linux) I believe, and when not using the OpenGL mode. In such a case SDL2 indeed keeps the desktop resolution in fullscreen mode and scales internally the data it gets from ScummVM.

You can however use the OpenGL mode if you want to be able to select a lower fullscreen resolution and then use Ctrl-Alt and + or - to cycle through the available resolutions and finds the one that suits you best.
 Reply with quote  
Post Fri Jan 19, 2018 8:16 pm 
 View user's profile Send private message
LogicDeLuxe



Joined: 10 Nov 2005
Posts: 389
 

quote:
Originally posted by khaz
I don't know what my graphics card and/or monitor do exactly, but I can't see any sign of stretching. No doubled pixels, no in-between with merged colours, etc.
That means that no resampling takes place, which is certainly a good thing. Then the 720 is just a wild guess by the monitor and can be ignored.
In your 720x400 mode, did you try reducing the horizontal blanking? That might be enough to scale the 640 active pixels to your screen width.
 Reply with quote  
Post Fri Jan 19, 2018 8:33 pm 
 View user's profile Send private message
khaz



Joined: 27 Oct 2014
Posts: 6
Re: How to display games as they were intended with a CRT? 

quote:
Originally posted by criezy
You can however use the OpenGL mode if you want to be able to select a lower fullscreen resolution and then use Ctrl-Alt and + or - to cycle through the available resolutions and finds the one that suits you best.


I just tried it. While the main menu now fills the screen properly, the games are still in the same incorrect aspect ratio.

It's like the background and other geometrical elements are stretched to fill the screen, but bitmap objects (buttons, text, and the game itself) are still incorrectly sized. I don't expect SCUMMVM to provide a perfectly scaled interface for every combination of resolution and aspect ratio, I'm only worried about the game itself.

Last edited by khaz on Fri Jan 19, 2018 9:10 pm; edited 2 times in total
 Reply with quote  
Post Fri Jan 19, 2018 8:56 pm 
 View user's profile Send private message
khaz



Joined: 27 Oct 2014
Posts: 6
 

quote:
Originally posted by LogicDeLuxe
In your 720x400 mode, did you try reducing the horizontal blanking? That might be enough to scale the 640 active pixels to your screen width.

You mean using the monitor's resize feature? Sure, I could adjust the width of the displayed image, but then it would mess with every other software that use 720x400 correctly. I don't want to readjust the picture every time I switch, that would be a mess.
 Reply with quote  
Post Fri Jan 19, 2018 9:02 pm 
 View user's profile Send private message
LogicDeLuxe



Joined: 10 Nov 2005
Posts: 389
 

quote:
Originally posted by khaz
Sure, I could adjust the width of the displayed image, but then it would mess with every other software that use 720x400 correctly.
You could use a different timing like 85 Hz. Then, the monitor should distinguish that from regular DOS resolutions and remember the adjustments separately.
 Reply with quote  
Post Fri Jan 19, 2018 10:31 pm 
 View user's profile Send private message
khaz



Joined: 27 Oct 2014
Posts: 6
 

That sounds super complicated.

Is there a way to tweak OpenGL so that it stretches correctly?

 Reply with quote  
Post Sun Jan 21, 2018 8:57 pm 
 View user's profile Send private message
LogicDeLuxe



Joined: 10 Nov 2005
Posts: 389
 

quote:
Originally posted by khaz
Is there a way to tweak OpenGL so that it stretches correctly?
Using a 4:3 resolution like 800x600 should do. Most modern software assume square pixels.
 Reply with quote  
Post Tue Jan 23, 2018 10:36 am 
 View user's profile Send private message
  Display posts from previous:      
Reply to topic

Forum Jump:
 



Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Powered by phpBB © 2001, 2006 phpBB Group
Forum design by ScummVM team, icons by raina
curved edge   curved edge