mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
1ae5e022b6
An image has a counter to count how many times an image is used. Before this change, the counter was updated only when an image was moved from a source backend to a destination backend. This seemed not enough, and an image was likely moved to a source backend more often than necessary (#2676). However, there was also an issue that the counter was updated too aggressively and the image was unlikely moved from a destination to a source image (#2586). In order to resolve this dilemma, let's adopt an intermediate way: count up the counter at most once per frame. Updates #2586 Updates #2676 |
||
---|---|---|
.. | ||
export_test.go | ||
image_test.go | ||
image.go | ||
shader_test.go | ||
shader.go |