BR: fillRectList doesn't work under Direct2D

Using fillRectList

Using for (auto r : lines) g.fillRect(r);

Works fine under software renderer

Code to reproduce: juce_bugs/MidiKeyboard/Source/MainComponent.h at master · FigBug/juce_bugs · GitHub

Did anybody get a chance to look into this?

Sorry, been out of town and then of course I got sick from traveling.

Thanks for the example; I can reproduce it.

Matt

1 Like

It’s because of the half-pixel height. I’ll give it some thought.

This should sort it out.

Matt

1 Like

This appears to fix the issue, any chance on getting it merged into official juce repo?

See Direct2D Causes Considerable Performance Drop - #69 by reuk

I think they will update all Direct2D things at once. Still waiting for it.

1 Like

Thanks for your patience.

The fix is now on develop:

1 Like