4 ms·
Would it not be more efficient to produce the correctly scaled bitmaps once, then cache the output?
by tehmaco 12y ago
Would it not be more efficient to produce the correctly scaled bitmaps once, then cache the output?
- tormeh 12y agoYeah, just render it on resolution change.
- bitL 12y agoIt's not that simple. Normally you render significantly upscaled stuff in an off-screen buffer and then downscale it for the best possible appearance for every single frame. There are some ratios you need to keep, or you'd end up with Linux-style graphics "quality" (try scaling factor other than 1.0). If you just scale icon/bitmap once without thinking about this, it would look most likely ugly after upscaling/downscaling steps (unless you got lucky).