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


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 1193 1194 1195 1196 1197

XFB fix for single-core mode
View New Posts | View Today's Posts

Thread Rating:
  • 3 Vote(s) - 2.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
XFB fix for single-core mode
04-22-2009, 09:50 AM (This post was last modified: 04-23-2009, 08:53 PM by Luigi__.)
#1
Luigi__ Offline
Dolphin Dev
***
Posts: 61
Threads: 6
Joined: Apr 2009
The text homebrews take forever to load without XFB enabled. XFB only worked in dual-core mode. I did a small fix that makes it work in single-core mode as well.

I modified the Video_UpdateXFB() function in the OGL plugin (main.cpp, line 321). The changed lines are prefixed with '+++'.

Code:
void Video_UpdateXFB(u8* _pXFB, u32 _dwWidth, u32 _dwHeight, s32 _dwYOffset, bool scheduling)
{
    if (g_Config.bUseXFB && XFB_isInit())
    {
        if (scheduling) // from CPU in DC without fifo&CP (some 2D homebrews)
        {
            XFB_SetUpdateArgs(_pXFB, _dwWidth, _dwHeight, _dwYOffset);
            g_XFBUpdateRequested = TRUE;
        }
        else
        {
            if (_pXFB) // from CPU in SC mode
+++            {
                XFB_Draw(_pXFB, _dwWidth, _dwHeight, _dwYOffset);
+++                g_VideoInitialize.pCopiedToXFB();
+++            }
            else // from GP in DC without fifo&CP (some 2D homebrews)
            {
                XFB_Draw();
                g_XFBUpdateRequested = FALSE;
            }
        }
    }
}

Is it right? Or has it already been tried but dropped it didn't work?

EDIT: attached a patch. I had to upload it as a text file. Rename it to 'xfb_single_core.patch' .


Attached Files
.txt   xfb_single_core.txt (Size: 409 bytes / Downloads: 260)
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
XFB fix for single-core mode - Luigi__ - 04-22-2009, 09:50 AM
RE: XFB fix for single-core mode - LuisR14 - 04-22-2009, 09:57 AM
RE: XFB fix for single-core mode - Luigi__ - 04-22-2009, 10:06 AM
RE: XFB fix for single-core mode - LuisR14 - 04-22-2009, 10:08 AM
RE: XFB fix for single-core mode - Luigi__ - 04-23-2009, 07:42 AM
RE: XFB fix for single-core mode - DacoTaco - 04-23-2009, 07:21 PM
RE: XFB fix for single-core mode - Luigi__ - 04-23-2009, 08:21 PM
RE: XFB fix for single-core mode - DacoTaco - 04-23-2009, 08:23 PM
RE: XFB fix for single-core mode - Luigi__ - 04-23-2009, 08:53 PM
RE: XFB fix for single-core mode - DacoTaco - 04-23-2009, 11:20 PM
RE: XFB fix for single-core mode - Luigi__ - 04-24-2009, 12:41 AM
RE: XFB fix for single-core mode - nosound97 - 04-24-2009, 01:00 AM
RE: XFB fix for single-core mode - DacoTaco - 04-24-2009, 01:33 AM
RE: XFB fix for single-core mode - Luigi__ - 04-24-2009, 01:46 AM
RE: XFB fix for single-core mode - nosound97 - 04-24-2009, 01:48 AM
RE: XFB fix for single-core mode - Luigi__ - 04-24-2009, 01:50 AM
RE: XFB fix for single-core mode - nosound97 - 04-24-2009, 01:53 AM
RE: XFB fix for single-core mode - Luigi__ - 04-24-2009, 01:56 AM

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


Users browsing this thread: 2 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode