Hajime Hoshi
1ead096f67
uidriver/glfw: Bug fix: Need to call updateVsync after setWindowSize
...
Fixes #1363
2020-09-22 18:46:44 +09:00
Hajime Hoshi
9a3a72e0ec
cmd/ebitenmobile: Update gomobile version
...
Fixes #1336
2020-09-06 15:12:44 +09:00
Hajime Hoshi
6ef82b28b1
uidriver/mobile: Bug fix: Fix freezing on Pixel 4a by force calling DoWork
...
When the two channels don't receive for a while, call DoWork forcibly to avoid
freeze.
In theory, this timeout should not be necessary. However, it looks like this
'select' statement sometimes blocks forever on some Android devices like
Pixel 4(a). Apparently workAvailable sometimes not receives even though there
are queued OpenGL functions. Call DoWork for such case as a symptomatic
treatment.
Calling DoWork without waiting for workAvailable is safe. If there are no tasks,
DoWork should return immediately.
Updates #1322
Fixes #1332
2020-09-06 15:05:16 +09:00
Hajime Hoshi
eb1302b382
uidriver/mobile: Bug fix: Freeze on Pixel 4
...
An Ebiten application often freezes on Pixel 4. Apparently adding
loggings or runtime.Gosched hides the issue, though this doesn't fix
the root cause. The root cause might be in gomobile itself, but it
seeems really hard to make a minimum case.
As a tentative fix, add runtime.Gosched to avoid freezing.
Fixes #1322
2020-08-29 22:05:58 +09:00
Hajime Hoshi
69be2d9445
Update Oto version
...
Fixes #1280
2020-08-10 15:41:55 +09:00
Hajime Hoshi
70bfa32c0b
graphicsdriver/opengl: Bug fix: Build error on Android
...
Fixes #1266
2020-07-31 02:56:45 +09:00
Hajime Hoshi
2f1e431712
Update Oto version
2020-07-31 00:12:35 +09:00
Hajime Hoshi
d2bd8d56c0
graphicsdriver/opengl: Forbids PBO on Raspberry Pi 4 ( #1261 )
...
Fixes #1208
2020-07-23 19:16:49 +09:00
Hajime Hoshi
f794fc8d66
uidriver/glfw: Set No-API when creating a hidden window first
...
GLFW tries to create an OpenGL context by default when creating a
window. This is not necessary when OpenGL is not used. This is an
optimization by skipping to create an OpenGL context if possible.
Fixes #1237
2020-07-10 03:40:03 +09:00
Hajime Hoshi
7873563667
uidriver/glfw: Bug fix: SetVsyncEnabled(false) did not work before the main loop
...
Fixes #1197
2020-06-14 11:59:33 +09:00
Hajime Hoshi
be54f1d33c
cmd/ebitenmobileview: Bug fix: Crash when removing a gamepad
...
Fixes #1185
2020-06-09 23:43:59 +09:00
Hajime Hoshi
a66867007a
ebiten: Ensure that Update is called at least once before Draw in the first frame
...
Fixes #1155
2020-06-09 22:21:34 +09:00
Hajime Hoshi
93ebb03b3c
restorable: Bug fix: Fill didn't invalidate its dependencies
...
Fixes #1170
2020-05-25 23:50:06 +09:00
Hajime Hoshi
39ef1c38fe
uidriver/js: Bug fix: Create goroutine for a function passed to rAF
...
This is necessary not to cause dead-lock.
Updates #1161
2020-05-19 03:42:01 +09:00
Hajime Hoshi
90022a64b6
cmd/ebitenmobile: Bug fix: Specifying arches did not work
...
-target value should have been parsed correctly.
Fixes #1142
2020-04-23 12:41:21 +09:00
Hajime Hoshi
86c0e871e4
graphicscommand: Do not flush (glFlush) when commands are empty
...
Fixes #1140
2020-04-23 00:54:47 +09:00
Hajime Hoshi
2e2dc7fba4
buffered: Defer filling an image
...
This change defers filling an image so that successive fillings
can be merged into one for more efficient rendering.
Fixes #1134
2020-04-23 00:54:39 +09:00
Hajime Hoshi
ce912e54e3
cmd/ebitenmobile: Bug fix: -ldflags did not work correctly
...
Fixes #1139
2020-04-23 00:43:39 +09:00
Hajime Hoshi
99d1c4bfe9
buffered: Use the pending pixels when possible at At
...
(*Image).At can be unnecessarily slow since this tries to get
pixels from GPU. This change reduces the chance to read GPU by
using its pending pixels when possible.
Fixes #1137
2020-04-17 21:37:13 +09:00
Hajime Hoshi
0df2ebc5da
docs: Update the overview image for 1.11
...
Fixes #1131
2020-04-09 02:56:15 +09:00
Hajime Hoshi
839809a5d4
docs: Improve comments about Game
2020-04-01 14:45:12 +09:00
Hajime Hoshi
2ac8015165
docs: Fix wrong comments about RunGame
2020-04-01 14:41:14 +09:00
Hajime Hoshi
180663bf9b
docs: Improve the comments about Game
2020-04-01 14:35:39 +09:00
Hajime Hoshi
ba41c2a6ae
docs: Draw function's signature was wrong (again)
2020-04-01 04:25:47 +09:00
Hajime Hoshi
4f335c027e
docs: Draw function's signature was wrong
2020-04-01 04:24:29 +09:00
Hajime Hoshi
cd825f34f6
docs: Draw function definition was ommitted on godoc.org
2020-04-01 04:24:24 +09:00
Hajime Hoshi
97e3fce440
docs: Fix a wrong function name
2020-04-01 04:19:31 +09:00
Hajime Hoshi
76a6162051
ui: Forbid RestoreWindow when the window is not maximized nor minimized
...
Fixes #1124
2020-03-31 02:50:01 +09:00
Hajime Hoshi
66efe976d9
examples/windowsize: Bug fix: Nothing was rendered with -legacy mode
2020-03-31 02:22:40 +09:00
Hajime Hoshi
a6badee4f0
ui: Improve comments about Game interface
...
This change also fixes comments in uiConttext, which seems pretty
old.
2020-03-31 02:05:13 +09:00
Hajime Hoshi
b20acc3ed7
mobile: Game object without Draw didn't draw anything
...
Fixes #1123
2020-03-30 03:38:40 +09:00
Hajime Hoshi
f336380b90
Update version to v1.11.0-rc.1
2020-03-29 23:44:04 +09:00
Hajime Hoshi
4fe8d5c8c2
cmd/ebitenmobile: Update gomobile version
...
Fixes #1120
2020-03-29 22:00:29 +09:00
Hajime Hoshi
9a14d2fb14
thread: Fix comments
...
Fixes #1121
2020-03-29 16:27:12 +09:00
Hajime Hoshi
41d07706ae
Revert "thread: Close channels"
...
This reverts commit 00e78c1eae
.
Reason: (*Thread).Loop can be called multiple times on iOS.
Fixes #1121
2020-03-29 16:25:42 +09:00
Hajime Hoshi
a9c74e48e1
cmd/ebitenmobile: Update gomobile version
2020-03-29 13:44:41 +09:00
Hajime Hoshi
569f684d9b
examples/windowsize: Improve messages
2020-03-29 02:36:14 +09:00
Hajime Hoshi
b7d555e724
examples/blocks: Bug fix: ESC key caused crashing
2020-03-29 02:35:58 +09:00
Hajime Hoshi
231edfbd3f
example/contextlost: Bug fix: Compilie error on Go 1.14, Should use WebGL2
2020-03-29 02:03:14 +09:00
Hajime Hoshi
b09fe7157b
uidriver/glfw: Update comments
2020-03-29 01:33:23 +09:00
Hajime Hoshi
e3def4ae50
uidriver/glfw: Update comments
2020-03-29 01:12:53 +09:00
Hajime Hoshi
9d5c35f029
uidriver/glfw: Bug fix: Initilizing the window position and the size in this order on Windows
...
It looks like the order is different on Windows from Linux. We
are not sure why.
Updates #1118
2020-03-29 00:50:19 +09:00
Hajime Hoshi
b7ab3d2df4
uidriver/glfw: Avoid using the window position before initializing
...
Especially in the initial phase before calling Run/RunGame, the
window position is not reliable and then getting the device scale
factor does not make sense based on the window position. Avoid
using the window position, and instead use the glfw.Monitor in
this situation.
2020-03-29 00:09:08 +09:00
Hajime Hoshi
14200eb42c
uidriver/glfw: Add comments
2020-03-29 00:02:33 +09:00
Hajime Hoshi
8480f888dd
Revert "uidriver/glfw: Bug fix: Do not use the window position for monitors"
...
Revert "uidriver/glfw: Bug fix: compile error on Linux"
This reverts commit 0a5126f776
.
This reverts commit 3e244d7a7c
.
Reason: GetMonitor is available only on fullscreen mode
2020-03-28 23:56:03 +09:00
Hajime Hoshi
e628350d4e
uidriver/glfw: Bug fix: Initializing order mattered
...
Especially on Linux, the window size and the window position must
be initialized in this order.
Fixes #1118
2020-03-28 23:37:21 +09:00
Hajime Hoshi
34acf788d2
uidriver/glfw: Bug fix: Call Maximize explictly instead of the hint
...
Fixes #1117
2020-03-28 22:34:01 +09:00
Hajime Hoshi
4fe5acd711
ui: Panic on MaximizeWindow when the window is not resizable
...
On Windows, the window could be maximized even when the window was
not resizable. This behavior is confusing. Forbid it so that the
behavior will be clearer.
2020-03-28 22:08:48 +09:00
Hajime Hoshi
3e244d7a7c
uidriver/glfw: Bug fix: compile error on Linux
2020-03-28 21:29:24 +09:00
Hajime Hoshi
8cca713d74
uidriver/glfw: Bug fix: adjustWindowPosition should consider the monitor position
2020-03-28 21:26:57 +09:00