• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Game Modifications › Cheats, Hacks, & Game Patches v
« Previous 1 ... 3 4 5 6 7 ... 17 Next »

Disabling "antialiasing" in games
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Disabling "antialiasing" in games
09-04-2020, 08:07 PM
#1
raynoxu Offline
Junior Member
**
Posts: 2
Threads: 1
Joined: Sep 2020
Dear people of this forum.

This is my first post here but i have an idea how to improve framerates on android by alot. If you would check games such as harry potter and the sorcerers stone or simpsons hit and run, they run at 60fps 720p no problem on my device, but weirdest thing happens on some other games such as NFS most wanted or NFS underground 2, to some extent Mario sunshine. If you would have a closer look the need for speed games both use some sort of fake antialiasig effect (which i found by reading is just some post processing effect, not actual AA). Seen explanation on https://www.reddit.com/r/emulation/comments/5oob6z/emulating_antialiasing_how_does_it_work/
Quote:Dolphin Developer
phire
25 points
·
3 years ago
So... AntiAliasing on the Gamecube...

As /u/JMC4789 mentioned, the Gamecube does have a 3x MSAA mode, basically nothing uses it, because the disadvantages are too large (the framebuffer is now 640x264, so you have to render the frame in two halfs to get a full 640x480 image).

Back in the dark ages before it was feasible to do SSAA and MSAA, game developers achieved 'AntiAliasing' through a simple post-processing blur effect.

GameCube developers relied on a few natural and unnatural sources of blur for this "AntiAliasing".

The Deflicker filter: A 3 line configurable vertical blur during EFB to XFB copy.
During the copy, it mixes the values for each pixel with the pixel above it and the pixel below it. Melee actually has a menu option to enable and disable this feature.

Color Subsampling: A 3 pixel horizontal blur during EFB to XFB copy.
After converting from RGB to YUV it mixes the color channels (U and V) with the color channels from the pixels to each side (hard-coded to 25% left, 50% center, 25% right). It then subsamples by 50% (tosses away every second U or V pixel).
This only applies to the color channels, the Luma channel (black and white) is untouched at this stage. But when your TV converts from YUV back to RGB, you will get some amount of blur.

Scanout resampling: A linear resampling during digital to analog conversion, aka more horizontal blur.
Most games render a 640px or 604px wide framebuffer. But the digital to analog pixel outputs 710 pixels per line. Most games add some kind of black bars, but unless the game has massive black bars (See Melee) there will still be some resampling, which slightly mixes pixel colors together, causing more horizontal blur.

The Composite cable: Analog filtering, resulting in more horizontal blur.
Rapid changes in the luma (black and white) channel will cause color artifacts to appear, so there are special filters to smooth these out, which you guessed it, results in more horizontal blur. And same thing on the color channels, those have even less bandwidth. Using component cables should eliminate this blur.

Your TV: Old CRT TVs are actually quite blurry, both horizontally and vertically.
And even your modern LCD will use a bilinear filter for upscaling, which is technically more blur.

I've been meaning to calculate exactly what this blur looks like, but you can probably get a very similar effect just by applying a gaussian blur to a screenshot from dolphin. If you work out a good set of blur settings, I'll be happy to add an equivalent post-processing shader to dolphin.

So if it's possible to disable this effect in either dolphin OR in patches for each game that uses this techniquie we should see great FPS improvements atleast on android. I have tried this on Super smash bros melee and disabling that deflicker option improves the fps/stability a lot for me. So if anyone knows where i can start with this on my own or someone already knows how to do this lemme know Smile
Find
Reply
09-04-2020, 08:51 PM
#2
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,682
Threads: 7
Joined: Oct 2014
The deflicker filter can be disabled by turning on Graphics > Hacks > Disable Copy Filter. (The Android GUI acts as if this setting is off if you haven't yet set it, but it's actually on by default despite what the GUI tells you. I should fix that at some point...)

The conversion from RGB to YUV is only done if you disable Graphics > Hacks > Store XFB Copies to Texture Only, which is a very slow setting to disable for other reasons anyway.

The other sources of blur mentioned in phire's post are not emulated in Dolphin.
Find
Reply
09-04-2020, 10:14 PM
#3
raynoxu Offline
Junior Member
**
Posts: 2
Threads: 1
Joined: Sep 2020
(09-04-2020, 08:51 PM)JosJuice Wrote: The deflicker filter can be disabled by turning on Graphics > Hacks > Disable Copy Filter. (The Android GUI acts as if this setting is off if you haven't yet set it, but it's actually on by default despite what the GUI tells you. I should fix that at some point...)

The conversion from RGB to YUV is only done if you disable Graphics > Hacks > Store XFB Copies to Texture Only, which is a very slow setting to disable for other reasons anyway.

The other sources of blur mentioned in phire's post are not emulated in Dolphin.

I tried what you said, and compared HP with NFS both at 2x res, its still obvious that NFS is applying some kind of blur effect that kills the look and FPS. I'm wondering if this can be disabled by applying a gecko patch, as it doesnt seem to be affected by delphin settings. Sorry if its dooublepost, its been ages i used forums, my reply didnt work somewhy. 
https://ibb.co/fSrn7kt

https://ibb.co/N31GBWV
https://ibb.co/PFMWrXy
https://ibb.co/6rLpbYV
Find
Reply
09-05-2020, 12:04 AM
#4
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,682
Threads: 7
Joined: Oct 2014
I'm not sure what Need for Speed is doing, then. I would assume that it's possible to get rid of it with a Gecko code, but I don't know how hard such a Gecko code would be to make.

Also, all three of your posts did go through. However, posts made by new users don't show up until they've been approved by a moderator, which is why you didn't see them immediately. I've approved one of them now (and removed the rest since they all say essentially the same thing).
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode