hajimehoshi / ebiten

Ebitengine - A dead simple 2D game engine for Go
https://ebitengine.org
Apache License 2.0
10.96k stars 656 forks source link

graphics: Make (*Image).At available out of the main loop #790

Open hajimehoshi opened 5 years ago

hajimehoshi commented 5 years ago

The current problem is that on mobiles GL drivers are not available outside the loop.

This would require implementing a software graphics driver.

hajimehoshi commented 5 years ago

Currently At before Run might freeze, which is a bad behavior.

hajimehoshi commented 4 years ago

https://github.com/golang/go/issues/25255 is the blocker.

einthusan commented 3 years ago

I don't think this is related exactly to this issue, but this article does talk about the performance of image.At in Go and how he managed to fix it (which isn't clear) but improved performance. Please take a quick look, short article.

https://medium.com/@marek.michalik/c-vs-rust-vs-go-performance-analysis-945ab749056c

hajimehoshi commented 3 years ago

Thanks but this is not related.

hajimehoshi commented 1 year ago

Now a graphics library is determined at ebiten.Run, (*ebiten.Image).At is not available even if https://github.com/golang/go/issues/25255 is resolved. Probably a software driver would be the only one solution.