donotturnoff / display

0 stars 0 forks source link

RectangleBorder optimisations #20

Open donotturnoff opened 3 months ago

donotturnoff commented 3 months ago

We can optimise in these cases and possibly more:

donotturnoff commented 3 months ago

A big optimisation would be to render the top and bottom overhangs of the left and right along with the top and bottom borders. This would probably improve cache efficiency, would allow the break position calculations to be done once rather than twice, would make the code simpler, and would make the other optimisations simpler