From 1964b3fa466c0de11c1f07333521dde8cc623ef9 Mon Sep 17 00:00:00 2001 From: "Randall C. O'Reilly" Date: Tue, 20 Aug 2024 16:30:32 -0700 Subject: [PATCH] move time.sleep to core go update plot --- egui/plots.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/egui/plots.go b/egui/plots.go index adfce9e..db9dad6 100644 --- a/egui/plots.go +++ b/egui/plots.go @@ -7,13 +7,10 @@ package egui import ( "fmt" "log" - "time" "cogentcore.org/core/base/errors" "cogentcore.org/core/colors/gradient" - "cogentcore.org/core/core" "cogentcore.org/core/plot/plotcore" - "cogentcore.org/core/system" "cogentcore.org/core/tensor/tensorcore" "github.com/emer/emergent/v2/elog" "github.com/emer/emergent/v2/etime" @@ -120,9 +117,6 @@ func (gui *GUI) GoUpdatePlot(mode etime.Modes, tm etime.Times) *plotcore.PlotEdi plot := gui.Plot(mode, tm) if plot != nil { plot.GoUpdatePlot() - if core.TheApp.Platform() == system.Web { - time.Sleep(time.Millisecond) // critical to prevent hanging! - } } return plot }