Henrik Rydgård
926b3873df
Fix issue with Vulkan task switching and resolution changes on Android.
2018-02-12 17:47:31 +01:00
Unknown W. Brackets
cdf378d20c
GLES: Prevent race condition on shutdown.
...
emuThreadState might become STOPPED before the last frame has been run,
which can cause WaitUntilQueueIdle to hang.
It's simpler just to wait until StopThread() is called, since it now is.
This will line up properly with run_.
2018-02-11 11:40:11 -08:00
Unknown W. Brackets
48b4a5f378
Android: Fix race condition on shutdown.
2018-02-10 16:55:48 -08:00
Henrik Rydgård
ae19c48138
Cleanup the Windows thread stuff to work like the other platforms. Not quite perfect yet.
2018-02-07 16:00:29 +01:00
Henrik Rydgård
7f30037e45
Android: Fix emuthread management to exit cleanly without hanging. Helps with task switching on Android.
2018-02-07 13:11:43 +01:00
Henrik Rydgård
22e28e218b
Merge pull request #10411 from hrydgard/gl-render-manager
...
GL render manager - new faster GL multithreading
2018-01-31 12:22:07 +01:00
Henrik Rydgård
26b146a247
Buildfixes
2018-01-30 12:28:44 +01:00
Henrik Rydgård
c60c8ed68a
Debug visualization for the Vulkan memory allocator. Shows some interesting behaviour.
2018-01-29 19:38:10 +01:00
Henrik Rydgård
19ab367591
Fix some accidental extra-indentation
2018-01-28 19:26:42 +01:00
Henrik Rydgård
bd3a681fd3
Enough JNI/threading hackery to get it to run on Android! Broken readbacks make it crash alot though.
2018-01-28 17:30:33 +01:00
Henrik Rydgård
7abb8702ce
Work towards threaded GL on Android. Now TextDrawer barfs on wrong JNI context.
2018-01-28 17:29:27 +01:00
Henrik Rydgård
fdca06d208
More work on shutdown, still hanging though.
2018-01-27 15:10:17 +01:00
Henrik Rydgård
062608ad78
Start moving the framebuffer stuff over to the render manager
2018-01-27 15:10:17 +01:00
Henrik Rydgård
5d3c1e7871
Additional header cleanup
2018-01-20 21:55:25 +01:00
Henrik Rydgård
133bef575a
Split Android graphics context implementations into their own files.
2018-01-20 21:47:16 +01:00
Henrik Rydgård
1a97f62dc9
Fix running the CPU test from the UI.
2018-01-04 18:10:41 +01:00
Unknown W. Brackets
766b40aad8
GPU: Reset GPUBackend on graphics init.
...
This way, when using a port that doesn't support Vulkan, it doesn't just
silently use upside down GL, etc.
2017-12-26 16:02:55 -08:00
Unknown W. Brackets
d6da758ed3
GPU: Remove duplicate BACKEND constants.
2017-12-26 15:55:24 -08:00
Henrik Rydgård
2250ef799c
Avoid including platform-specific headers in VulkanContext.h
2017-12-18 12:54:25 +01:00
Henrik Rydgård
6f0b382d9e
Move vulkan debug callback out from WindowsVulkanContext into a file that can be shared with other platforms later.
2017-12-13 19:29:42 +01:00
Unknown W. Brackets
2943bbdbfd
UI: Cancel loaders on shutdown.
...
Improves backend switching / locking / etc. performance when the recent
list has games that aren't currently available.
Also, remove unnecessary duplicate gameinfo flush on EGL loop shutdown.
Already happens in NativeShutdownGraphics().
2017-12-09 16:48:38 -08:00
Henrik Rydgård
58fd674bbf
Try to fix build with the old Android build system too...
2017-12-08 10:25:42 +01:00
Henrik Rydgård
1076e358e0
Also update Application.mk for the old build system.
2017-12-07 23:47:54 +01:00
Henrik Rydgård
18f93342f3
From NDK 16, libc++ is out of beta and gnustl will be deprecated soon, so switch.
...
No apparent issues, even on Nexus One with Android 2.3.
2017-12-07 23:45:36 +01:00
Henrik Rydgård
7d0fc9ce65
Rework GL lost-device to work more like Vulkan. Gets rid of gl_lost manager etc.
2017-12-07 15:05:59 +01:00
Henrik Rydgård
a1e74d0d4f
v1.5.4
2017-12-05 14:51:51 +01:00
Henrik Rydgård
ab95dcae91
Merge pull request #10249 from unknownbrackets/minor
...
More minor cleanups
2017-12-04 09:49:44 +01:00
Unknown W. Brackets
9c046d7518
Android: Fix race condition on lock/unlock.
...
This might be related to the recreate from bad orientation - sometimes, it
was pause/resuming pretty quick, which would get stuck waiting for a join.
2017-12-03 20:32:17 -08:00
Unknown W. Brackets
2e87a652a4
Android: Reset immersive after native dialogs.
...
Not sure why it only happens on OpenGL, but it implies we need to reset
the state after the alert is dismissed. Fixes #10177 .
2017-12-03 19:22:04 -08:00
Unknown W. Brackets
79f03a0767
Android: Fix crash on shutdown/restart.
...
The text drawing textures needed to be deleted before shutting down their
allocator. Fixes #10244 .
2017-12-03 14:39:00 -08:00
Unknown W. Brackets
04c61ea429
Android: Render text with newlines properly.
...
Fixes the Android part of #10217 .
Not sure if the line height calculation is ideal but it's visually fine.
2017-12-02 16:05:35 -08:00
Henrik Rydgård
341611e16a
Update AndroidManifest.xml to 1.5.3.0, just in case anyone is still using the old build system where this isn't automatic.
2017-12-02 12:10:48 +01:00
Henrik Rydgård
5fbbb3e115
Try a silly workaround for an otherwise unexplainable crash seen in Google Play Console
2017-12-01 19:56:53 +01:00
Henrik Rydgård
04515946e6
Comment, minor cleanup
2017-12-01 18:47:01 +01:00
Henrik Rydgård
b0c42f7081
Fix a java exception around the GPS stuff
2017-11-30 00:59:54 +01:00
Henrik Rydgård
51a6c67502
Crash in a more appropriate place if missing a drawcontext (happens on really weak devices only)
2017-11-29 19:29:53 +01:00
Henrik Rydgård
6ea669368c
Crash reports from 5% rollout of 1.5: Make some asserts dbg_asserts for now, try to fix an issue with framebuffers when postproc is enabled.
2017-11-29 18:53:52 +01:00
Henrik Rydgård
e9303fd1cd
Try to get androidgitversion to behave. It thinks the build is dirty when it's not.
2017-11-29 15:44:16 +01:00
Henrik Rydgård
bdbe2549d0
Update AndroidManifest.xml to 1.5.0
2017-11-29 12:19:11 +01:00
Henrik Rydgård
234f30a372
Minor error checking improvement
2017-11-26 14:52:26 +01:00
Henrik Rydgård
a763fe4b95
Android: Call setDisplayParameters early with the display w/h in pixels. Without this, was defaulting to 1x rendering on S8 which is silly.
2017-11-26 14:49:00 +01:00
Henrik Rydgård
495532f0ff
Fix text width measurement on Android when there are spaces at the start/end of the string (bounds doesn't handle that). Fixes 10174
2017-11-22 22:45:38 +01:00
Henrik Rydgård
ee759d83e3
Oops, android buildfix
2017-11-22 14:42:01 +01:00
Henrik Rydgård
b1fce1c61a
Android: Fix #9697 where we'd hang if we lacked permission and got a filename as a command.
2017-11-21 13:55:14 +01:00
Henrik Rydgård
27a60f5e58
Fix message asserts on Android. Add more of them to check things in Vulkan code.
2017-11-20 12:11:47 +01:00
Henrik Rydgård
a0414a6176
Merge pull request #10145 from hrydgard/shortcut-fix
...
Android: When creating shortcuts, put the file path in data, not in extras.
2017-11-16 15:01:19 +01:00
Henrik Rydgård
5675e8a816
Minor cleanup, and more terrifying orientation hackery
2017-11-16 15:00:27 +01:00
Henrik Rydgård
1fb7560a14
Android: When creating shortcuts, put the file path in data, not in Extras.
...
Actually, let's keep extras around now for very limited backwards compatibility but check data first.
2017-11-16 14:45:47 +01:00
Henrik Rydgård
a1e593b6ba
Fix the "vulkan not found" message on android. Fixes #10034
2017-11-16 13:45:15 +01:00
Henrik Rydgård
53a351c29d
Workaround orientation bug in Android when unlocking the screen.
...
Or I'm doing something wrong somewhere...
Also kill off "Auto" orientation. It's just a pain.
Fixes #10128
2017-11-16 12:33:50 +01:00