Commit Graph

8444 Commits

Author SHA1 Message Date
Artem Yadelskyi
5b53cef59e
all: remove old // +build comments (#2431)
Closes #2325
2022-11-03 12:55:14 +09:00
Hajime Hoshi
40c7f2869b update Oto to v2.4.0-alpha.5 2022-11-02 21:47:25 +09:00
Hajime Hoshi
137619e165 .github/workflows: add GOOS=js check for govulncheck 2022-11-02 13:50:51 +09:00
Hajime Hoshi
0153faef09 .github/workflows: bug fix: wrong GOOS for govulncheck 2022-11-02 13:25:04 +09:00
Hajime Hoshi
88af59e468 .github/workflows: separate the vulnerability check to vuln.yml 2022-11-02 13:19:05 +09:00
Hajime Hoshi
b3a93c66b0 ebiten: remove a comment 2022-11-02 13:05:11 +09:00
Hajime Hoshi
4c5f019db3 ebiten: add TestImageSetAndSubImage
Updates #2428
2022-11-02 12:35:21 +09:00
Hajime Hoshi
0660c4ea8a ebiten: add ColorM.ReadElements
Updates #2171
Closes #2347
2022-11-02 02:57:14 +09:00
Hajime Hoshi
84289a06ba ebiten: update comments about Set
Set no longer loads pixels from GPU.
2022-11-02 02:09:43 +09:00
Hajime Hoshi
8aacf067dd all: use x/sys/execabs instead of os/exec
Closes #2418
2022-11-01 23:36:57 +09:00
Hajime Hoshi
083835af9a ebiten: fix comments 2022-11-01 13:28:54 +09:00
Hajime Hoshi
8d854cbb82 ebiten: rename ColorSclaeFormat -> ColorScaleMode 2022-11-01 13:09:52 +09:00
Hajime Hoshi
e237a70135 ebiten: refactoring: use struct{} to save memory 2022-10-31 23:58:41 +09:00
Hajime Hoshi
8919bc809a ebiten: refactoring: compile-time check 2022-10-31 23:36:07 +09:00
Hajime Hoshi
0bd2030be7 .github/workflows: do not update tags when editing an issue
This doesn't work well?
2022-10-31 14:36:00 +09:00
Hajime Hoshi
3eff8bcfa3 ebiten: add TestImageColorMScale 2022-10-31 14:35:26 +09:00
Hajime Hoshi
b966190b34 update Oto 2022-10-31 13:52:45 +09:00
Hajime Hoshi
1b3696a7ff internal/graphicsdriver/opengl: fix comments 2022-10-31 12:59:27 +09:00
Hajime Hoshi
a5993f09a2 internal/graphicscommand: refactoring: add preserved uniform variables at the graphicscommand package
This is a preparation to skip setting unnecessary uniform variables
like dstRegion.

Updates #2232
2022-10-30 22:30:52 +09:00
Hajime Hoshi
72bdd690a1 .github/workflows: use github/issue-labeler@v2.5 2022-10-30 16:35:26 +09:00
Hajime Hoshi
690e73c11b all: replace reflect.SliceHeader with unsafe.Slice
Closes #2420
2022-10-30 12:25:30 +09:00
Hajime Hoshi
6aa2edd244 .github/workflows: bug fix: -tags was needed for go-vet 2022-10-30 12:06:31 +09:00
Hajime Hoshi
4dcc961139 .github/workflows: bug fix: wrong filepath 2022-10-30 12:03:52 +09:00
Hajime Hoshi
3ced2ec6c7 .github/workflows: enable go-vet on Windows
Updates #1306
2022-10-30 12:00:44 +09:00
Hajime Hoshi
ac61126473 internal/graphicscommand: always flush buffers
After #2423 is fixed, buffers should be able to be flushed safely
anytime.

Updates #2391
Updates #2423
2022-10-30 10:51:41 +09:00
Hajime Hoshi
b096ba700a internal/graphicscommand: bug fix: clear buffers when disposing an image
Closes #2423
2022-10-30 03:38:53 +09:00
Hajime Hoshi
5eceabd172 Revert "internal/graphicscommand: bug fix: flush image buffers"
This reverts commit d6910eb9ab.

Reason: The wasm flakiness occured again

Updates #2391
Updates #2423
2022-10-30 02:32:28 +09:00
Hajime Hoshi
d6910eb9ab internal/graphicscommand: bug fix: flush image buffers
This is basically a revert for 4d5b608d0c.
This caused a crash on Windows.

Even after this fix, the browser tests seem no longer flaky, but
I am not 100% sure.

Updates #2391
Closes #2423
2022-10-30 02:21:56 +09:00
Hajime Hoshi
f89f99a2bc update Oto 2022-10-30 01:11:58 +09:00
Hajime Hoshi
059dddf7f7 update dependencies
This is a reland of b752a6ca28.
2022-10-30 00:49:02 +09:00
Hajime Hoshi
c00d348c3d .github/workflows: clean up 2022-10-29 23:31:36 +09:00
Hajime Hoshi
ee595659e7 Revert "internal/gamepad: remove dependency on golang.org/x/sys/unix"
This reverts commit 046f7e52a3.

Reason: As we drop Go 1.16, we no longer have to remove this dependency.

Updates #2421
2022-10-29 23:23:13 +09:00
Hajime Hoshi
606ff77d89 all: drop Go 1.16 and Go 1.17 supports
Updates #2421
2022-10-29 23:22:10 +09:00
Hajime Hoshi
6b8aeda55f update bitmapfont to v2.2.2
Closes #2411
2022-10-29 22:31:20 +09:00
Hajime Hoshi
26b5bb4b2c Revert "update dependencies"
This reverts commit b752a6ca28.

Reason: compile error with Go 1.16 for Windows:

```
Error: ../../../go/pkg/mod/golang.org/x/sys@v0.1.0/windows/syscall.go:84:16: undefined: unsafe.Slice
Error: ../../../go/pkg/mod/golang.org/x/sys@v0.1.0/windows/syscall_windows.go:141:29: undefined: unsafe.Slice
```
2022-10-29 21:52:05 +09:00
Hajime Hoshi
b752a6ca28 update dependencies
This is a reland of these commits:

 * fd1788710c
 * 5565893f2f

Now Ebitengine doesn't use golang.org/x/sys/unix, Go 1.16 should be
able to compile Ebitengine.
2022-10-29 21:45:50 +09:00
Hajime Hoshi
046f7e52a3 internal/gamepad: remove dependency on golang.org/x/sys/unix 2022-10-29 21:42:08 +09:00
Hajime Hoshi
90e2250d17 update GLFW 2022-10-29 21:27:43 +09:00
Hajime Hoshi
6eb599ad00 Revert "update dependencies"
This reverts these commits
* 5565893f2f
* fd1788710c

Reason: golang.org/x/sys uses unsafe.Slice:

```
Error: ../../../go/pkg/mod/golang.org/x/sys@v0.1.0/unix/syscall.go:83:16: undefined: unsafe.Slice
Error: ../../../go/pkg/mod/golang.org/x/sys@v0.1.0/unix/syscall_linux.go:2255:9: undefined: unsafe.Slice
Error: ../../../go/pkg/mod/golang.org/x/sys@v0.1.0/unix/syscall_unix.go:118:7: undefined: unsafe.Slice
Error: ../../../go/pkg/mod/golang.org/x/sys@v0.1.0/unix/sysvshm_unix.go:33:7: undefined: unsafe.Slice
```
2022-10-29 19:23:25 +09:00
Hajime Hoshi
5565893f2f update dependencies 2022-10-29 19:20:05 +09:00
Hajime Hoshi
fd1788710c update dependencies 2022-10-29 19:19:00 +09:00
Hajime Hoshi
ac08ebe080 internal/ui: set SwapInterval(0) when resizing the window
This mitigates flickering at least on macOS with OpenGL.

Updates #2144
2022-10-29 17:49:32 +09:00
Hajime Hoshi
ac6843639d ebiten: undeprecate SetVsyncEnabled / IsVsyncEnabled
This change deprecates FPSMode and SetFPSMode.

Closes #2342
2022-10-29 01:16:08 +09:00
Hajime Hoshi
066029539e internal/ui: clean-up code
A callback is preferred to a dirty flag.

Updates #2341
2022-10-28 19:07:37 +09:00
Hajime Hoshi
b019a3723a internal/ui: optimize GPU usages when the screen doesn't have to be updated
This change skips rendering when 1) the screen is not cleared every frame
(`SetScreenClearedEveryFrame(false)`) and 2) Draw doesn't draw anything
onto the screen. The GPU usages decreased on some machines (e.g. GPU usage
was 10% with an empty Ebitengine project and became 2-3 % on a Windows
machine).

Updates #2341
2022-10-28 18:51:06 +09:00
Hajime Hoshi
fcda4143a5 .github/ISSUE_TEMPLATE: simplify templates 2022-10-28 00:24:21 +09:00
Hajime Hoshi
d1e4b82862 .github/workflows/issue-labeler: fix escaping 2022-10-27 23:20:44 +09:00
Hajime Hoshi
55684a83d9 .github/workflows/issue-labeler: fix escaping 2022-10-27 23:18:54 +09:00
Hajime Hoshi
ced03589cc .github/workflows/issue-labeler: update 2022-10-27 23:01:27 +09:00
Hajime Hoshi
49b28f4547 .github/workflows/issue-labeler: update 2022-10-27 22:56:49 +09:00