Users browsing this thread: 1 Guest(s)
Expanded palette hack
11-30-2019, 12:23 AM
(11-29-2019, 11:01 PM)assassin Wrote:C-Dude Wrote:Am I understanding you correctly? This reduces the processing time any time a byte needs to have its bits reversed?yes, provided there's a second byte that needs its bits reversed at the same time. this optimization intersperses the two reversals; each shift or rotate now does double duty.
Quote:The way you described this, it sounds like this optimization would be beneficial even if the palette hack isn't in place.to be sure, the optimization you describe, not the one you quoted. the latter was in the "elsewhere and unrelated" section of my post.
Oh, I'm sorry about that! I read your post the other day, but didn't get around to responding. Your last paragraph originally talked about saving cycles, I thought I was quoting that when I responded. I meant to quote "that'll save (7 * 8) - 5 + 3 = 54 cycles per loop iteration (of 64)."
« Next Oldest | Next Newest »
|
||||
Users browsing this thread: 1 Guest(s)