Commit Graph

4707 Commits

Author SHA1 Message Date
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
Hajime Hoshi
b4969cccd7 cmd/ebitenmobile: Bug fix: Give environment variables to search the package name (gobind) 2019-09-23 19:12:20 +09:00
Hajime Hoshi
75c9f34374 cmd/ebitenmobile: Bug fix: Give environment variables to search the package name 2019-09-23 18:17:17 +09:00
Hajime Hoshi
c24b43099b mobile/ebitenmobileview: Allow Layout without SetGame 2019-09-23 16:54:33 +09:00
Hajime Hoshi
dfb89e13e3 mobile/ebitenmobileview: Fix error messages 2019-09-23 15:55:31 +09:00
Hajime Hoshi
899fc38d23 Add wasm test with wasmbrowsertest
Fixes #881
2019-09-23 02:45:37 +09:00
Hajime Hoshi
045c743021 Update Oto version to v0.5.0 2019-09-23 01:07:26 +09:00
Hajime Hoshi
33c7f39f0f graphicsdriver/opengl/gl: Exclude all the files for Wasm
Fixes #938
2019-09-23 00:42:54 +09:00
Hajime Hoshi
175caa7319 Test Go 1.13 at TravisCI 2019-09-22 23:43:18 +09:00
Hajime Hoshi
ea6a25f594 cmd/ebitenmobile: Add linker options
This change suppresses the linker error that the .so file is not
found.

Fixes #932
2019-09-22 20:58:04 +09:00
Hajime Hoshi
79b32c7601 graphics: Add buffered package
Moved the command queue to the package.
2019-09-21 22:34:37 +09:00
Hajime Hoshi
0a872b342a shareable: Change the argument to color.RGBA at Fill
The argument will be copied explicitly.
2019-09-21 21:16:46 +09:00