1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-24 01:54:22 +00:00

Demo app: Lowered the frame rate of the welcome screen to save power if people leave it running

This commit is contained in:
jules 2015-12-01 16:35:00 +00:00
parent 8ab8bd733e
commit 26ff85ae94

View file

@ -71,7 +71,7 @@ private:
{
LogoDrawComponent() : logoPath (MainAppWindow::getJUCELogoPath()), elapsed (0.0f)
{
startTimerHz (60); // try to repaint at 60 fps
startTimerHz (30); // repaint at 30 fps
}
void paint (Graphics& g) override
@ -107,7 +107,7 @@ private:
void timerCallback() override
{
repaint();
elapsed += 0.01f;
elapsed += 0.02f;
}
Path logoPath;