Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How blitting works
#2
Hi!
That's the reason, it's fixed point math. On low-end hardware, integer math is much faster than floating point. So the fractional accumulation is done in 16.16 fixed point, that is 16 bits for integer part, and another 16 bits for decimal part.
However I'll check it, as I would rather write "(offset >> FIXED_BITS)" than "offset / (1 << FIXED_BITS)". This piece of code is quite old and I may be missing something right now
Reply


Messages In This Thread
How blitting works - by vonhoff - 02-22-2024, 06:28 AM
RE: How blitting works - by megamarc - 02-23-2024, 04:57 PM
RE: How blitting works - by vonhoff - 02-23-2024, 06:40 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)