mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-28 15:20:15 +00:00
Merge pull request #890 from TheKK/reduceCpuUsage
Invalidate Editor only when frame changed in PlayState
This commit is contained in:
commit
df6e97d98d
@ -141,10 +141,10 @@ void PlayState::onPlaybackTick()
|
||||
|
||||
m_editor->setFrame(frame);
|
||||
m_nextFrameTime += getNextFrameTime();
|
||||
m_editor->invalidate();
|
||||
}
|
||||
|
||||
m_curFrameTick = ui::clock();
|
||||
m_editor->invalidate();
|
||||
}
|
||||
|
||||
// Before executing any command, we stop the animation
|
||||
|
Loading…
Reference in New Issue
Block a user