ebiten/internal/shareable
Hajime Hoshi 9c408dce7c shareable: Lazy allocation (#592)
Clear is called when an image becomes a render target, and it
looks like Clear causes the memory spikes.

Before this change, when an image is created, shared region on a GL
texture is allocated. After that, the image's region is copied to
non-shared region when the image becomes a rendering target.

After this change, an image is not allocated on a GL texture first,
and allocated only when it is necessary. Then, Clear calls can be
avoided as much as possible.
2018-04-29 18:51:51 +09:00
..
shareable_test.go shareable: Lazy allocation (#592) 2018-04-29 18:51:51 +09:00
shareable.go shareable: Lazy allocation (#592) 2018-04-29 18:51:51 +09:00