Mantis Bug Tracker

View Revisions: Issue #283 Back to Issue ]
Summary 0000283: The CPU usage is way too high when updating the UI with the current song position
Revision 2012-02-07 18:13 by ycastonguay
Description I'm not sure starting which version the CPU usage has gone quite high, but it seems to be around 0.5.1.0.

It is especially worse with 0.5.2.0. It is related to updating the UI with song position information. The label update seem to eat quite a lot of CPU.

The update timer interval can be changed from 10ms to a higher value, but that would be at the cost of having really smooth rendering.
Revision 2012-02-07 18:13 by ycastonguay
Description I'm not sure starting which version the CPU usage has gone quite high, but it seems to be around 0.5.1.0.

It is especially worse with 0.5.2.0. It is related to updating the UI with song position information. The label update seem to eat quite a lot of CPU.

I tried removing the transparent background for the labels, it helps a little, but maybe adding a cache would help (not creating a brush and font object for every draw).

The update timer interval can be changed from 10ms to a higher value, but that would be at the cost of having really smooth rendering.


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker