performance - C++ GUI Development - Bitmap vs. Vector Graphics CPU Usage -
I am currently developing for some audio applications designed in GII and using C ++ (using Jus Framework) I am in the process of doing
So far, I'm playing with the use of bitmap graphics to create custom sliders and dials using 'film strip' style pictures to animate the components (which means that when a user Interrupts with the slider, it triggers a method that changes the offset of a film-strip image to change the appearance of the components). Depending on the size of the original image and the number of 'frames', the CPU usage level varies significantly dramatically.
First of all, what would be the most efficient bitmap file format to use in terms of CPU consumption? I am currently using PNG images.
Secondly, would it be more efficient to use vector graphics for such graphical components? I understand the main difference between bitmap and vector graphics, but I have not got any information about my CPU utilization levels regarding GUI interaction.
Or CPU usage special methods / functions / libraries / frameworks are being used?
Thank you!
or CPU
None of these things may also affect it.
Pixel-based images may take some time to read the discs as large as they are. It may take longer to uncompress compressed types, it may take more time to render the vector when it loads. .
It's being said, I definitely would not expect that the image type will have an effect on the performance of your choice. Since you have not provided a code example, it is difficult to speculate beyond that.
In general, you expect the run-time cost of images when they are loaded. So whenever you make an image, if you make a picture at all places, then it is probably expensive that your film strip is reproducing images instead of loading them and caching them.
Comments
Post a Comment