pi icon indicating copy to clipboard operation
pi copied to clipboard

Improve performance of drawing "Play" button in the browser

Open elgopher opened this issue 2 years ago • 1 comments

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 avatar Sep 02 '23 11:09 elgopher

One possible solution is to use sync.Once

elgopher avatar Sep 04 '23 19:09 elgopher