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


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 5 6 7 8 9 ... 116 Next »

Wii Video Modes vs Rendering Resolution
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Wii Video Modes vs Rendering Resolution
11-11-2020, 02:27 PM
#1
Downcry Offline
Junior Member
**
Posts: 6
Threads: 2
Joined: Sep 2020
I’m trying to learn about how Wii video modes work.
My goal is to modify the N64 Virtual Console so that it renders in 240p.

Im also interested in the alternative of leaving the VC renderer intact but setting the Wii system resolution to 240p.

I’m not confident in my use of terminology, but my understanding is that Wii software writes to a framebuffer(?) which is distinct from the Wii’s video output. For instance, even when the system is set to 480i, games render internally at 480p before being output at 480i.

If that’s the case, then if I was somehow able to set the system resolution to 240p, a game would render at 480p and be scaled down to 240p when output.

This is less preferable to rendering at 240p, but it might be a simpler task.

I’m looking for any information that may help or point me in the right direction.
Find
Reply
11-11-2020, 08:36 PM
#2
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,835
Threads: 7
Joined: Oct 2014
(11-11-2020, 02:27 PM)Downcry Wrote: I’m not confident in my use of terminology, but my understanding is that Wii software writes to a framebuffer(?) which is distinct from the Wii’s video output.

Yes.

(11-11-2020, 02:27 PM)Downcry Wrote: For instance, even when the system is set to 480i, games render internally at 480p before being output at 480i.

This is the case for most games. It is however possible for a game to e.g. render at 240p and then upscale when outputting. There is also a very small number of games that actually render interlaced.

(11-11-2020, 02:27 PM)Downcry Wrote: If that’s the case, then if I was somehow able to set the system resolution to 240p, a game would render at 480p and be scaled down to 240p when output.

There is no system setting for 240p, so I'm assuming you are referring to the 240p video output mode. The 240p output mode is more or less the same as the 480i output mode but with slightly different scanline timings – things like the horizontal resolution are unchanged between the two. Because Dolphin doesn't attempt to accurately emulate a CRT, this difference in scanline timing is ignored by Dolphin and 480i output is essentially equivalent to 240p output in Dolphin.
Find
Reply
11-11-2020, 09:57 PM
#3
Downcry Offline
Junior Member
**
Posts: 6
Threads: 2
Joined: Sep 2020
JosJuice, Thank you for your response.

Where is the “video output mode” defined?
Is it defined in the apploader? or the main game executable? somewhere else?

I want to patch this, but I don’t know where to look.
Find
Reply
11-11-2020, 10:00 PM
#4
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,835
Threads: 7
Joined: Oct 2014
I believe it is set by the game's executable at some point. Exactly where and how it's set depends on the game.
Find
Reply
11-18-2020, 08:23 AM
#5
Nintendo Maniac 64 Offline
Posting Freak
*****
Posts: 826
Threads: 28
Joined: Jan 2011
(11-11-2020, 08:36 PM)JosJuice Wrote: There is no system setting for 240p, so I'm assuming you are referring to the 240p video output mode. The 240p output mode is more or less the same as the 480i output mode but with slightly different scanline timings – things like the horizontal resolution are unchanged between the two. Because Dolphin doesn't attempt to accurately emulate a CRT, this difference in scanline timing is ignored by Dolphin and 480i output is essentially equivalent to 240p output in Dolphin.

Apologies for hi-jacking this thread, but may I ask why it is then that 240p and 480i output in Dolphin isn't actually 100% the same and a teeny bit blurrier on 240p than 480i? (see attached screenshots; these were taking with Dolphin running at completely stock settings)


Attached Files Thumbnail(s)
       
Dolphin 5.0 CPU benchmark

CPU: Pentium G3258 @ 4.5GHz 1.24v
GPU: Intel integrated
RAM: 4x4GB Corsair Vengence @ DDR3-1600
OS: Linux Mint of some variety + [VM] Win7 SP1 x64 
Find
Reply
11-21-2020, 11:05 PM
#6
Downcry Offline
Junior Member
**
Posts: 6
Threads: 2
Joined: Sep 2020
(11-11-2020, 08:36 PM)JosJuice Wrote: Yes.


This is the case for most games. It is however possible for a game to e.g. render at 240p and then upscale when outputting. There is also a very small number of games that actually render interlaced.


There is no system setting for 240p, so I'm assuming you are referring to the 240p video output mode. The 240p output mode is more or less the same as the 480i output mode but with slightly different scanline timings – things like the horizontal resolution are unchanged between the two. Because Dolphin doesn't attempt to accurately emulate a CRT, this difference in scanline timing is ignored by Dolphin and 480i output is essentially equivalent to 240p output in Dolphin.

(11-18-2020, 08:23 AM)Nintendo Maniac 64 Wrote: Apologies for hi-jacking this thread, but may I ask why it is then that 240p and 480i output in Dolphin isn't actually 100% the same and a teeny bit blurrier on 240p than 480i? (see attached screenshots; these were taking with Dolphin running at completely stock settings)

Thank you for posting this.
I actually was unable to get dolphin to run at anything less than 480p.
I even tried playing a Wii game that is allegedly 480i only and it was definitely running in progressive mode somehow.
The game was Star Trek Conquest.
Find
Reply
11-21-2020, 11:51 PM
#7
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,835
Threads: 7
Joined: Oct 2014
Yes, Dolphin contains a little hack to always output as progressive even when the game says otherwise.
Find
Reply
11-22-2020, 07:53 AM
#8
Downcry Offline
Junior Member
**
Posts: 6
Threads: 2
Joined: Sep 2020
(11-21-2020, 11:51 PM)JosJuice Wrote: Yes, Dolphin contains a little hack to always output as progressive even when the game says otherwise.

Is it possible to disable this “hack”?
I need to debug 240p/480i.
Find
Reply
11-22-2020, 07:57 AM
#9
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,835
Threads: 7
Joined: Oct 2014
No, Dolphin currently doesn't have a code path for actually outputting interlaced video.
Find
Reply
11-23-2020, 01:43 AM
#10
AdmiralCurtiss Offline
Member
***
Posts: 115
Threads: 0
Joined: Feb 2015
I mean, you *can* technically, but it'll just cause the interlaced video frames to be output as if it was progressive, causing some extreme image jittering. If you're debugging that might be okay but don't actually expect to play a game that way. Check VideoInterface.cpp line 787.
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