Kodi Community Forum
Performance question regarding percentages. - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Performance question regarding percentages. (/showthread.php?tid=193244)



Performance question regarding percentages. - Hitcher - 2014-04-26

How much of a speed difference would using percentages for nearly all positions/dimensions be in a skin?

Thanks.


RE: Performance question regarding percentages. - jmarshall - 2014-04-26

If you could measure it you'd be doing well IMO. It's a multiplication on skin load and that's it. Compared to the thousands of other commands executed for each control, it'll be well and truly in the noise.


RE: Performance question regarding percentages. - Hitcher - 2014-04-26

That's all I needed to know before starting another skin. Wink

Thanks.


RE: Performance question regarding percentages. - da-anda - 2014-04-26

@jmarshall - this sounds like it's a one time conversion/calculation on load, but what about window resizing? Won't the percentages adjust to the new window dimensions?


RE: Performance question regarding percentages. - jmarshall - 2014-04-27

If XBMCs window is resized, then all that happens is the final scaling from "skin resolution" to screen coordinates changes. That's done regardless of the coordinate system used in the skin.

At the moment there is no "dynamic" positioning should group controls change their size/positioning etc.