Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Duff's devices
#1
Hi!
I watched a video about Duff's devices today. It is sadly in french but I can send you some articles about it.
https://en.wikipedia.org/wiki/Duff%27s_device
https://www.geeksforgeeks.org/duffs-device-work/
It is very interesting, and I wonder if we can use this technique to optimize Tilengine even further. Imagine being able to draw X pixels in a single row, then do a check, without needing the window width to be a multiple of X?
Reply
#2
Hi!

Thanks for the post, it's an interesting technique to gain performance. Blitters should benefit from this approach, because they're tight loops with one or two checks per pixel (coverage and length), and that's where most of CPU time is spent. I'll test next week and post performance results here.

Regards,
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)