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
Hajime Hoshi
b355bc3c46
.github/ISSUE_TEMPLATE: update labels for feature requests
2022-10-27 17:51:01 +09:00
Hajime Hoshi
7fee6f45c8
.github/ISSUE_TEMPLATE: bug fix: syntax error
2022-10-27 17:36:45 +09:00
Hajime Hoshi
b51b1a2d4b
.github/ISSUE_TEMPLATE: bug fix: wrong template
2022-10-27 17:32:45 +09:00
Hajime Hoshi
9df8602a5b
.github: update the template for PRs
...
Updates #2405
2022-10-27 17:31:22 +09:00
Hajime Hoshi
14fabd19c1
.github/ISSUE_TEMPLATE: use input and checkboxes types
...
Updates #2405
2022-10-27 17:31:10 +09:00
Nathan Levett
0c38ca3760
.github: issues and pr templates and labeler workflow ( #2414 )
...
Closes #2405
2022-10-27 17:24:28 +09:00
Hajime Hoshi
52c8353169
.github/workflows: run govulncheck
...
Closes #2413
2022-10-27 15:40:56 +09:00
Hajime Hoshi
c54f60c3a7
.github/workflows: use a version suffix for go-install
2022-10-27 14:04:35 +09:00
Hajime Hoshi
6eb4b2762f
update dependencies
...
For https://pkg.go.dev/vuln/GO-2022-1059
Updates #2405
Updates #2411
2022-10-27 12:55:44 +09:00
Hajime Hoshi
62cbe99a27
cmd/ebitenmobile: bug fix: dead lock due to @synchronized
...
Closes #2407
2022-10-25 13:37:34 +09:00
Hajime Hoshi
2cf651bed8
internal/graphicsdriver/directx: resize the swap buffer chain at the end of a frame
...
Updates #2144
2022-10-25 00:35:09 +09:00
Nathan Levett
f220eb729c
internal/graphicsdriver/opengl: move OpenGL constants to seperate package ( #2408 )
...
Closes #2389
2022-10-24 23:22:14 +09:00
Hajime Hoshi
1906262ef4
audio/internal/convert: refactoring
2022-10-23 01:14:30 +09:00
Hajime Hoshi
3b7bc2fc57
internal/ui: remove unnecessary comments
2022-10-23 00:39:37 +09:00
Nathan Levett
18123a6336
audio/internal/convert: add a lazy-load getter for cosTable
( #2404 )
...
Closes #2286
2022-10-23 00:24:51 +09:00
Hajime Hoshi
fc2f999ebf
internal/ui: refactoring: separate globalState into a new file
2022-10-23 00:11:35 +09:00
Hajime Hoshi
6ba14fdb00
vector: rename functions
...
Fill* was confusing especially when the color is a transparent color.
Closes #2403
2022-10-22 20:29:31 +09:00
Hajime Hoshi
c79b2c793a
ebiten: update comments
2022-10-22 16:15:13 +09:00
Hajime Hoshi
422de70d59
internal/ui: bug fix: screenshot didn't include antialias renderings
2022-10-22 14:19:24 +09:00
Hajime Hoshi
c34c072efa
vector: change the specificatino of Path.ArcTo
...
Closes #2401
2022-10-22 02:03:27 +09:00
Hajime Hoshi
5e15bafde8
vector: add FillCircle
and StrokeCircle
...
Updates #2387
2022-10-22 01:24:51 +09:00
Hajime Hoshi
fa942c824f
vector: avoid adding too close points
...
Rendering a very thick arc caused some glitches. This change should
mitigate this issue.
2022-10-22 01:16:47 +09:00
Hajime Hoshi
6f7b1a81d7
vector: add StrokeLine
, FillRect
, and StrokeRect
...
Updates #2387
2022-10-21 22:35:01 +09:00
Hajime Hoshi
dbfacb243a
vector: bug fix: Arc added unexpected lines from (0, 0)
...
This change removes Path.cur.
2022-10-21 22:12:48 +09:00
Hajime Hoshi
c49db07e75
internal/ui: bug fix: wrong property name was used
...
Closes #2400
2022-10-21 21:37:27 +09:00