hajimehoshi / ebiten

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

internal/restorable: remove `ImageTypeVolatile` #3090

Open hajimehoshi opened 1 week ago

hajimehoshi commented 1 week ago

Operating System

What feature would you like to be added?

Now we have Hint which is for optimization when overwriting some regions on a target texture, an image which is cleared every frame should no longer be stale. Thus, we don't need a notion of being volatile. In order to simplify the code, let's try to remove this.

Why is this needed?

To simplify the code.

hajimehoshi commented 1 week ago

an image which is cleared every frame should no longer be stale

Unfortunately this is not true when too many draw calls happen on the same image.