[mythtv-commits] mythtv/master commit: a619d6090 by Mark Kendall (mark-kendall)

MythTV noreply at mythtv.org
Mon Mar 14 03:21:49 UTC 2011


      Author:  Mark Kendall <mkendall at mythtv.org>
 Change Date:  2011-03-13T20:21:26-07:00
   Push Date:  2011/03/13 20:21:40 -0700
  Repository:  mythtv
      Branch:  master
New Revision:  a619d6090277b7f12d7e60d31e1f44d495961c94
   Changeset:  https://github.com/MythTV/mythtv/commit/a619d6090

Log:

UI Painters: Track the software cache on the basis of memory used.

This brings the software cache in line with the hardware cache.

In summary, the overall UI image cache now works something like:-

Hardware cache (default 96Mb)

These are textures actually being used on screen and will be utilised by
both the 'software' and 'disk' cache below. Optimum cache size should be
some magical number based on screen size, amount of painter hardware
acceleration of images (reduces size of software cache), size and
overall number of UI images (think fan art) and amount of video memory
available. Replenishing the hardware cache should be relatively fast as
it is simply a matter of moving data from main memory to video memory.

Software cache (default 96Mb)

These are images which the painters have rendered. Repleneshing the
cache is slower as it involves physically drawing shapes (in software).
The software cache is bypassed when the UI painter can draw the images
in hardware (e.g. experimental GLSL OpenGL renderer).

Disk/MythUIImage cache (default 20Mb?)

These are pre-rendered UI images loaded from disk and scaled in main
memory as appropriate. Loading and scaling should be the slowest
operation.

Modified:

   mythtv/libs/libmythui/mythpainter.cpp
   mythtv/libs/libmythui/mythpainter.h



More information about the mythtv-commits mailing list