ebiten/internal/graphicscommand
Hajime Hoshi 6e5361c328 internal/restorable: use clearImage to avoid allocations
Bytes from a pool in a command queue is now pretty hard to use correctly
as the lifetime of a queue is not clear.

Remove the byte pools once. Let's reconsider pool usages later.

This change also removes imagesWithBuffers as this is no longer needed.
imagesWithBuffers was necessary to ensure all the bytes from the pool
of the command queue was used before the queue flushes the commands,
as the command queue cleared the pool after flushing. The lifetimes
were pretty ticky.
2023-10-09 00:42:58 +09:00
..
command.go internal/graphicscommand: refactoring: add commandqueue.go 2023-10-08 19:54:28 +09:00
commandqueue.go internal/restorable: use clearImage to avoid allocations 2023-10-09 00:42:58 +09:00
doc.go Rename graphics -> graphicscommand 2018-10-28 20:10:05 +09:00
image_js.go all: replace interface{} with any (#2430) 2022-11-03 15:33:09 +09:00
image_notjs.go internal/graphicscommand: use bufio to make dumping images faster 2023-08-26 00:50:45 +09:00
image_test.go internal/graphicsdriver: replace Region with image.Rectangle (#2791) 2023-09-28 14:29:55 +09:00
image.go internal/restorable: use clearImage to avoid allocations 2023-10-09 00:42:58 +09:00
shader.go internal/graphicscommand: introduce commandQueuePool and commandQueueManager 2023-10-08 19:23:57 +09:00
thread.go internal/graphicsdriver: flush commands asynchronously whenever possible 2023-07-30 22:44:13 +09:00