I noticed that my application's memory working set was getting out of control when I move the mouse a lot.
Pinpointed it to some newly added AttributedString::draw I put in a paint method.
Steps to reproduce:
- Get Juce tip
- Go to JuceDemo::MainWindow.cpp::paintListBoxItem a.draw line (line 179)
- Wrap it in a 100 iterations for-loop.
- Compile, start the demo and rapidly swap menu items (keyboard or mouse) (I just swapped between the Welcome! and the Shortcut Keys items with the up/down arrow keys).
- Watch the working set soar into oblivion.
(Note: Adding the loop just amplifies the effect - if you're patient enough you can spot it without the loop).
Reproduced in both Debug and Release modes
Using Windows 8.1 Update 1, Visual Studio 2013 Update 2
Does not reproduce in OS X (10.9 / Xcode 6)