Skip to content

Commit

Permalink
feat: added optional profiling to gl version
Browse files Browse the repository at this point in the history
  • Loading branch information
BigJk committed Dec 10, 2023
1 parent 1e6d515 commit 55c2e6c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmd/game_win/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import (
zone "github.com/lrstanley/bubblezone"
"image/color"
"math"
"net/http"
_ "net/http/pprof"
"os"
"time"
)
Expand Down Expand Up @@ -60,6 +62,13 @@ func initSystems(hasAudio bool) {
}

func main() {
// Start profiling server
if env := os.Getenv("EOE_PROFILE"); env != "" {
go func() {
http.ListenAndServe(":8080", nil)
}()
}

vi := viper.Viper{
SettingsName: "settings_gl",
}
Expand Down

0 comments on commit 55c2e6c

Please sign in to comment.