Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000284MPfmUI | Custom Controls | Windows (WinForms)public2012-02-07 19:292012-02-15 19:39
Reporterycastonguay 
Assigned Toycastonguay 
PriorityimmediateSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version0.5.1.0 
Target Version0.5.2.1Fixed in Version0.5.2.1 
Summary0000284: Cache font objects in every control
DescriptionWhen changing to the EmbeddedFont structure in the 0.5.1.0 version, I forgot to cache the font objects. This has an impact on CPU for updating song position because the OnPaint event is called every 10ms (see related issue).
TagsNo tags attached.
Attached Files

- Relationships
related to 0000283resolvedycastonguay The CPU usage is way too high when updating the UI with the current song position 

-  Notes
(0000417)
svn (developer)
2012-02-15 19:38

The user admin has checked in files related to this issue (revision 309).

Comment:
MPfm 0.5.2.1
- Added a font cache to every control. This further optimizes CPU usage when refreshing the UI often.

Related to issue 0000284.

Files modified:
U MPfm/branches/current/MPfm.WindowsControls/Audio/OutputMeter.cs
U MPfm/branches/current/MPfm.WindowsControls/Audio/WaveFormDisplay.cs
U MPfm/branches/current/MPfm.WindowsControls/Buttons-Toolbars/Button.cs
U MPfm/branches/current/MPfm.WindowsControls/Labels/Label.cs
U MPfm/branches/current/MPfm.WindowsControls/Labels/LinkLabel.cs
U MPfm/branches/current/MPfm.WindowsControls/Library/SongGridView.cs
U MPfm/branches/current/MPfm.WindowsControls/Panel-Forms/Panel.cs

(0000418)
ycastonguay (administrator)
2012-02-15 19:39

A further optimization could be to share the font resources between instances of the controls, but I'm not sure if this is possible.

- Issue History
Date Modified Username Field Change
2012-02-07 19:29 ycastonguay New Issue
2012-02-07 19:29 ycastonguay Status new => assigned
2012-02-07 19:29 ycastonguay Assigned To => ycastonguay
2012-02-07 19:29 ycastonguay Relationship added related to 0000283
2012-02-07 21:02 ycastonguay Target Version 0.5.2.0 => 0.5.2.1
2012-02-15 19:38 svn Checkin
2012-02-15 19:38 svn Note Added: 0000417
2012-02-15 19:39 ycastonguay Note Added: 0000418
2012-02-15 19:39 ycastonguay Status assigned => resolved
2012-02-15 19:39 ycastonguay Fixed in Version => 0.5.2.1
2012-02-15 19:39 ycastonguay Resolution open => fixed
2012-04-17 19:10 ycastonguay Category Controls => Windows Controls
2012-04-24 20:59 ycastonguay Category Windows Controls => UI | Windows | Custom Controls
2012-04-24 20:59 ycastonguay Category UI | Windows | Custom Controls => Custom Controls | Windows
2012-04-24 21:00 ycastonguay Category Custom Controls | Windows => UI | Custom Controls | Windows
2012-04-24 21:01 ycastonguay Category UI | Custom Controls | Windows => UI | Custom Controls | Windows (WinForms)


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker