GUI: introduce power-saving mode
This commit is contained in:
parent
dd8df45519
commit
ef6e63239c
5 changed files with 41 additions and 2 deletions
|
|
@ -890,6 +890,7 @@ void FurnaceGUI::drawPattern() {
|
|||
|
||||
// particle simulation
|
||||
ImDrawList* fdl=ImGui::GetForegroundDrawList();
|
||||
if (!particles.empty()) WAKE_UP;
|
||||
for (size_t i=0; i<particles.size(); i++) {
|
||||
Particle& part=particles[i];
|
||||
if (part.update(frameTime)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue