GUI: introduce power-saving mode

This commit is contained in:
tildearrow 2022-04-16 18:35:25 -05:00
parent dd8df45519
commit ef6e63239c
5 changed files with 41 additions and 2 deletions

View file

@ -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)) {