Switch to Direct2D renderer on Windows

pull/249/head
James Ball 2024-06-22 12:03:59 +01:00 zatwierdzone przez James H Ball
rodzic 631df86a09
commit ea406551f8
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -5,8 +5,8 @@
OscirenderAudioProcessorEditor::OscirenderAudioProcessorEditor(OscirenderAudioProcessor& p)
: AudioProcessorEditor(&p), audioProcessor(p), collapseButton("Collapse", juce::Colours::white, juce::Colours::white, juce::Colours::white)
{
#if !JUCE_MAC
// use OpenGL on Windows and Linux for much better performance. The default on Mac is CoreGraphics which is much faster.
#if JUCE_LINUX
// use OpenGL on Linux for much better performance. The default on Mac is CoreGraphics, and on Window is Direct2D which is much faster.
openGlContext.attachTo(*getTopLevelComponent());
#endif

Wyświetl plik

@ -84,7 +84,7 @@ public:
bool usingNativeMenuBar = false;
#if !JUCE_MAC
#if JUCE_LINUX
juce::OpenGLContext openGlContext;
#endif