Homebrew GX_SetTextureCopy

elhobbs

Well-Known Member
OP
Member
Joined
Jul 28, 2008
Messages
1,044
Trophies
1
XP
3,030
Country
United States
Last edited by elhobbs,

machinamentum

Well-Known Member
Member
Joined
Jul 5, 2015
Messages
163
Trophies
0
XP
549
Country
United States
thanks - stupid assumption on my part. Looks like source needs to be in linear address space. linear to linear works as expected.
edit: and really slow - I thought it would be faster than memcpy. doesnt appear to be the case.
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,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: good night