PWM on 18-bit DAC to get 24-bit Color

Discussion of developmental aspects of the MiSTer Project.
Neocaron
Posts: 361
Joined: Sun Sep 27, 2020 10:16 am
Has thanked: 197 times
Been thanked: 75 times

Re: PWM on 18-bit DAC to get 24-bit Color

Unread post by Neocaron »

This not being in main still blows my mind XD

User avatar
dickhardpill
Posts: 167
Joined: Tue Apr 09, 2024 9:28 pm
Location: Not Portland, OR
Has thanked: 63 times
Been thanked: 36 times
Contact:

Re: PWM on 18-bit DAC to get 24-bit Color

Unread post by dickhardpill »

Ruleset wrote: Sat May 04, 2024 5:45 pm
naylord wrote: Sat May 04, 2024 8:08 am

Would you be able to do a final update on the Saturn core when the core gets buttoned up? Feels like were in the homestretch of development and it would be amazing to have PWM on the final or near final release so it could be the definitive way of playing Saturn games.
Thanks so much again!

I'll make new builds probably about once a month if there are updates. Cores are updated to latest source today.

You are awesome! Thank you it looks pretty darn amazing!

I has a you tube
Analog IO
USB board
VGA > Component
HDMI > FPM

naylord
Posts: 51
Joined: Sat May 21, 2022 11:55 pm
Has thanked: 20 times
Been thanked: 7 times

Re: PWM on 18-bit DAC to get 24-bit Color

Unread post by naylord »

One question, the PWM feature does work with forced_scandoubler right? That's not like a VGA scaler since it just line doubles without needing to do any extra scaling of any kind. To my eye it looks like banding is improved on the Saturn core with scandoubler on with pwm core vs vanilla but I thought I'd double check it's not a placebo if scandoubler disables it like VGA_Scaler does.

Ruleset
Posts: 18
Joined: Fri Dec 01, 2023 1:45 pm
Been thanked: 87 times

Re: PWM on 18-bit DAC to get 24-bit Color

Unread post by Ruleset »

naylord wrote: Thu May 09, 2024 7:44 am

One question, the PWM feature does work with forced_scandoubler right? That's not like a VGA scaler since it just line doubles without needing to do any extra scaling of any kind. To my eye it looks like banding is improved on the Saturn core with scandoubler on with pwm core vs vanilla but I thought I'd double check it's not a placebo if scandoubler disables it like VGA_Scaler does.

Yes, the scandoubler doesn't use the scaler as far a I know, so PWM should work. What games are you testing on Saturn that show a difference? I only could find the FMV in the japanese version of Castlevania that showed less banding, but I didn't try too many games.

metalfacemark
Posts: 175
Joined: Mon Jan 04, 2021 12:04 pm
Has thanked: 19 times
Been thanked: 15 times

Re: PWM on 18-bit DAC to get 24-bit Color

Unread post by metalfacemark »

Thanks, just had a play with this - looks great!

naylord
Posts: 51
Joined: Sat May 21, 2022 11:55 pm
Has thanked: 20 times
Been thanked: 7 times

Re: PWM on 18-bit DAC to get 24-bit Color

Unread post by naylord »

Ruleset wrote: Thu May 09, 2024 1:47 pm
naylord wrote: Thu May 09, 2024 7:44 am

One question, the PWM feature does work with forced_scandoubler right? That's not like a VGA scaler since it just line doubles without needing to do any extra scaling of any kind. To my eye it looks like banding is improved on the Saturn core with scandoubler on with pwm core vs vanilla but I thought I'd double check it's not a placebo if scandoubler disables it like VGA_Scaler does.

Yes, the scandoubler doesn't use the scaler as far a I know, so PWM should work. What games are you testing on Saturn that show a difference? I only could find the FMV in the japanese version of Castlevania that showed less banding, but I didn't try too many games.

I was playing Panzer Dragoon Zwei and it looked like banding was reduced in the FMV. I'll try booting up castlevania as the grey fog in the opening cutscene is a very obvious place to see tons of banding.

User avatar
Dr Johnny Bananas
Posts: 23
Joined: Mon Oct 16, 2023 4:20 am
Has thanked: 4 times
Been thanked: 1 time

Re: PWM on 18-bit DAC to get 24-bit Color

Unread post by Dr Johnny Bananas »

This is very interesting, Saturn is my favorite core. I'm going to try these tonight.

Thank you!

stanenc
Posts: 1
Joined: Wed May 29, 2024 1:47 pm
Been thanked: 1 time

Re: PWM on 18-bit DAC to get 24-bit Color

Unread post by stanenc »

Made an account to say that version 20240408 solved my entire issue I was having on a vga lcd display. Let me know if there is anything I can do to get this into the main branches because this is unbelievable. No way in heck the solution should be to purchase an entirely new board when solutions like this exist.

User avatar
Sarge
Posts: 45
Joined: Tue Jan 12, 2021 5:26 am
Has thanked: 3 times
Been thanked: 5 times

Re: PWM on 18-bit DAC to get 24-bit Color

Unread post by Sarge »

Very impressed with this. Hopefully Sorgelig will relent some day and add to main.

Image
Neocaron
Posts: 361
Joined: Sun Sep 27, 2020 10:16 am
Has thanked: 197 times
Been thanked: 75 times

Re: PWM on 18-bit DAC to get 24-bit Color

Unread post by Neocaron »

Hello there! If possible could we get this for the N64 turbo core as wel as the PSX turbo core? I have quartus installed and a pretty fast CPU so if it's a modification not too complex, I'd love to do it myself and share it here :D

Ruleset
Posts: 18
Joined: Fri Dec 01, 2023 1:45 pm
Been thanked: 87 times

Re: PWM on 18-bit DAC to get 24-bit Color

Unread post by Ruleset »

Neocaron wrote: Thu Jun 20, 2024 8:56 pm

Hello there! If possible could we get this for the N64 turbo core as wel as the PSX turbo core? I have quartus installed and a pretty fast CPU so if it's a modification not too complex, I'd love to do it myself and share it here :D

Sure you can try if you want. You will have to get the source from FPGAZumSpass and ask what the minimum acceptable timing slacks are.

Just add everything that is in this commit: https://github.com/Jokippo/N64_MiSTer_P ... baca5ce720

FPGAZumSpass did mention it took him 10 hours on a 13900k with 8 builds in parallel to get a good N64 Turbo build, and that was without PWM added, so I don't know if it is even possible. But I can add the build to the OP if you succeed.

Post Reply