Henrik Rydgard
04f8bffa29
Use EGL from native code to initialize and run OpenGL on Android.
...
Should be more robust, allows initializing desktop GL if available, and lets us take control of the render loop.
2015-12-16 10:57:24 +01:00
Henrik Rydgard
c2eb6a2fcb
Minimal port of Android EGL code from Dolphin.
2015-12-13 22:46:50 +01:00
Henrik Rydgard
2083f22dce
Refactor (android): Decouple frame commands from Renderer object.
...
Minor cleanup in preparation for EGL.
2015-12-13 22:44:55 +01:00
Unknown W. Brackets
003d1ea0f3
Correct glReadPixels() from offset.
2015-12-12 21:21:38 -08:00
Henrik Rydgård
666b31c08e
Merge pull request #8259 from unknownbrackets/gpu-blit
...
Use glCopyImageSubData() when it's available
2015-12-06 20:53:46 +01:00
Unknown W. Brackets
fbc4b4e7a1
Use glCopyImageSubData() when it's available.
...
There's 4 different extensions providing this functionality. NV is
supported on desktop and mobile, EXT/OES on mobile, and ARB on desktop.
Mostly these are only supported by desktop cards and NVIDIA mobile.
Good improvement in performance on NVIDIA when blit is called a lot, since
it doesn't need to rebind anything or change state. Example is in desert
city in Tales of Phantasia.
2015-12-06 10:39:21 -08:00
Henrik Rydgård
a2e09eada7
Merge pull request #8216 from unknownbrackets/sas-thread
...
Move SAS mixing to a thread
2015-12-06 18:59:09 +01:00
Henrik Rydgård
4bb36b0e79
Merge pull request #8243 from unknownbrackets/gpu-blend
...
Enable EXT_blend_func_extended
2015-12-06 18:36:45 +01:00
Henrik Rydgård
fb414de75b
Merge pull request #8258 from unknownbrackets/gpu-readpix
...
Remove some framebuffer ifdefs, explicitly set PACK_ROW_LENGTH
2015-12-06 18:35:32 +01:00
Unknown W. Brackets
308a948169
Explicitly set row length for glReadPixels().
2015-12-06 09:18:37 -08:00
Unknown W. Brackets
a2d228a729
Remove more USING_GLES2 ifdefs.
2015-12-06 09:08:38 -08:00
Unknown W. Brackets
33e37f4cd3
Use qualifier for GLES3 framebuffer fetch.
...
Note: still statically disabled.
2015-11-27 16:09:57 -08:00
Unknown W. Brackets
1fb271a607
Enable EXT_blend_func_extended.
...
Not really tested.
2015-11-27 16:01:25 -08:00
Henrik Rydgard
01669cbd92
Hide the "Internal resolution" etc static display unless FPS counter is on.
...
Seems fairly related and I don't want to add more options.
2015-11-27 00:17:14 +01:00
Henrik Rydgard
efde6e44db
Just a safety check in thin3d texture loading
2015-11-27 00:17:14 +01:00
Henrik Rydgård
5827b583d3
Merge pull request #8240 from unknownbrackets/clut-render
...
Initial CPU side render-to-clut handling
2015-11-27 00:08:08 +01:00
Unknown W. Brackets
1339f6b1f3
Report formats on usage of rendered clut.
2015-11-26 14:31:46 -08:00
Unknown W. Brackets
3965cba187
Disable clut render for now as a "slow effect".
...
Also, add reporting.
2015-11-26 13:42:18 -08:00
Unknown W. Brackets
8e2557bafe
Support render-to-clut, at least in some cases.
...
This is pretty much only tested with Brave Story. See #6754 .
There may be other cases which are not handled yet.
2015-11-26 13:31:17 -08:00
Henrik Rydgård
63dcc56bc6
Merge pull request #8236 from unknownbrackets/warnings
...
Warning fixes
2015-11-26 13:07:31 +01:00
Unknown W. Brackets
a7b4c38464
Move some common files into MSVC filters.
2015-11-25 19:36:21 -08:00
Unknown W. Brackets
f759a2a3fd
Sas: Sync result when mix calling thread returns.
2015-11-25 18:44:43 -08:00
Unknown W. Brackets
546590106f
Sas: Fail to mix when dispatch disabled.
2015-11-25 18:44:42 -08:00
Unknown W. Brackets
23441d12fb
Sas: Estimate time taken for mixing.
...
Tests seem to show it's not affected by mhz.
2015-11-25 18:44:34 -08:00
Unknown W. Brackets
75290cfd56
Sas: Enable SAS thread on multicore only.
2015-11-25 18:44:33 -08:00
Unknown W. Brackets
9d64f9f9f6
Fix compile errors when profiler is enabled.
2015-11-25 18:44:32 -08:00
Unknown W. Brackets
5a6c8b513c
Sas: Drain thread before reading/writing SAS state.
...
This should be the safest option, but I'm pretty sure some operations give
a BUSY operation or have different behavior, actually.
2015-11-25 18:44:32 -08:00
Unknown W. Brackets
fc8acc781e
Sas: Add config for SAS thread.
2015-11-25 18:44:31 -08:00
Unknown W. Brackets
0394319e89
Sas: Drain thread on savestate.
2015-11-25 18:44:30 -08:00
Unknown W. Brackets
6290ac6cbd
Sas: Process SAS on a separate thread.
...
Remaining issues:
* Need a config setting.
* Locking for voices / config?
* Locking for atrac interop?
2015-11-25 18:44:30 -08:00
Unknown W. Brackets
7a9bdee0a7
softgpu: Pass in the right value for fog.
2015-11-25 16:11:53 -08:00
Unknown W. Brackets
7bfe100b0f
Fix some unused variable warnings.
...
The CheckAlpha one looks like it will matter.
2015-11-25 16:11:53 -08:00
Unknown W. Brackets
0cea0b09a2
Merge pull request #8235 from hrydgard/zero-deleted-objects
...
Zero deleted objects in the kernel object pool
2015-11-25 08:47:35 -07:00
Henrik Rydgard
9825dad340
Zero deleted objects in the kernel object pool
...
Just doing this to narrow down the possible causes of our crashes in WaitSema/SignalSema that I can't reproduce and only have Android auto-reports of... The crash comments do mention the GTA games though.
2015-11-25 14:24:32 +01:00
Henrik Rydgard
06eee7bc1b
Oops, fix #8234
2015-11-25 14:23:39 +01:00
Henrik Rydgard
7dd631b7f2
Some code reformatting of the kernel object pool
...
Also deletes an unused [] operator
2015-11-25 13:00:29 +01:00
Henrik Rydgard
ee4261cf5c
Attempt to address some auto-reported crashes on Android
...
Still confused about the SignalSema/WaitSema ones.. they are still getting reported at high frequency
2015-11-25 12:05:32 +01:00
Henrik Rydgard
a0cff13efa
Fix an auto-reported null pointer exception in NativeActivity, plus a couple of potential others.
...
Must be rare though..
2015-11-25 11:39:56 +01:00
Henrik Rydgård
ce05930811
Merge pull request #8228 from unknownbrackets/gpu-blend
...
Treat invalid blend factors as fixed consistently
2015-11-19 16:07:48 +01:00
Unknown W. Brackets
c90559262b
Software: clamp inverse factors to zero.
...
Just to make sure we don't end up with negative factors when
adding/subtracting/etc.
2015-11-19 06:48:37 -08:00
Unknown W. Brackets
c22953a4b9
Treat invalid blend factors as fixed consistently.
2015-11-19 06:48:06 -08:00
Henrik Rydgård
63769a2383
Merge pull request #8221 from unknownbrackets/disk-cache
...
Improve and enable URL disk cache by default
2015-11-19 10:15:51 +01:00
Unknown W. Brackets
723a2c98af
Minor warning fix.
2015-11-18 22:03:35 -08:00
Unknown W. Brackets
0264422b8d
Add a bit more error detection to the disk cache.
2015-11-18 21:56:07 -08:00
Unknown W. Brackets
475964133c
Make disk cache size a bit more flexible.
...
This way it will shrink to allow a few games to be cached simultaneously.
2015-11-18 21:56:06 -08:00
Unknown W. Brackets
eb5072bba5
Warning fixes.
2015-11-18 21:56:05 -08:00
Unknown W. Brackets
9bec81b9c5
Enable the disk cache for URLs by default.
2015-11-18 21:56:05 -08:00
Unknown W. Brackets
f2cefebcb6
Garbage collect files when low on free cache space.
2015-11-18 21:56:04 -08:00
Unknown W. Brackets
df6cbafe0f
Measure free disk space to size block count.
2015-11-18 21:56:03 -08:00
Unknown W. Brackets
f0ec6fab4d
Reorganize disk cache to allow for dynamic size.
2015-11-18 21:56:02 -08:00