Page 1 of 1

Caching in a simple way and saving CPU

PostPosted: Mon Oct 15, 2018 7:17 pm
by wlangfor@uoguelph.ca
Though I realize it is not the most unique concept. After working with Synthmaker and Flowstone
I've realized how similar to working with DSP code is to say HTML and CSS.

Especially in the tense of re-utilizing images. Like for instance there was a time when coders would use something called
a spacer.gif; Or in the case of this forum the smilies used for instance are not many images but one image?

Furthermore to make image caching in HTML and CSS, all one has to do is to have a hidden element with the images
to be cached inside. Think to Yourself; Is that not unlike the preview modules?

It was only after trial and error that I had come upon this and I thought I would share that; But to also provide a tip regarding optimization I suggest You make sure to use the same image for many knobs that are the same type. All of My plugins are 2%CPU
or less and I know that might make Me seem kind of old school, if You really think about it - The good plugins are the ones You might
use 20-30 times in a track. And that is when CPU Saving becomes so prudent.

Here's some screenshots depicting that:
bitmaps linked.jpg
cached images
bitmaps linked.jpg (64.18 KiB) Viewed 9738 times


knob module within.jpg
example 2
knob module within.jpg (62.82 KiB) Viewed 9737 times


bitmaps linked 2.jpg
example 3
bitmaps linked 2.jpg (73.71 KiB) Viewed 9737 times