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:
parent
8ab8bd733e
commit
26ff85ae94
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue