Users browsing this thread: 1 Guest(s)
Expanded palette hack

#14
Posts: 383
Threads: 34
Thanks Received: 10
Thanks Given: 13
Joined: Dec 2018
Reputation: 18
Status
Moog
(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. Tongue

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)."
  Find
Quote  



Messages In This Thread
Expanded palette hack - by Eggers - 09-12-2014, 11:10 PM
RE: Expanded palette hack - by SSJ Rick - 09-15-2014, 09:55 PM
RE: Expanded palette hack - by Gi Nattak - 11-19-2019, 07:18 PM
RE: Expanded palette hack - by Odbarc - 11-24-2019, 11:45 PM
RE: Expanded palette hack - by ScarabEnigma - 11-24-2019, 11:48 PM
RE: Expanded palette hack - by Odbarc - 11-26-2019, 03:17 PM
RE: Expanded palette hack - by assassin - 11-26-2019, 12:01 AM
RE: Expanded palette hack - by Gi Nattak - 11-26-2019, 02:22 AM
RE: Expanded palette hack - by assassin - 11-26-2019, 02:44 AM
RE: Expanded palette hack - by assassin - 12-05-2019, 04:52 PM
RE: Expanded palette hack - by Gi Nattak - 11-26-2019, 11:33 AM
RE: Expanded palette hack - by assassin - 11-28-2019, 12:26 AM
RE: Expanded palette hack - by C-Dude - 11-29-2019, 12:53 PM
RE: Expanded palette hack - by assassin - 11-29-2019, 11:01 PM
RE: Expanded palette hack - by C-Dude - 11-30-2019, 12:23 AM
RE: Expanded palette hack - by Gi Nattak - 12-01-2019, 09:57 PM
RE: Expanded palette hack - by assassin - 12-02-2019, 02:55 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite