Wykres commitów

13 Commity (feature/ssf)

Autor SHA1 Wiadomość Data
Phil Howard e3a5365a39 PicoVector: Add tracked memory alloc, track the node buffer.
With a low GC threshold the node buffer was being collected (despite guards against this)
and causing further drawing operations to be corrupted.

Add a new tracked malloc method and use it for node buffers and font data.

Tweak pp_poly_add_path to accept a point count, avoiding many successive rellocs when
dealing with a known quantity of points (copying from an af_glyph_t.)
2025-05-08 16:28:11 +01:00
Mike Bell b285ad94d8 PicoVector: Faster polygon rendering. 2025-03-28 10:31:01 +00:00
Mike Bell 94ee06e01b PicoVector: Fix ppp arc memory corruption. 2025-03-28 10:31:01 +00:00
Mike Bell 4986537f5d PicoVector: Avoid clipping bottom right AA edges. 2025-03-28 10:31:01 +00:00
Phil Howard 8b32174fc9 PicoVector: Avoid MicroPython GC.
Since we're not using tracked allocation, any memory we don't explicitly
hold a reference to will be assumed unused by MicroPython's GC.

Pass up the pp_nodes and pp_node_counts points (hackily) to fix this.
2025-03-28 10:31:01 +00:00
Phil Howard 8f87e1c75f PicoVector: Remove * 4 from pp_nodes lookup. 2025-03-28 10:31:01 +00:00
Phil Howard 074570f99c PicoVector: Revert the tile buffer to be fixed.
Ensure that MicroPython doesn't ever place the tile buffer into PSRAM
and trash performance.
2025-03-28 10:31:01 +00:00
Phil Howard 1bf73a20cd PicoVector: Runtime buffer allocation. 2025-03-28 10:31:01 +00:00
Phil Howard aa9d03f0cb PicoVector: Prefix some pretty-poly variables. 2025-03-28 10:31:01 +00:00
Phil Howard daa6603d1b PicoVector: Big refactor, ppp primitives.
* Remove Polygon types in favour of primitives .circle, .rectangle etc
* Add a new Transform type for building up transformation matrices
* Add support to set/clear transform on drawing
2025-03-28 10:31:01 +00:00
Phil Howard 71bcc9d62c PicoVector: Rewrite around new linked-lists poly. 2025-03-28 10:31:01 +00:00
Phil Howard dd7d6262df PicoVector: Use tile renderer for all pens. 2025-03-28 10:31:01 +00:00
Phil Howard 4787460476 PicoVector: Vendor pretty-poly and tweak rotation. 2025-03-28 10:31:01 +00:00