Commit Graph

10 Commits

Author SHA1 Message Date
Hajime Hoshi
f32a3154de buffered: Bug fix: Set and some functions before the main loop caused wrong results
invalidatePendingPixels was not called properly.

Fixes #1081
2020-02-16 19:10:10 +09:00
Hajime Hoshi
ccab797473 buffered: Bug fix: Resolve pixels when DrawTriangles is called before the main loop
Fixes #1052
2020-01-11 04:29:55 +09:00
Hajime Hoshi
a3146024c3 buffered: Bug fix: Needed to copy pixels when buffering
Updates #983
2019-12-19 01:20:12 +09:00
Hajime Hoshi
35436ea504 buffered: Bug fix: reset the flag when invalidating the pending pixels
Updates #977
2019-11-09 05:55:44 +09:00
Hajime Hoshi
9673feda9b buffered: Bug fix: Resolve pixels only when Set is called
Fixes #977
2019-11-09 05:44:41 +09:00
Hajime Hoshi
5027bc1af5 buffered: Allow Set before the game runs
Fixes #949
2019-10-12 03:13:29 +09:00
Hajime Hoshi
3cf867035d buffered: Do not delay commands if possible
Delaying commands causes memory allocations, which can be heavy
especially on browsers.

This avoids to use 'defer' for performance.
2019-09-27 03:27:47 +09:00
Hajime Hoshi
3291ec51bb buffered: Use a raw function to avoid allocating structs 2019-09-27 00:37:31 +09:00
Hajime Hoshi
fc3e8bebe4 Use 0-length slice instead of nil to keep capacities 2019-09-27 00:34:55 +09:00
Hajime Hoshi
79b32c7601 graphics: Add buffered package
Moved the command queue to the package.
2019-09-21 22:34:37 +09:00