Hajime Hoshi
83f93df78b
Add 'ebitengl' build tag to force to use GL
...
Fixes #958
2019-10-13 16:58:33 +09:00
Hajime Hoshi
5027bc1af5
buffered: Allow Set before the game runs
...
Fixes #949
2019-10-12 03:13:29 +09:00
Hajime Hoshi
1b011e3864
graphics: Bug fix: unexpected panic at Set with an out-of-range position
2019-10-12 02:28:55 +09:00
Hajime Hoshi
cbe4844fa0
Fix misspellings
2019-10-12 01:10:53 +09:00
Hajime Hoshi
c30918261b
gofmt -s -w
2019-10-12 01:09:42 +09:00
Hajime Hoshi
d488fd7fcb
mobile/ebitenmobileview: Refactoring: touches
2019-10-11 23:12:05 +09:00
Hajime Hoshi
5973833274
mobile/ebitenmobileview: Refactoring
2019-10-11 22:49:28 +09:00
Hajime Hoshi
12d0f273ec
mobile/ebitenmobileview: Allow to call update before start
...
This fixes an issue that Update on another thread returns error
when SetGame is not called. As SetGame is permitted to be called
later, Update should not return error.
2019-10-11 22:14:19 +09:00
Hajime Hoshi
1f56266027
cmd/ebitenmobile: Bug fix: Use even numbers for the position/size
...
Fixes #956
2019-10-11 10:53:42 +09:00
Hajime Hoshi
4bfe60fb8a
graphicsdriver/metal: Bug fix: SetFragmentBytes must be called anytime
...
Fixes #954
2019-10-10 03:13:55 +09:00
Hajime Hoshi
01cb6e67b8
mobile/ebitenmobileview: Bug fix: Compile error on Android
2019-10-09 23:03:22 +09:00
Hajime Hoshi
3c976eae02
cmd/ebitenmobile: Use Metal on iOS
...
The emulators still use OpenGL.
Fixes #737
2019-10-09 02:13:47 +09:00
Hajime Hoshi
17d7a33676
Add David Linus Briemann to AUTHORS
2019-10-09 00:56:48 +09:00
David Linus Briemann
9082edf03f
Add new example: squirals ( #952 )
2019-10-09 00:54:23 +09:00
Hajime Hoshi
de7ae1aee8
Add go vet
to .travis.yml
...
Updates #889
2019-10-07 03:12:19 +09:00
Hajime Hoshi
5b22a1218e
examples: Fix warnings in the examples
...
Updates #889
2019-10-07 03:05:26 +09:00
Hajime Hoshi
4088de5349
graphicsdriver/opengl/gl: Fix go-vet errors on Windows
...
Updates #889
2019-10-06 23:19:59 +09:00
Hajime Hoshi
3a0f8655e6
graphicsdriver/opengl/gl: Indentation
2019-10-06 23:02:15 +09:00
Hajime Hoshi
378be6be80
graphicsdriver/opengl/gl: Remove unused functions
...
This improves `go vet` results.
Updates #889
2019-10-06 22:49:38 +09:00
Hajime Hoshi
0d56207672
graphicsdriver/opengl/gl: Remove unnecessary consts
2019-10-06 04:27:57 +09:00
Hajime Hoshi
2d2da09b85
graphics: At doesn't have to discard pending pixels
2019-10-05 00:18:45 +09:00
Hajime Hoshi
4c90674e17
graphics: Keep pendingPixels not to read pixels from GPU unnecessarily
...
Fixes #947
2019-10-05 00:14:52 +09:00
Hajime Hoshi
7e7751bd43
restorable: Performance tuning
...
This is based on the result of examples/set (Wasm).
2019-10-04 02:02:36 +09:00
Hajime Hoshi
382f6365fd
shareable: Avoid defer for performance
2019-10-04 01:52:27 +09:00
Hajime Hoshi
fcca95dfa8
examples/set: Add FPS to see the performance
2019-10-04 01:51:26 +09:00
Hajime Hoshi
38ee9113ee
graphicsdriver/opengl/gl: Remvoe PtrOffset
...
Updates #889
2019-10-01 01:48:42 +09:00
Hajime Hoshi
248e7d9a5a
Remove language from .travis.yml
2019-09-30 01:45:49 +09:00
Hajime Hoshi
227ab12200
Download Go manually in .travis.yml
2019-09-30 01:03:49 +09:00
Hajime Hoshi
fccf8119ab
Update Go 1.12.9 to Go 1.12.10 in .travis.yml
2019-09-30 00:12:54 +09:00
Hajime Hoshi
ffbdda9a25
shareable: Avoid defer for performance
2019-09-29 03:50:43 +09:00
Hajime Hoshi
907302c440
graphicscommand: Keep the capacity at q.commands
2019-09-29 03:23:40 +09:00
Hajime Hoshi
86b4e9ffeb
restorable: Bug fix: Do not mutate graphics.QuadIndices
2019-09-29 02:57:11 +09:00
Hajime Hoshi
6c8c064a58
restorable: Add TestMutateSlices
2019-09-29 02:36:06 +09:00
Hajime Hoshi
9cb631e30f
Reland: graphics: Reuse vertices backend and reduce allocating
...
This is a reland of 74f1e5519f
.
The vertex slice is now copied before saving as the drawing
history items.
2019-09-29 01:36:00 +09:00
Hajime Hoshi
4feb0a4f3e
restorable: Bug fix: indices has to be copied
2019-09-29 01:30:26 +09:00
Hajime Hoshi
492149c463
Revert "graphics: Reuse vertices backend and reduce allocating"
...
This reverts commit 74f1e5519f
.
Reason: The vertex slice is used at restorable package without
copying.
2019-09-29 01:20:55 +09:00
Hajime Hoshi
706628d0c4
graphics: Remove println
2019-09-29 01:17:00 +09:00
Hajime Hoshi
df9458510d
graphics: Speed optimization at maxf32 and minf32
2019-09-29 00:55:24 +09:00
Hajime Hoshi
5e6bdc25e5
gofmt
2019-09-28 23:09:20 +09:00
Hajime Hoshi
f873b66267
graphicscommand: Reduce calling InternalWidth/InternalHeight
2019-09-28 23:03:11 +09:00
Hajime Hoshi
74f1e5519f
graphics: Reuse vertices backend and reduce allocating
2019-09-28 22:53:13 +09:00
Hajime Hoshi
791f96f980
graphicscommand: Reduce division operators
2019-09-28 02:31:04 +09:00
Hajime Hoshi
7bb2895415
clock: Avoid calling (js.Value).Get() for performance
2019-09-28 01:47:48 +09:00
Hajime Hoshi
9bb96a4012
mobile: Fix comments at SetGame
2019-09-27 11:28:48 +09:00
Hajime Hoshi
af6bda48c3
Reduce division operators
...
It looks like runtime.wasmDiv takes account for a big part at CPU
usages with examples/sprites.
2019-09-27 03:29:10 +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
59333ba1ad
jsutil: Avoid allocating ArrayBuffer unnecessarily
2019-09-26 23:59:00 +09:00
Hajime Hoshi
9a42b264fd
web: Speed optimization
2019-09-26 22:11:16 +09:00