Homebrew TWPatcher - DS(i) mode screen filters and patches

  • Thread starter Sono
  • Start date
  • Views 755,807
  • Replies 2,428
  • Likes 102

Are you interested in a complete replacement of TwlBg which includes all patches?

  • Yes, I don't care how broken it will be!

    Votes: 188 79.3%
  • No, I don't want to use even more broken stuff

    Votes: 20 8.4%
  • Yes, but only in GBA mode, because I play DSi exclusives

    Votes: 12 5.1%
  • No, because I only use DS and DSi mode

    Votes: 17 7.2%

  • Total voters
    237
  • Poll closed .

RetroGen

Well-Known Member
Member
Joined
Jul 17, 2022
Messages
181
Trophies
0
Location
Home
XP
698
Country
Canada
Linear Sharpen 1 seems to offer the best compromise; it does a nice job sharpening the image without losing fine detail. All the others look too pixelated, IMO. Thanks, Sono, for making this application and looking forward to the GBA filters. Not sure if possible, but it would be great if there were separate color temperature adjustments for the top and bottom screens (my N3DS XL has IPS top and TN bottom with noticeably different color temperatures).
 
  • Like
Reactions: Sono

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,825
Trophies
2
Location
home
XP
9,376
Country
Hungary
Linear Sharpen 1 seems to offer the best compromise; it does a nice job sharpening the image without losing fine detail. All the others look too pixelated, IMO. Thanks, Sono, for making this application and looking forward to the GBA filters. Not sure if possible, but it would be great if there were separate color temperature adjustments for the top and bottom screens (my N3DS XL has IPS top and TN bottom with noticeably different color temperatures).

I think I had that option once, but there is not enough space sadly to fit both, as long as I remember.
 
  • Like
Reactions: RetroGen and Nutez

RetroGen

Well-Known Member
Member
Joined
Jul 17, 2022
Messages
181
Trophies
0
Location
Home
XP
698
Country
Canada
I think I had that option once, but there is not enough space sadly to fit both, as long as I remember.
Thanks! If there is an old version that supports dual color temperature settings, would it be available for download anywhere? Version number? I'm unlikely to play many GBA games, so not a big deal losing that function.
 

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,825
Trophies
2
Location
home
XP
9,376
Country
Hungary
Thanks! If there is an old version that supports dual color temperature settings, would it be available for download anywhere? Version number? I'm unlikely to play many GBA games, so not a big deal losing that function.

It was a feature before I even released it to the public, but I had to cut it because of space constraints.

In fact, it was so bad that even the default colorramp just barely didn't fit into the space.

I had to make my own compression algo which exploits the incrementing nature of the colorramp, meaning that the previous color value written to the colorramp is guaranteed to be less or equal to the next value written to the colorramp.

On the other hand, I had to make the decompression code as small as possible, because the compressed colorramp data is directly appended to the end of the payload, meaning they share the same space (they have to, sadly, as there is not really space elsewhere to put any of them), so my options are severely limited.

It's a really delicate balance, and it's really hard to shave off *bits* off of the total size, let alone bytes. Adding just a single instruction means I lose around 8 to 16 color values I could've fit otherwise.
Considering how simple yet space-efficient my (de-)compression algo is, I highly doubt there exist better solutions. Because of that, the only place I could save some space is in the actual decompression algo itself, or perhaps by re-arranging the data some way to make it more space-efficient by a few bits, but then again, it's a really delicate balance, and there is extremely little gain to extremely big effort, so I'm kind of afraid to touch it at this point.
 
  • Like
Reactions: RetroGen

tygh3902

New Member
Newbie
Joined
Aug 9, 2022
Messages
1
Trophies
0
Age
24
Location
fourside
XP
22
Country
Australia
I've followed the install guide and got widescreen and the crisp filter working on a widescreen compatible game (DQV), but I've not been able to get screen filters working in non-widescreen games. Any idea?
 

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,825
Trophies
2
Location
home
XP
9,376
Country
Hungary
I've followed the install guide and got widescreen and the crisp filter working on a widescreen compatible game (DQV), but I've not been able to get screen filters working in non-widescreen games. Any idea?

Depends on what patches you're using.

GPU scaling is strictly linear upscaling, as it's done only by the GPU, and it doesn't really support anything else.

Scale matrixes only work with the built-in capture card.
However, due to the mathematical complexity of the upscale matrixes, I opted to disable scaling for the X axis in widescreen mode, and only let it to be applied to the Y axis (you can see if you look really close, that changing the matrixes does indeed somewhat change how the overall image looks).

Technically there is only mathematics stopping me from making the upscale matrixes widescreen-compatible. Some could be probably "just upscaled", but the others must be recreated from scratch due to their complexity.
The only downside to supporting widescreen upscaling matrix is that pixel perfect mode (START/SELECT on boot) might be garbled, and/or hang, unless I patch out some unrelated functions.
 
  • Like
Reactions: ROMANREIGNS599

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,825
Trophies
2
Location
home
XP
9,376
Country
Hungary
So the filter that's closest to "Nearest Neighbor" is "Sono's Crisp" or Zero Interpolation? I don't mind the pixelated look and would rather have a clearer image.

You can see that youself by changing between the filters.

"Nearest neighbor" is written as "Linear interpolation 1" in the filter menu.
If you don't like that, then try "Linear sharpen 1", or if it looks the same to you, then try "Sono's crisp (original patch)". Alternatively there is "Sharpen test 1", but it looks disgusting at times.

There is also an undocumented feature I just remembered: you can use X + DPAD to switch between test patterns. Also if you let the menu time out, you can hold X to switch between the current filter and Nintendo's filter, to see the difference between the default and the selected filter.

Oh, and there is a really visually interesting bug caused by the pattern switch code: sometimes it's possible to trigger "wood mode", where both screens turn into a laminated wood floor pattern. I forgot how to do that, but I don't remember it being too difficult to trigger.
 
  • Like
Reactions: NyaakoXD

NyaakoXD

( ͡° ͜ʖ ͡°)
Member
Joined
Dec 16, 2013
Messages
1,858
Trophies
2
Location
In your closet...
XP
3,665
Country
United States
You can see that youself by changing between the filters.

"Nearest neighbor" is written as "Linear interpolation 1" in the filter menu.
If you don't like that, then try "Linear sharpen 1", or if it looks the same to you, then try "Sono's crisp (original patch)". Alternatively there is "Sharpen test 1", but it looks disgusting at times.

There is also an undocumented feature I just remembered: you can use X + DPAD to switch between test patterns. Also if you let the menu time out, you can hold X to switch between the current filter and Nintendo's filter, to see the difference between the default and the selected filter.

Oh, and there is a really visually interesting bug caused by the pattern switch code: sometimes it's possible to trigger "wood mode", where both screens turn into a laminated wood floor pattern. I forgot how to do that, but I don't remember it being too difficult to trigger.
Alright, will test them around.

Nice to see that there's a hidden feature and an easter egg-like bug.
 

placebo_yue

Well-Known Member
Member
Joined
Aug 7, 2019
Messages
739
Trophies
0
Age
33
XP
1,264
Country
Argentina
Sorry to ask something without reading, perhaps this was answered a long time ago, but it's 108 pages!!

Anyways, i'm not getting widescreen anymore. TBH i haven't noticed exactly when or why, i assume it was my luma update from 10.14 or something, to 11.00.
Is that possible or am i tripping? I did re-apply the patches holding X for widescreen mode, twice actually, and it doesn't seem to work. What i didn't try tbh is using some other more noticeable filter to see if the filters work at all, or if its just widescreen
 

Pk11

A catgirl with a DSi
Member
Joined
Jun 26, 2019
Messages
1,285
Trophies
1
Age
22
Location
米国
Website
xn--rck9c.xn--tckwe
XP
3,906
Country
United States
Sorry to ask something without reading, perhaps this was answered a long time ago, but it's 108 pages!!

Anyways, i'm not getting widescreen anymore. TBH i haven't noticed exactly when or why, i assume it was my luma update from 10.14 or something, to 11.00.
Is that possible or am i tripping? I did re-apply the patches holding X for widescreen mode, twice actually, and it doesn't seem to work. What i didn't try tbh is using some other more noticeable filter to see if the filters work at all, or if its just widescreen
Is "External FIRMs and Modules" enabled in Luma settings? Updating Luma always resets all the settings.

Also, TWiLight Menu++ might be automatically disabling that now. Not sure if it'll disable it if it wasn't the one that enabled it but I know TWiLight edits the ini to enable it automatically now.
 

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,825
Trophies
2
Location
home
XP
9,376
Country
Hungary
Sorry to ask something without reading, perhaps this was answered a long time ago, but it's 108 pages!!

Anyways, i'm not getting widescreen anymore. TBH i haven't noticed exactly when or why, i assume it was my luma update from 10.14 or something, to 11.00.
Is that possible or am i tripping? I did re-apply the patches holding X for widescreen mode, twice actually, and it doesn't seem to work. What i didn't try tbh is using some other more noticeable filter to see if the filters work at all, or if its just widescreen

I thought I have made it properly, but I guess not. When you hold X, it should actually error out that this button combo is not supported anymore due to the confusion it caused (people kept pressing START+X instead of X+START), so now you're forced to enable it from the patch menu.

Also please use the latest version, as previous versions had ultra broken widescreen.
 

placebo_yue

Well-Known Member
Member
Joined
Aug 7, 2019
Messages
739
Trophies
0
Age
33
XP
1,264
Country
Argentina
now you're forced to enable it from the patch menu.
how do i do that? is the link to an updated version on page 1?
i'll update ASAP, as i really liked bilinear filtered widescreen

edit: i'll also check the "external firm and modules" in case it was resetted into being disabled. I assumed it would've kept my settings. I found some mirror for TWpatcher if anyone confrims the date of last version i'll go ahead with it
 
Last edited by placebo_yue,

Pk11

A catgirl with a DSi
Member
Joined
Jun 26, 2019
Messages
1,285
Trophies
1
Age
22
Location
米国
Website
xn--rck9c.xn--tckwe
XP
3,906
Country
United States
how do i do that? is the link to an updated version on page 1?
i'll update ASAP, as i really liked bilinear filtered widescreen

edit: i'll also check the "external firm and modules" in case it was resetted into being disabled. I assumed it would've kept my settings. I found some mirror for TWpatcher if anyone confrims the date of last version i'll go ahead with it
There's an official download again: https://gbatemp.net/download/twpatch.37400/

I guess the OP just hasn't been updated, that's the version used on Universal-DB and thus Universal-Updater so getting from either of those is also up to date.
 
  • Like
Reactions: Sono

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,825
Trophies
2
Location
home
XP
9,376
Country
Hungary
how do i do that? is the link to an updated version on page 1?
i'll update ASAP, as i really liked bilinear filtered widescreen

edit: i'll also check the "external firm and modules" in case it was resetted into being disabled. I assumed it would've kept my settings. I found some mirror for TWpatcher if anyone confrims the date of last version i'll go ahead with it

In the scale matrix selector menu, press Y+B (not B+Y), navigate to the widescreen patch, press A to check it, B to return to the scale matrixes menu, and then hold START to start the patching.

There's an official download again: https://gbatemp.net/download/twpatch.37400/

I guess the OP just hasn't been updated, that's the version used on Universal-DB and thus Universal-Updater so getting from either of those is also up to date.

Heh oops, thanks for the heads-up! Added it to first post.
 
  • Like
Reactions: placebo_yue

placebo_yue

Well-Known Member
Member
Joined
Aug 7, 2019
Messages
739
Trophies
0
Age
33
XP
1,264
Country
Argentina
In the scale matrix selector menu, press Y+B (not B+Y), navigate to the widescreen patch, press A to check it, B to return to the scale matrixes menu, and then hold START to start the patching.
I updated, did all that but my DS games are still not widescreen :(
what else could be wrong?
Nevermind i forgot to allow FIRM and Modules thingy on luma. It's probably gonna work this time. Will report if not
 

BenoitRen

Active Member
Newcomer
Joined
Jul 1, 2015
Messages
40
Trophies
0
Age
38
XP
142
Country
Belgium
Meanwhile, I'm still waiting for a patch that automatically shows my GBA and DSiWare games in pixel-perfect mode without having to hold Start or Select. Every. Single. Time. That I boot them up. It was proposed as an option in Luma, but was rejected in favor of more TWLBg research. Now that such research is done, can I please have this option somehow?
 

Stellar

Well-Known Member
Member
Joined
Jul 20, 2014
Messages
206
Trophies
0
XP
1,793
Country
Portugal
Meanwhile, I'm still waiting for a patch that automatically shows my GBA and DSiWare games in pixel-perfect mode without having to hold Start or Select. Every. Single. Time. That I boot them up. It was proposed as an option in Luma, but was rejected in favor of more TWLBg research. Now that such research is done, can I please have this option somehow?
That is already an option with TWPatcher.
 
  • Like
Reactions: Sono

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,825
Trophies
2
Location
home
XP
9,376
Country
Hungary
Meanwhile, I'm still waiting for a patch that automatically shows my GBA and DSiWare games in pixel-perfect mode without having to hold Start or Select. Every. Single. Time. That I boot them up. It was proposed as an option in Luma, but was rejected in favor of more TWLBg research. Now that such research is done, can I please have this option somehow?

I think I even renamed the patch, so it's more clear. It was named "UnSTART", although no idea what it's named now.

Either way, it's in the patch menu.
 
  • Like
Reactions: Nutez

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    You need to setup a time lapse camera, be neat
  • BigOnYa @ BigOnYa:
    I actually use a pic of it on my pc desktop cause its cool looking
  • Xdqwerty @ Xdqwerty:
    Apparently the pro versión of pizza boy is back aswell
  • Xdqwerty @ Xdqwerty:
    Gonna download the update
  • Xdqwerty @ Xdqwerty:
    Only 2 antiviruses detected the APK as a virus on virustotal so it Must be safe
  • Xdqwerty @ Xdqwerty:
    Cuz false positive
  • Xdqwerty @ Xdqwerty:
    Wait
  • Xdqwerty @ Xdqwerty:
    Eh nvm
  • BakerMan @ BakerMan:
    sadly, the clouds are setting in now

    hey BigOnYa the clouds are coming from the south, maybe check again
  • Xdqwerty @ Xdqwerty:
    Good night it's 11 pm
  • BakerMan @ BakerMan:
    night
  • BigOnYa @ BigOnYa:
    @BakerMan Nuh I'm in for the night playing Fallout 4, ill look tomorrow night
  • BigOnYa @ BigOnYa:
    Ok had let dog out, and yea still can't see it, oh well. Maybe tom night.
  • K3Nv2 @ K3Nv2:
    Ballocks these drives aren't allowing raid
  • BigOnYa @ BigOnYa:
    That sucks, well you will get double the space then atleast.
  • K3Nv2 @ K3Nv2:
    @Sicklyboy needs to come back
  • BigOnYa @ BigOnYa:
    Did you try Raid 10?
  • K3Nv2 @ K3Nv2:
    I did raid69
  • K3Nv2 @ K3Nv2:
    The physical disk keeps disabling in bios
  • BakerMan @ BakerMan:
    hey ken did you see the aurora tonight?
  • BakerMan @ BakerMan:
    also sorry it was too cloudy, that sucks
  • SylverReZ @ SylverReZ:
    @K3Nv2, This chat is sponsored by Raid Shadow Legends.
  • K3Nv2 @ K3Nv2:
    So I guess raid0 doesn't allow mismatched storage oh well
    +1
  • K3Nv2 @ K3Nv2:
    In other news GeForce experience is still shit
    K3Nv2 @ K3Nv2: In other news GeForce experience is still shit