by knuthsat · 5y ago · 0 comments
Why is PDF reader having trouble displaying 30MB of data?
It's even better than a 30MB of images, because images have to be decoded but vector graphics is just bytes at some point and you decide how to render them.
It's probably some accidentally quadratic behavior that struggles with 10000 vector objects.
Images are relatively well handled with GPUs, and with a precomputed mipmap they can be rescaled very quickly, unlike vector graphics which needs to be re-rendered each time zoom level is changed.
Why wouldn't you be able to send an array of stuff defining the curves, and an array of stuff defining the draw order to the gpu and just render it in a simple?