Browse Source

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

tags/2021-05-28
jules 10 years ago
parent
commit
26ff85ae94
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      examples/Demo/Source/IntroScreen.cpp

+ 2
- 2
examples/Demo/Source/IntroScreen.cpp View File

@@ -71,7 +71,7 @@ private:
{ {
LogoDrawComponent() : logoPath (MainAppWindow::getJUCELogoPath()), elapsed (0.0f) 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 void paint (Graphics& g) override
@@ -107,7 +107,7 @@ private:
void timerCallback() override void timerCallback() override
{ {
repaint(); repaint();
elapsed += 0.01f;
elapsed += 0.02f;
} }
Path logoPath; Path logoPath;


Loading…
Cancel
Save