GX_SetTextureCopy

Discussion in '3DS - Homebrew Development and Emulators' started by elhobbs, Aug 30, 2015.

  1. elhobbs
    OP

    elhobbs GBAtemp Advanced Fan

    Member
    807
    296
    Jul 28, 2008
    United States
    Has anyone been able to get GX_SetTextureCopy to work - if so can someone point me to an example?
     
  2. zoogie

    zoogie simple pimp tool

    Member
    6,494
    8,346
    Nov 30, 2014
    United States
  3. elhobbs
    OP

    elhobbs GBAtemp Advanced Fan

    Member
    807
    296
    Jul 28, 2008
    United States
    Last edited by elhobbs, Aug 30, 2015
  4. machinamentum

    machinamentum GBAtemp Regular

    Member
    163
    450
    Jul 5, 2015
    United States
    memcpy can be really efficient at copying memory but fact of the matter is that it takes time (a lot of time) to get memory into the CPU from main memory and it takes time to write it back to main memory. The GPU suffers this same problem and quite often a 1024x1024 texture takes a long time to draw from main memory and quite often VRAM textures will be many many times faster.

    One of my favorite quotes on this problem (on x64 PC's):
    "We can execute 36 instructions in a single cycle and it takes 100 cycles to get a byte of memory into the CPU. We have a problem."
     
    Last edited by machinamentum, Aug 30, 2015