Saving space when drawing rectangles
Re: Saving space when drawing rectangles
we're glad you're here :)
Re: Saving space when drawing rectangles
Per location where the code is used. To save 8 bytes of data ram. So it all depends on what you have most, live data at any point , or places where you could them.jj2007 wrote:Absolutely: 20 bytes to call the converter, 26 for the converter itself, that's a whopping 46 bytes.marcov wrote:Code size eats up ram and disk too.
So yes, if you have a tremendous amount of live records it might save some.
P.s. in opengl you could maybe use the geometry shader to unpack rectangles. I do have a program where I write tens of thousands of rectangles (and the unit tests use 130000), but it is opengl. My original version did that iirc, converting gl_short coordinates to floats by dividing them by width/height uniforms in the geom shader.