• 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 ... 564 565 566 567 568 ... 1198 Next »

ZTP speed hack?
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
ZTP speed hack?
05-19-2014, 04:08 AM (This post was last modified: 05-19-2014, 12:37 PM by mbc07.)
#13
purpasmart96 Offline
Member
***
Posts: 124
Threads: 8
Joined: May 2014
(05-19-2014, 02:08 AM)ExtremeDude2 Wrote: The hack has been removed
Um, I'm pretty sure everyone knows that

(05-18-2014, 03:54 PM)MaJoR Wrote: Actually the ZtP hack was removed because not only was it a hack, but mainly because it was a hack that finally got in the way of something the developers wanted to implement. Hence why it was removed then.
I beg to differ, this code works the same as when it's off since it's removal.
Code:
    if (g_ActiveConfig.bZTPSpeedHack)
    {
        if (!mapTexFound)
        {
            if (bp.address != BPMEM_TEV_COLOR_ENV && bp.address != BPMEM_TEV_ALPHA_ENV)
            {
                numWrites = 0;
            }
            else if (++numWrites >= 100)    // seem that if 100 consecutive BP writes are called to either of these addresses in ZTP,
            {                                // then it is safe to assume the map texture address is currently loaded into the BP memory
                mapTexAddress = bpmem.tex[0].texImage3[0].hex << 5;
                mapTexFound = true;
                WARN_LOG(VIDEO, "\nZTP map texture found at address %08x\n", mapTexAddress);
            }
            FlushPipeline();
        }
        else if ((bpmem.tex[0].texImage3[0].hex << 5) != mapTexAddress ||
            bpmem.tevorders[0].getEnable(0) == 0 ||
            bp.address == BPMEM_TREF)
        {
            FlushPipeline();
        }
    }  // END ZTP SPEEDUP HACK
    else
    {
        if (((s32*)&bpmem)[bp.address] == bp.newvalue)
        {
            if (!(bp.address == BPMEM_TRIGGER_EFB_COPY
                || bp.address == BPMEM_CLEARBBOX1
                || bp.address == BPMEM_CLEARBBOX2
                || bp.address == BPMEM_SETDRAWDONE
                || bp.address == BPMEM_PE_TOKEN_ID
                || bp.address == BPMEM_PE_TOKEN_INT_ID
                || bp.address == BPMEM_LOADTLUT0
                || bp.address == BPMEM_LOADTLUT1
                || bp.address == BPMEM_TEXINVALIDATE
                || bp.address == BPMEM_PRELOAD_MODE
                || bp.address == BPMEM_CLEAR_PIXEL_PERF))
            {
                return;
            }
        }

        FlushPipeline();
    }
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
ZTP speed hack? - purpasmart96 - 05-18-2014, 02:32 PM
RE: ZTP speed hack? - Shonumi - 05-18-2014, 02:48 PM
RE: ZTP speed hack? - purpasmart96 - 05-18-2014, 02:55 PM
RE: ZTP speed hack? - Shonumi - 05-18-2014, 03:03 PM
RE: ZTP speed hack? - purpasmart96 - 05-18-2014, 03:08 PM
RE: ZTP speed hack? - Shonumi - 05-18-2014, 03:37 PM
RE: ZTP speed hack? - JMC47 - 05-18-2014, 03:44 PM
RE: ZTP speed hack? - Shonumi - 05-18-2014, 03:53 PM
RE: ZTP speed hack? - MayImilae - 05-18-2014, 03:54 PM
RE: ZTP speed hack? - StripTheSoul - 05-18-2014, 07:36 PM
RE: ZTP speed hack? - bananaclawz - 05-19-2014, 01:52 AM
RE: ZTP speed hack? - ExtremeDude2 - 05-19-2014, 02:08 AM
RE: ZTP speed hack? - purpasmart96 - 05-19-2014, 04:08 AM
RE: ZTP speed hack? - JMC47 - 05-19-2014, 04:35 AM
RE: ZTP speed hack? - degasus - 05-19-2014, 07:21 AM
RE: ZTP speed hack? - purpasmart96 - 05-19-2014, 09:27 AM
RE: ZTP speed hack? - purpasmart96 - 05-20-2014, 08:10 AM
RE: ZTP speed hack? - purpasmart96 - 05-20-2014, 11:02 AM
RE: ZTP speed hack? - haddockd - 05-20-2014, 11:35 PM
RE: ZTP speed hack? - purpasmart96 - 05-21-2014, 01:40 AM
RE: ZTP speed hack? - purpasmart96 - 05-21-2014, 10:49 AM
RE: ZTP speed hack? - purpasmart96 - 05-22-2014, 08:19 AM
RE: ZTP speed hack? - mathieulh - 05-23-2014, 07:47 PM
RE: ZTP speed hack? - Duarian - 05-24-2014, 03:09 PM
RE: ZTP speed hack? - purpasmart96 - 05-25-2014, 05:54 AM
RE: ZTP speed hack? - JMC47 - 05-24-2014, 04:26 PM
RE: ZTP speed hack? - skid - 05-30-2014, 11:05 PM
RE: ZTP speed hack? - purpasmart96 - 05-31-2014, 01:38 AM
RE: ZTP speed hack? - StripTheSoul - 05-30-2014, 11:38 PM

  • 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