Quote:
Originally Posted by serge2k
thats why I set it to look for the difference between OR and XOR
00000000 | 10010000 = 10010000
00000000 ^ 10010000 = 10010000
You could be right but I'm really not seeing a case where my way doesn't work. The only time there is a difference between OR and XOR is when XOR unsets a bit which would be an erase.
The ghosting problem was because when I calculated the result of the XOR it wasn't being written back to the gmem array properly. don't know what was wrong with the code that was writing it back but the code I'm using now is much simpler and works.
|
Ah, sorry, I didn't see the OR condition.
On the other hand, I think you could just test for source == 1 and destin == 1 and you don't have to end up doing more logical operations (XOR and OR). Well, I guess that won't be such a hit to performance at this point, but just a note.
__________________
cChip interpreter WIP - current status: Release Candidate
LRx Filter RC - current performance rating: 9/10