From afe515fd6dab94573b0bd9c6a1e0b64a0796883b Mon Sep 17 00:00:00 2001 From: pommicket Date: Thu, 26 Jan 2023 13:46:21 -0500 Subject: fix tiny bug also turns out it *wasn't* my dodgy code that was slow- it was just the shader compiling --- src/main.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index fa5e8f3..64a8171 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,3 @@ -/* -@TODO: -- is it the function generation or the shader compililng that's slow for large functions? -- record a cool video -*/ - #![windows_subsystem = "windows"] extern crate chrono; extern crate nalgebra; @@ -256,7 +250,7 @@ impl Settings { /// returns true if the settings were changed. pub fn reload_if_modified(&mut self) -> bool { if self.get_modified_time() != self.file_last_modified { - self.reload().is_err() + !self.reload().is_err() } else { false } -- cgit v1.2.3