openAVproductions / openAV-Ctlra

A plain C library to program with hardware controllers.
BSD 3-Clause "New" or "Revised" License
79 stars 16 forks source link

Partial Screen Redraw and Callback API Modifications #74

Closed harryhaaren closed 6 years ago

harryhaaren commented 6 years ago

This commit has a large impact on how to use screens with Ctlra.

The new model is callback based, and allows the application to invalidate a "zone" of the screen, which in turn allows the driver/HW to optimize what bytes to send over the wire. This might sound like a lot of work (it is! : ) but it is required - doing full screen updates for higher-definitions screens at a good frame-rate just doesn't scale. So we're doing this right, not just the easy way.