Mir

Surface transformation matrix is recalculated every frame, using 6%xNsurfaces of mir's CPU time

Bug #1193020 reported by Thomas Voß
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Fix Released
Medium
Daniel van Vugt

Bug Description

The transformation matrix should only be recalculated if the transformation actually changed, avoiding unnecessary recalculations and saving CPU cycles.

Related branches

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

This sounds like it might be somewhat of a regression, due to:

revno: 646 [merge]
author: Daniel van Vugt <email address hidden>
committer: Tarmac
branch nick: trunk
timestamp: Wed 2013-05-01 17:04:08 +0000
message:
  Move all stages of the surface transformation into Surface::transformation(),
  so that it can be easily reused in future for mapping between world and
  surface space.

  Potential use cases are:
    1. Mapping mouse clicks into transformed windows accurately.
    2. Rendering shadow shapes accurately regardless of how a surface is
       transformed.
  .

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

Changed in mir:
assignee: nobody → Daniel van Vugt (vanvugt)
status: New → In Progress
Changed in mir:
importance: Undecided → Medium
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I only see mir::surfaces::Surface::transformation() using 6%, but that's still significant...

summary: - Surface transformation matrix is recalculated every time, using 18% of
+ Surface transformation matrix is recalculated every time, using 6% of
CPU in render
summary: - Surface transformation matrix is recalculated every time, using 6% of
- CPU in render
+ Surface transformation matrix is recalculated every frame, using 6% of
+ mir's CPU
summary: Surface transformation matrix is recalculated every frame, using 6% of
- mir's CPU
+ mir's time
Changed in mir:
milestone: none → 0.0.4
summary: - Surface transformation matrix is recalculated every frame, using 6% of
- mir's time
+ Surface transformation matrix is recalculated every frame, using at
+ least 6% of mir's time
summary: - Surface transformation matrix is recalculated every frame, using at
- least 6% of mir's time
+ Surface transformation matrix is recalculated every frame, using
+ 6%xNsurfaces of mir's CPU time
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:mir at revision None, scheduled for release in mir, milestone 0.0.4

Changed in mir:
status: In Progress → Fix Committed
Changed in mir:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.