lyze237 / gdx-TinyVG

TinyVG parser and renderer for libGDX
https://svg-to-tvg-server.fly.dev/
Apache License 2.0
25 stars 3 forks source link

Mark a tvg as dirty instead of recomputing all positions every draw call #7

Closed lyze237 closed 2 years ago

lyze237 commented 2 years ago

Currently we recalculate all positions based on the tvgs position and viewport every frame.

This is obviously "slow", therefore we should implement a "dirty" system, where the tvg keeps track if something changed (position, scale, line width scale, viewport) and updates itself once instead of every frame.

lyze237 commented 2 years ago

Implemented in c5786f4a9772468954d175469e9915172c403223