~andreas-pokorny/mir/configure-clear-color

Viewing all changes in revision 1325.

  • Committer: Tarmac
  • Author(s): Daniel van Vugt
  • Date: 2014-01-10 03:23:02 UTC
  • mfrom: (1300.4.26 texture-cache)
  • Revision ID: tarmac-20140110032302-k01lhun9uhg6gu3i
Cache surface textures on the GPU to eliminate duplicate uploads.

At the moment GLRenderer is unconditionally uploading a new copy of every
visible surface to the GPU, on every frame. This branch changes that to
only upload textures for visible surfaces when they change.

In a realistic GUI with multiple surfaces where most of them don't change
on every frame, this eliminates most of the texture copies. So performance
with multiple visible surfaces should be greatly increased.

Also resolves bug: LP: #1263592. Fixes: https://bugs.launchpad.net/bugs/1263592.

Approved by PS Jenkins bot, Alexandros Frantzis, Alan Griffiths, Robert Carr.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: