MiSTer Integer Custom Video Modes
- atrac17
- Core Developer
- Posts: 162
- Joined: Sun May 24, 2020 10:51 pm
- Has thanked: 32 times
- Been thanked: 385 times
Re: MiSTer Integer Custom Video Modes
I've got the iPad display dialed in and will put together a pack for it shortly. It's driver board dependent. I've used three different one's so far.
Currently, VS-RTD09703-V1 has the most features. It's got overdrive and sharpness controls in the OSD. Screens immaterial, LG or Samsung.
Clocked it at less than 9ms against my 14M4U.
Currently, VS-RTD09703-V1 has the most features. It's got overdrive and sharpness controls in the OSD. Screens immaterial, LG or Samsung.
Clocked it at less than 9ms against my 14M4U.
Re: MiSTer Integer Custom Video Modes
I’m kinda confused by these. They provide integer scaled output from the MiSTer, but the final result on the screen will be non-integer scaled by the screen’s scaler unless you use a CRT, yeah?
Also why should the default resolution be set to 720p? Doesn’t the custom video mode override that?
Also why should the default resolution be set to 720p? Doesn’t the custom video mode override that?
- atrac17
- Core Developer
- Posts: 162
- Joined: Sun May 24, 2020 10:51 pm
- Has thanked: 32 times
- Been thanked: 385 times
Re: MiSTer Integer Custom Video Modes
You keep saying this, have you even tried it? Did you know that setting full screen on the OSD sets the the image to the custom video mode? Then the displays scaler takes care of the rest. Also, using custom aspect ratios for DAR, PAR, or a straight integer scale set outside of what is coded in the core work.
Yes, I have calibrated CRT's. Yes, the image displayed on the panel is the same as the CRT.
Setting 720p as default is for hot swapping between cores. At one point, the framework didn't always display the custom video mode after hot swapping. I found that 720p as the default rectified this.
I get it, you wrote the horizontal scaler function and that's great... I've never said I don't understand that. But then again, I tried it first. There are plenty of people who'll attest to what I am working on. It's custom, but it works.
- atrac17
- Core Developer
- Posts: 162
- Joined: Sun May 24, 2020 10:51 pm
- Has thanked: 32 times
- Been thanked: 385 times
Re: MiSTer Integer Custom Video Modes
morf77 is helping me out and building scripts to install custom settings for you iPad display folks... Here's an example of what things will look like.
Re: MiSTer Integer Custom Video Modes
This is the second time I've said it, and you didn't respond to the first. I'm not trying to be hostile, when I say I'm confused I mean it. Am I missing something?
To be honest, no. I gave it a shot just now, but all the ones I tried my TV wouldn't display - it seems it's pretty picky about resolution. But I have no doubt that you're getting good results - I've seen many other people say as much. I'm just confused by the claim of integer scaling. I can see that your modes set the MiSTer to output an integer scaled image. If that is all you mean by Integer Custom Video Modes, then great, I get it. You output a clean image that winds up looking good on the screen. What I don't get is the idea that the final image displayed on the screen will be integer scaled. Your Street Fighter image up there is, I think, because it's displaying on a screen whose horizontal and vertical resolutions are integer multiples of the game's native resolution. If I were able to get it to display on my 1080p screen, and it filled the screen, it wouldn't be integer scaled any more because that 1536x896 image would be shrunk/stretched to 1440x1080 (or just stretched to 1920x1080, but I think the idea is you set the TV to make it 4:3?), which is not an integer multiplication.have you even tried it?
You're saying that if you set the OSD to full screen then the horizontal resolution of the image becomes whatever the horizontal resolution of the video mode is? If so, then yes.Did you know that setting full screen on the OSD sets the the image to the custom video mode?
This is where you lose me. The previous time I asked about this I was responding to a claim on your patreon that the display would scale in integer increments to fill the bezel vertically, which unless I've misunderstood what you're saying is simply incorrect. A modern display with a fixed resolution cannot integer scale unless the screen's resolution is a multiple of the image resolution or it uses cropping or borders.Then the displays scaler takes care of the rest.
I am open to the possibility that I have just misunderstood what you're doing. If the goal is to have the MiSTer output a large, integer scaled image that will suffer minimal damage from the display's scaler, then I get it. If the goal is that the final image on the screen will both fill the screen and be integer scaled, I am missing something.
Thanks for the explanation.Setting 720p as default is for hot swapping between cores. At one point, the framework didn't always display the custom video mode after hot swapping. I found that 720p as the default rectified this.
I'd like to claim credit for the horizontal integer scale, but the dodgy version I wrote was not used. Sorgelig wrote a better version and put that in.I get it, you wrote the horizontal scaler function and that's great... I've never said I don't understand that. But then again, I tried it first. There are plenty of people who'll attest to what I am working on. It's custom, but it works.
I'm not trying to pick a fight or dismiss what you're doing. It's obviously giving good results to a lot of people. I just want to understand it (and I get that you have no responsibility to explain yourself to me. If you want to just say "here's a set of magic numbers that make the picture look nice, enjoy", that's fair enough).
-
- Top Contributor
- Posts: 1019
- Joined: Thu Dec 10, 2020 5:44 pm
- Has thanked: 315 times
- Been thanked: 238 times
Re: MiSTer Integer Custom Video Modes
My experience with LCD computer monitors is that their scalers are all trash so yeah, could probably lead with a note about intended use cases here.
I imagine if you want to fullscreen stuff on your 4K display, this can yield better results than sending a pre-scaled 1080p signal. There's also something a bit too blurry about the default "sharp interpolation" filter so if your display is scaling less than 2x from zero-interpolation it might yield better results.
There's also many cores lacking an HV integer scale setting so this can be a way to force that with display scaling disabled on a 1080p monitor or such.
I imagine if you want to fullscreen stuff on your 4K display, this can yield better results than sending a pre-scaled 1080p signal. There's also something a bit too blurry about the default "sharp interpolation" filter so if your display is scaling less than 2x from zero-interpolation it might yield better results.
There's also many cores lacking an HV integer scale setting so this can be a way to force that with display scaling disabled on a 1080p monitor or such.
- atrac17
- Core Developer
- Posts: 162
- Joined: Sun May 24, 2020 10:51 pm
- Has thanked: 32 times
- Been thanked: 385 times
Re: MiSTer Integer Custom Video Modes
Sounds good. Caught the wrong vibe, apologies. I just remember seeing it before. I don't really come to the forum a lot, but I have a good memory.Yim wrote: ↑Wed Aug 18, 2021 2:40 pm I'm not trying to pick a fight or dismiss what you're doing. It's obviously giving good results to a lot of people. I just want to understand it (and I get that you have no responsibility to explain yourself to me. If you want to just say "here's a set of magic numbers that make the picture look nice, enjoy", that's fair enough).
It really won't work with anything other than a 4K display. Some 1440p monitors work very well. I've only tried it on four or five LG monitors.
I've only had one 1080p display work. It's a six year old Samsung. What you're referring to with 1080p going to a 4:3 resolution from the 896... That isn't how this works.
I understand where the confusion is. If you had a display that was higher than 1080p you might be successful and running one of the ini files.
This really takes advantage of the AI upscaling from LG. Other displays do it too, it maybe called something different. For instance, the iPad display that everybody's got can take advantage of these. That's driver board dependent.
I'll try and follow up with some screenshots of an iPad display to give you an example tomorrow.
-
- Top Contributor
- Posts: 1019
- Joined: Thu Dec 10, 2020 5:44 pm
- Has thanked: 315 times
- Been thanked: 238 times
Re: MiSTer Integer Custom Video Modes
I will say this, if you want to use scanline filters and go top-to-bottom bezel without 5x cut, give this a try. They were quite passable on my "old" Sony 4K. Wheras its pretty obvious uneven garbage using mister's scaler to fill out to 1080p. Shame that this TV will not let me squish these higher resolutions to 4:3.
- atrac17
- Core Developer
- Posts: 162
- Joined: Sun May 24, 2020 10:51 pm
- Has thanked: 32 times
- Been thanked: 385 times
Re: MiSTer Integer Custom Video Modes
Did you try zoom 1 or 2? Sony's are weird. I'm glad they meet your approval.FoxbatStargazer wrote: ↑Thu Aug 19, 2021 12:07 am I will say this, if you want to use scanline filters and go top-to-bottom bezel without 5x cut, give this a try. They were quite passable on my "old" Sony 4K. Wheras its pretty obvious uneven garbage using mister's scaler to fill out to 1080p. Shame that this TV will not let me squish these higher resolutions to 4:3.
-
- Top Contributor
- Posts: 1019
- Joined: Thu Dec 10, 2020 5:44 pm
- Has thanked: 315 times
- Been thanked: 238 times
Re: MiSTer Integer Custom Video Modes
This is on an x850c. For 4x integer option, "Normal" seems to be 1:1 inside inside a 1080p frame (so, same black space you would see on a non-scaled 1080p display. "Full 1" extends it to the top and bottom bezel, while retaining the input AR (which is a bit wider than 4:3 on Genesis core). "Full 2" extends it also to the sides i.e. 16:9.
When I tried 6x, it was more like "full 1" didn't exist, so its not as usable. Still if you use "full 1" for 4x, and just stick to normal AR in mister menu (instead of full), you will get a proper aspect ratio, it just won't be scaled quite as nicely horizontally. But getting the vertical set up correctly is enough for the scanline filter to look a million times better.
- wark91
- Core Developer
- Posts: 334
- Joined: Sun May 24, 2020 8:34 pm
- Has thanked: 447 times
- Been thanked: 95 times
Re: MiSTer Integer Custom Video Modes
Thank you Atrac17.
Some screenshots with a LCD screen with the resolution 1280x1024 with Mode Lines (Integer Step-Scaled Custom Video Modes)
NeoGeo : MegaDrive/Genesis: GBC: Arcade Shinobi : Arcade Green Beret: NES/Famicom (Overscan ON and Mask Edges set to both): Arcade Battle Road in Tate Mode:
Some screenshots with a LCD screen with the resolution 1280x1024 with Mode Lines (Integer Step-Scaled Custom Video Modes)
NeoGeo : MegaDrive/Genesis: GBC: Arcade Shinobi : Arcade Green Beret: NES/Famicom (Overscan ON and Mask Edges set to both): Arcade Battle Road in Tate Mode:
- atrac17
- Core Developer
- Posts: 162
- Joined: Sun May 24, 2020 10:51 pm
- Has thanked: 32 times
- Been thanked: 385 times
Re: MiSTer Integer Custom Video Modes
wwark, try setting Famicom configs differently...
Set this up, that ought to fix certain games on Famicom.
Code: Select all
Utilize the Secondary Modelines below if you enable Hide Overscan: Yes and Mask Edges: Auto in the MiSTer OSD. This simulates playing on a CRT with the overscan areas pushed out of the display horizontally and vertically.
- BlockABoots
- Posts: 43
- Joined: Wed May 27, 2020 8:21 pm
- Has thanked: 7 times
Re: MiSTer Integer Custom Video Modes
Thanks for all the hard work put into creating these!!
So, are there no custom aspect ratios for arcade cores anymore as i just see custom video modes for arcade cores??
So, are there no custom aspect ratios for arcade cores anymore as i just see custom video modes for arcade cores??
-
- Top Contributor
- Posts: 1019
- Joined: Thu Dec 10, 2020 5:44 pm
- Has thanked: 315 times
- Been thanked: 238 times
Re: MiSTer Integer Custom Video Modes
Not sure too many cores ever supported it. I stuck 4:3 as a custom resolution for the entire [arcade] and have yet to run a core that supports it...
- BlockABoots
- Posts: 43
- Joined: Wed May 27, 2020 8:21 pm
- Has thanked: 7 times
Re: MiSTer Integer Custom Video Modes
Well i know atrac17's older revisions of the modelines used to have custom aspect ratios for Jotego's arcade cores
- atrac17
- Core Developer
- Posts: 162
- Joined: Sun May 24, 2020 10:51 pm
- Has thanked: 32 times
- Been thanked: 385 times
Re: MiSTer Integer Custom Video Modes
That's what this information is, I still have plenty of stuff left to do. This is still a work in progress. You can create it yourself in the interim. Here's an example.BlockABoots wrote: ↑Sun Aug 22, 2021 1:45 pm Thanks for all the hard work put into creating these!!
So, are there no custom aspect ratios for arcade cores anymore as i just see custom video modes for arcade cores??
Code: Select all
[jt1942]
video_mode=1024,48,32,80,896,3,10,13,65499
custom_aspect_ratio_1=45:44
Re: MiSTer Integer Custom Video Modes
The 6x modelines were a huge help to me, as I was having troubles getting my 1440p 144hz screen to accept the default 1440 mode line without forcing 60hz. With these mode lines I get 1440p and no lag accurate refresh rate. Thanks atrac17
Re: MiSTer Integer Custom Video Modes
Is there a possibility to force a higher pixel clock than the current max 200MHz pixel clock? I want to force 1536x1080 @120Hz but currently it’s maxed out doing 1280x1080 @120Hz for integer 4x scaling of 384x224 and 384x240 games. Perhaps adding a small heatsink will allowing for additional overclocking.
Re: MiSTer Integer Custom Video Modes
No I’m talking about overclocking the HDMI clock chip beyond the current set maximum.
-
- Top Contributor
- Posts: 1019
- Joined: Thu Dec 10, 2020 5:44 pm
- Has thanked: 315 times
- Been thanked: 238 times
Re: MiSTer Integer Custom Video Modes
Anyone interested in these custom modes (resolution = exact integer scale) should also look at the new vscale_mode options (4,5,6) labeled "resolution scaling". Like the name vaguely implies, these actually lower the output resolution enough to match some kind of integer scale. So if you use say Wonderswan on 1920x1440 mode and vscale_mode=6, you will get 1792x1152 resolution, a perfect 8x scale in both directions and with zero border. So you might be able to get similar results now without having to put in a custom resolution for every single core.
- LamerDeluxe
- Top Contributor
- Posts: 1239
- Joined: Sun May 24, 2020 10:25 pm
- Has thanked: 887 times
- Been thanked: 284 times
Re: MiSTer Integer Custom Video Modes
I haven't looked into it yet, but does this also finally allow horizontal integer scaling, while maintaining correct aspect ratio, for vertical arcade cores?FoxbatStargazer wrote: ↑Mon May 30, 2022 5:13 am Anyone interested in these custom modes (resolution = exact integer scale) should also look at the new vscale_mode options (4,5,6) labeled "resolution scaling". Like the name vaguely implies, these actually lower the output resolution enough to match some kind of integer scale. So if you use say Wonderswan on 1920x1440 mode and vscale_mode=6, you will get 1792x1152 resolution, a perfect 8x scale in both directions and with zero border. So you might be able to get similar results now without having to put in a custom resolution for every single core.
-
- Top Contributor
- Posts: 1019
- Joined: Thu Dec 10, 2020 5:44 pm
- Has thanked: 315 times
- Been thanked: 238 times
Re: MiSTer Integer Custom Video Modes
No, the resolution is generated before the flip happens. So Pac-Man(Midway) is originally 288x224, and generates a 1728x1344 resolution, a 6x perfect scale. THEN the flip happens and is stuck inside that window, resulting in uneven scaling.LamerDeluxe wrote: ↑Mon May 30, 2022 11:05 am I haven't looked into it yet, but does this also finally allow horizontal integer scaling, while maintaining correct aspect ratio, for vertical arcade cores?
- LamerDeluxe
- Top Contributor
- Posts: 1239
- Joined: Sun May 24, 2020 10:25 pm
- Has thanked: 887 times
- Been thanked: 284 times
Re: MiSTer Integer Custom Video Modes
Ah, okay, thanks for explaining! Too bad, it is so odd that there's vertical integer scaling, but not horizontal.FoxbatStargazer wrote: ↑Mon May 30, 2022 6:09 pmNo, the resolution is generated before the flip happens. So Pac-Man(Midway) is originally 288x224, and generates a 1728x1344 resolution, a 6x perfect scale. THEN the flip happens and is stuck inside that window, resulting in uneven scaling.LamerDeluxe wrote: ↑Mon May 30, 2022 11:05 am I haven't looked into it yet, but does this also finally allow horizontal integer scaling, while maintaining correct aspect ratio, for vertical arcade cores?