Jake Bentvelzen
4cb79888fe
graphics: Clear mipmap map to avoid unnecessary allocation ( #799 )
...
This change uses a pattern that Go 1.11+ compilers can optimize to a clear operation
https://github.com/golang/go/blob/master/doc/go1.11.html#L447
2019-01-27 21:30:30 +09:00
Hajime Hoshi
3ac1996f9d
clock: Avoid overflow by using time duration on Windows
2019-01-27 17:31:30 +09:00
Hajime Hoshi
3691083cee
clock: Use a more precise timer on Windows
...
This change is based on @silbinarywolf's change:
https://github.com/hajimehoshi/ebiten/issues/798#issuecomment-457822280
Fixes #798
2019-01-26 21:16:35 +09:00
Hajime Hoshi
5b63f45f4c
go mod tidy
2019-01-25 11:45:50 +09:00
Hajime Hoshi
b380bc6353
Update GopherWasm version
2019-01-25 11:37:29 +09:00
Hajime Hoshi
1f4e593099
graphics: Add comments
2019-01-25 03:04:25 +09:00
Hajime Hoshi
18daa04173
Reland: graphics: Use math.Ceil for the screen framebuffer size ( #622 )
...
This is reland of 0b60471ac0
.
I thought this didn't take any effect, but I confirmed this
actually fixed (part of) the blinking-line problem on Xperia XZ.
This fixes the upper side thin line. I'm not sure this fixes the
lower side thin line, which is reported but I couldn't reproduce.
I expect this and e829e650f2
will
fix the reported problem, and I am going to confirm this.
2019-01-25 02:50:55 +09:00
Hajime Hoshi
b5ee209e0b
graphics: Bug fix: Filter was not used when SourceRect is used
2019-01-24 14:22:53 +09:00
Hajime Hoshi
b65a3d372b
affine: Add ColorM.Scale tests
2019-01-23 02:50:30 +09:00
Hajime Hoshi
54019a4735
affine: Improve speed of ScaleOnly
2019-01-23 02:10:59 +09:00
Hajime Hoshi
2b0dff197e
restorable: Fix comments ( #793 )
2019-01-22 23:33:56 +09:00
Hajime Hoshi
158f4fb3ed
restorable: Bug fix: Reading pixels from a volatile image might fail
...
Fixes #793
2019-01-22 03:35:54 +09:00
Hajime Hoshi
837571d05c
graphics: Refactoring
2019-01-22 02:07:20 +09:00
Hajime Hoshi
4ce850df70
graphics: Bug fix: Resolve pixels before the screen is cleared
...
Fixes #792
Clearing the screen is so special on some environments (like macOS
Metal) that other operations on other images can be invalidated.
This fixes the issue by resolving the pixels of the offscreen that
is used as a render source for the screen before the screen is
cleared. We are not sure this is a correct way, but this actually
fixes the problem on macOS.
2019-01-22 01:44:51 +09:00
Hajime Hoshi
15b13c8b62
graphics: Fix comments to be more precise
2019-01-22 00:18:32 +09:00
Hajime Hoshi
8f3ef39d74
graphics: Fix some comments to adjust 80 chars in one line
2019-01-21 11:58:41 +09:00
Hajime Hoshi
29211238d3
graphics: Misspelling again
2019-01-21 11:24:43 +09:00
Hajime Hoshi
234f29e5f6
graphics: Misspelling
2019-01-21 11:22:35 +09:00
Hajime Hoshi
92d6c6bc58
graphics: Fix documents about DrawImage and ColorM
2019-01-21 11:19:23 +09:00
Hajime Hoshi
ec08a75332
restorable: Add assertions
2019-01-21 02:17:09 +09:00
Hajime Hoshi
e2cfb2da6f
restorable: Fix comments
2019-01-21 00:41:54 +09:00
Hajime Hoshi
eeb8fea778
restorable: Bug fix: dummyImage must be restored first
...
Fixes #791
2019-01-21 00:36:53 +09:00
Hajime Hoshi
4d05baf97c
examples/contextlost: Bug fix: dummyImage must belong to theImages
2019-01-21 00:11:34 +09:00
Hajime Hoshi
ae2d863e9c
Add Windows bulding on Travis CI ( #739 )
...
This change adds commands just building Ebiten as Windows binaries.
This is not a perfect test but much better than no tests.
2019-01-20 17:45:51 +09:00
Hajime Hoshi
aa2919ada4
graphics: Add comments about DrawImage
2019-01-20 03:27:02 +09:00
Hajime Hoshi
7dafbb2e4e
examples/sinewave: Bug fix: Sinewave volume was too small
2019-01-20 02:17:10 +09:00
Hajime Hoshi
10cb0bba5f
graphics: Add documentation about texture atlas size
2019-01-19 22:14:50 +09:00
Hajime Hoshi
c1c0306471
graphics: Update the document about DrawImage
2019-01-19 22:14:04 +09:00
Hajime Hoshi
79b5712410
examples/sinewave: Refactoring (return the copied bytes)
2019-01-19 18:42:39 +09:00
Hajime Hoshi
808f512a7d
examples/sinewave: Refactoring
2019-01-19 18:36:03 +09:00
Hajime Hoshi
55e9a861d0
ui: Bug fix: isRunning should never be 'false' even after Run on GopherJS
2019-01-19 03:29:07 +09:00
Hajime Hoshi
58cc5cb105
graphics: Better error message for At and Set ( #790 )
2019-01-19 02:59:22 +09:00
Hajime Hoshi
dd59d8ae6e
Fix comments
2019-01-19 02:30:06 +09:00
Hajime Hoshi
78ed824351
graphics: Make verticesBackend concurrent safe
...
Fixes #789
2019-01-19 02:06:50 +09:00
Hajime Hoshi
e829e650f2
graphics: Always clear the screen framebuffer
...
This fixes the issue on Xperia Z3, but not on Xperia XY
2019-01-18 12:21:01 +09:00
Hajime Hoshi
9046c0fb00
Update go.sum
2019-01-17 23:40:53 +09:00
Hajime Hoshi
248f51cc02
ui: Fix comments
2019-01-17 23:40:33 +09:00
Hajime Hoshi
fd4cdd445c
graphicsdriver/opengl/gl: Unexport or remove C symbols ( #786 )
2019-01-17 22:16:47 +09:00
Hajime Hoshi
9da54db1d9
Revert "graphics: Use math.Ceil for the screen framebuffer size"
...
This reverts commit 0b60471ac0
.
Reason: This doesn't have any effect.
2019-01-17 11:21:03 +09:00
Hajime Hoshi
0d84d8dccb
Revert: graphics: Use an even number for screen height offset
...
This reverts a82201cfe8
.
I think this change does not make sense.
2019-01-16 23:50:11 +09:00
Hajime Hoshi
0b60471ac0
graphics: Use math.Ceil for the screen framebuffer size
...
There are glitches on some mobile devices like Xperia. As the
screen framebuffer size might not fit with the actual GL surface
size, we guessed that is the cause of the glitches.
By using math.Ceil, the screen framebuffer will be a little bigger
and can cover the GL surface.
2019-01-16 23:41:52 +09:00
Hajime Hoshi
645b94de5f
ui: Bug fix: actualScreenScale must be called on the main thread
2019-01-16 23:32:47 +09:00
Hajime Hoshi
f16f6cf4b9
audio/internal/convert: Add Float32Reader and NewReaderFromFloat32Reader
2019-01-15 11:46:31 +09:00
Hajime Hoshi
13f6549cb6
audio/vorbis: Remove duplicated decoded data
...
There was duplicated decoded date in audio/vorbis package and Ogg
decoder package. This change removes this duplication and reduces
memory usage.
2019-01-15 03:52:27 +09:00
Hajime Hoshi
5cd66b6d6b
examples/audio: Remove unused functions
2019-01-15 02:13:18 +09:00
Hajime Hoshi
5a612f60b6
examples/audio: Bug fix: Do not close after Run
...
Now Run can return immediately on GopherJS.
In general, graceful shutdown should not be expected since there
is no 'end' phase on some environments.
Fixes #784
2019-01-15 02:11:23 +09:00
Hajime Hoshi
ea29637fda
examples/set: Use color.RGBA
2019-01-14 20:04:58 +09:00
Hajime Hoshi
67ce6c57c4
Add examples/set
2019-01-14 19:31:07 +09:00
Hajime Hoshi
107dfe5074
graphics: Improve Set speed
...
On GopherJS, copying a struct is very heavy. This change avoids
copying (color) structs when possible.
2019-01-14 04:25:43 +09:00
Hajime Hoshi
6b110bf99e
graphics: Better implementation of Set
2019-01-14 04:07:26 +09:00