ebiten/internal/atlas
Hajime Hoshi 1ae5e022b6 internal/atlas: change when to count up usedAsDestinationCount
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
2023-08-06 13:27:28 +09:00
..
export_test.go internal/atlas: use texture atlases for rendering destinations 2023-03-01 02:47:01 +09:00
image_test.go all: refactoring: use image.Rectangle 2023-04-28 01:03:38 +09:00
image.go internal/atlas: change when to count up usedAsDestinationCount 2023-08-06 13:27:28 +09:00
shader_test.go all: refactoring: use image.Rectangle 2023-04-28 01:03:38 +09:00
shader.go all: add a compiler directive kage:unit 2023-04-23 22:11:57 +09:00