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

  • Thread starter Sono
  • Start date
  • Views 748,575
  • Replies 2,428
  • Likes 101

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 .

guitarburger

Active Member
Newcomer
Joined
Mar 31, 2023
Messages
27
Trophies
0
Age
33
XP
63
Country
Australia

Attachments

  • 2023-04-04-142613.jpg
    2023-04-04-142613.jpg
    54.7 KB · Views: 62

guitarburger

Active Member
Newcomer
Joined
Mar 31, 2023
Messages
27
Trophies
0
Age
33
XP
63
Country
Australia

Attachments

  • 2023-04-05-130150.jpg
    2023-04-05-130150.jpg
    47.5 KB · Views: 57
  • 2023-04-05-130240.jpg
    2023-04-05-130240.jpg
    89.8 KB · Views: 50
  • 2023-04-05-130353.jpg
    2023-04-05-130353.jpg
    48 KB · Views: 57
  • 2023-04-05-130415.jpg
    2023-04-05-130415.jpg
    49.7 KB · Views: 57
  • 2023-04-05-131031.jpg
    2023-04-05-131031.jpg
    59 KB · Views: 49
  • 2023-04-05-131220.jpg
    2023-04-05-131220.jpg
    58.8 KB · Views: 39
  • 2023-04-05-131300.jpg
    2023-04-05-131300.jpg
    52.3 KB · Views: 54
  • 2023-04-05-132131.jpg
    2023-04-05-132131.jpg
    66.1 KB · Views: 67
  • 2023-04-05-132146.jpg
    2023-04-05-132146.jpg
    73.7 KB · Views: 59
  • 2023-04-05-132155.jpg
    2023-04-05-132155.jpg
    75.5 KB · Views: 61
  • 2023-04-05-132435.jpg
    2023-04-05-132435.jpg
    43.4 KB · Views: 58

Deleted member 42501

Well-Known Member
Member
Joined
Jun 16, 2006
Messages
1,724
Trophies
2
XP
4,259
I'm surprised that people aren't finding the image quality impressive with this app. To me it looks stunning with the config I'm using and is almost as crisp as a DSL.

Miles better than the standard Nintendo offering which was borderline unplayable. With this and the custom Gamma config on OAF you can get some amazing BC and image quality on 3DS.

Thanks @Sono Also I'm wondering if it would be possible to add in something like the zfast CRT filter? I really like the way it looks on a TV for retro and may not be needed on such a small screen/native resolution. Just wondering.
 

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,821
Trophies
2
Location
home
XP
9,320
Country
Hungary
@guitarburger Is your R key broken?
You managed to find a debug feature which only shows up if you hold R.

I'm wondering if it would be possible to add in something like the zfast CRT filter? I really like the way it looks on a TV for retro and may not be needed on such a small screen/native resolution. Just wondering.

Into Nintendo's code? No.

Into my code? Possibly, although I'm really slim on cycles if the CPU has to do the upscaling. I have 48 cycles per *input* pixel in DS(i) mode, and 64 cycles in GBA mode, which is not a lot for upscaling...
Also it will *have to* add a lag frame (that is, one frame of delay to output), because the framebuffer is rotated, and it's much easier on the CPU to upscale an already rotated framebuffer, but it takes a whole frame to rotate the framebuffer, so I can't do much about that.
 

Deleted member 42501

Well-Known Member
Member
Joined
Jun 16, 2006
Messages
1,724
Trophies
2
XP
4,259
Thanks for the insight. I'm happy with it as it is, just wondering how much room there is. Zfast CRT is the best looking shader I've ever seen for 16 bit:

bt8n1migw4f21.jpg


Looks just like a real TV did. Would be nice to get that on 3DS but doesn't really matter as it looks great anyway.
 

miesals

New Member
Newbie
Joined
Apr 12, 2019
Messages
2
Trophies
0
Age
33
XP
86
Country
Denmark
but horizontally it's possible to enable 240x800 mode, and have double the horizontal resolution, but sadly for the DS that still won't result in integer scaling :/

I remember hearing years back that this could theoretically be used to improve the GBA image quality. Is something like this still in the cards, or is it one of those cases where the problem is too hard and there isn't enough knowledge/manpower to do something like this?
 

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,821
Trophies
2
Location
home
XP
9,320
Country
Hungary
I remember hearing years back that this could theoretically be used to improve the GBA image quality. Is something like this still in the cards, or is it one of those cases where the problem is too hard and there isn't enough knowledge/manpower to do something like this?

Well don't expect it to be in TWPatch. There are multiple layers of graphics drivers, and both software and hardware bugs make it impossible to embed mode800 into Nintendo's code.

Other than that, I still need to figure out the correct DMA chain for scanline tripling, preferably without using the GPU at all.
The idea is to have the image rotated, then scaling it "vertically", then once that upscaling is done, do three DMA chains to copy that upscaled image to the framebuffer three times in such a way, so that the scanlines align up, and it's integer scaling.
I don't know if the programmable DMA controller is even capable of this feature, hopefully it is, otherwise I'd have to write a GPU driver to use this feature, which I want to avoid, as the GPU hangs at basically anything you throw at it wrong.
 
  • Like
Reactions: miesals

just456

Member
Newcomer
Joined
Dec 7, 2022
Messages
6
Trophies
0
Age
21
XP
50
Country
Netherlands
Can I get some help with using the patcher? I heard that you can use this to deal with the screen tearing issue that GBArunner2 has.
 

Moogley

New Member
Newbie
Joined
May 10, 2023
Messages
4
Trophies
0
Age
31
XP
69
Country
United States
I'm so sorry in advance for my absolute noobery, but I've been sifting through dozens of pages of this thread and I can't find a clear guide to just patching TW and playing DS games with the filters.

Is it as simple as installing TWPatch.cia through FBI and that's it? Do I need to configure, move, or update anything, or NOT do anything? Thanks for any help - I have zero hacking experience, so I'm just trying to find a clear guide to this.
 

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,821
Trophies
2
Location
home
XP
9,320
Country
Hungary
Where can I get the latest version with the gba scaling modes?

https://gbatemp.net/download/twpatch.37400/

Hold Y when opening TWPatcher.

I'm so sorry in advance for my absolute noobery, but I've been sifting through dozens of pages of this thread and I can't find a clear guide to just patching TW and playing DS games with the filters.

Is it as simple as installing TWPatch.cia through FBI and that's it? Do I need to configure, move, or update anything, or NOT do anything? Thanks for any help - I have zero hacking experience, so I'm just trying to find a clear guide to this.

You have to open TWPatcher, select the filter with DPAD, and press START.

If you didn't configure Luma3DS, power off your 3DS, hold down SELECT, keep holding it, then power on your 3DS. Once the screen turns on, release SELECT, and enable patching and module loading. Press START to save.
 

NyaakoXD

( ͡° ͜ʖ ͡°)
Member
Joined
Dec 16, 2013
Messages
1,851
Trophies
2
Location
In your closet...
XP
3,644
Country
United States
Well don't expect it to be in TWPatch. There are multiple layers of graphics drivers, and both software and hardware bugs make it impossible to embed mode800 into Nintendo's code.

Other than that, I still need to figure out the correct DMA chain for scanline tripling, preferably without using the GPU at all.
The idea is to have the image rotated, then scaling it "vertically", then once that upscaling is done, do three DMA chains to copy that upscaled image to the framebuffer three times in such a way, so that the scanlines align up, and it's integer scaling.
I don't know if the programmable DMA controller is even capable of this feature, hopefully it is, otherwise I'd have to write a GPU driver to use this feature, which I want to avoid, as the GPU hangs at basically anything you throw at it wrong.
Would this also help with the DS side?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Sicklyboy @ Sicklyboy: 112TB in this photo 😎😎