Direct2D: program gets very slow and jassertfalse is hit

JUCE 8.0.1:
Windows 11

If I do not disable Direct2D (w.

Image spectrogramImage{ Image::RGB, widthOfTuneWindow, hightOfTuneWindow, true, **juce::SoftwareImageType{}** };
)

my program gets very slow.

Why can that be ?

Further when Direct2D is enabled, this line

spectrogramImage.clear(spectrogramImage.getBounds(), Colours::white);

results in hitting the jassertfalse in Direct2DPixelData::createLowLevelContext(). I can’t find out why that is.

Can it be because I have this def. also:

juce::Graphics spectrImGraphcs{ spectrogramImage };

where
Image spectrogramImage{ Image::RGB, widthOfTuneWindow, hightOfTuneWindow, true, juce::SoftwareImageType{} };

?

There’s been lots of changes in the graphics implementation on Windows since 8.0.1. Please try updating to the latest develop branch and let us know if you’re still seeing problems.

Thanks for the reply!

I’m sorry. It is 8.0.4 I have.

I think I found my “homemade” problems: I used spectrogramImage.clear(spectrogramImage.getBounds(), Colours::white);
for clearing the image and spectrImGraphcs to paint in the image. Changing spectrogramImage.clear(spectrogramImage.getBounds(), Colours::white); to spectrImGraphcs.fillAll(Colours::white); seems to have solved both my problems.


Eigil