elgopher / pi

The retro game development engine for Go, inspired by Pico-8 and powered by Ebitengine.
MIT License
39 stars 0 forks source link

Improve performance of drawing "Play" button in the browser #106

Open elgopher opened 1 year ago

elgopher commented 1 year ago

Until audio is initialzed Pi shows the "Play" button in the browser. It looks like drawing the image on each Draw using Ebitengine is gpu-intensive operation.

elgopher commented 1 year ago

One possible solution is to use sync.Once