Commit Graph
26884 Commits
Author SHA1 Message Date
Unknown W. Brackets 5846016247 Vulkan: Allow shutdown with init commands.
On startup, when immediately shutting down, there will be init commands
from creating the backbuffers.  Rather than fight this, just free them.

This fixes hangs when locking/unlocking Android.
2017-12-03 20:32:17 -08: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 a5998e6dc7 Vulkan: Swap in more forceful asserts.
Just in case of unexpected format issues.
2017-12-03 19:22:03 -08:00
Unknown W. Brackets 715a7b7318 Global: Silence some unused declaration warnings.
These things aren't used on Android.
2017-12-03 19:22:03 -08:00
Unknown W. Brackets 20c9d0edea UI: Fix some virtual override warnings. 2017-12-03 19:22:02 -08:00
Unknown W. Brackets f607f41440 Windows: Stop input poll before emu shutdown.
Otherwise, we could crash in the input thread during host deletion.
2017-12-03 19:22:01 -08:00
Unknown W. Brackets 4e6c083807 UI: When stepping, clear on initial load.
Otherwise we get the UI rather than a black screen.
2017-12-03 19:22:00 -08:00
Henrik Rydgård 7f5ba21402 Merge pull request #10248 from unknownbrackets/android
Android: Fix crash on shutdown/restart
2017-12-04 01:13:12 +01: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 fb91e7f043 UI: Show loading message while shaders preload.
This opens the door to doing this for other things we do on game start,
later.
2017-12-03 12:04:42 -08:00
Unknown W. Brackets c29ae5ff56 fixup! UI: Ensure tweens always complete. 2017-12-03 11:49:34 -08:00
Unknown W. Brackets 9f000ddf35 GLES: Avoid hanging while precompiling shaders.
We want to continue updating the screen so it doesn't seem frozen.
2017-12-03 11:30:00 -08:00
Unknown W. Brackets 60c4ac58f0 System: Allow GPU to have delayed loading. 2017-12-03 11:29:07 -08:00
Unknown W. Brackets f23c7cf93b UI: Apply tweens on Update(). 2017-12-03 10:40:09 -08:00
Unknown W. Brackets 15152fc55b UI: Reorganize EmuScreen so it renders on loading. 2017-12-03 10:39:25 -08:00
Unknown W. Brackets e32545b9c9 UI: Ensure tweens always complete. 2017-12-03 10:28:53 -08:00
Unknown W. Brackets b4b850bce8 UI: Add a simple tween class. 2017-12-03 09:39:50 -08:00
Unknown W. Brackets 7ab3e58dec UI: Add colorBlend() helper. 2017-12-03 09:39:28 -08:00
Henrik Rydgård 5eba689d6e Merge pull request #10243 from unknownbrackets/d3d9-1x
UI: Fix D3D9 half-pixel offset at 1x
2017-12-03 17:59:44 +01:00
Unknown W. Brackets b36a2c608b Display: Correct max FPS limiting skew.
We were letting a percentage of too frequent flips through, causing
sometimes much higher FPS still.  Improves performance in GoW.
2017-12-03 07:01:05 -08:00
Unknown W. Brackets c30e4a9382 Windows: Request a core profile by default.
Also, update to OpenGL 4.6.
2017-12-03 07:00:56 -08:00
Unknown W. Brackets 66832d2180 SDL: Use core profile, fixing old Mac GL issues.
This applies to all platforms, but falls back to a compat profile if
core is not available.
2017-12-03 07:00:55 -08:00
Unknown W. Brackets 84f5f633df UI: Fix D3D9 half-pixel offset at 1x.
Since we scale by 0.5x for small window, we need to adjust the half pixel
offset to match real pixels.
2017-12-03 06:58:16 -08:00
Unknown W. Brackets 5788e33b2f arm64: Use LDRUH instead of two LDRBs.
Small boost - 5.66x instead of 5x steps.
2017-12-03 06:35:44 -08:00
Unknown W. Brackets d2be5beccc Savedata: Show icon for new saves more often.
In fact, it may even be wrong to show the new data icon in this case...

Also fixes crashes when save title is 128 characters long.

Should improve #9632.
2017-12-03 06:35:41 -08:00
Henrik Rydgård aa0cc6712f Clip block transfer destinations. Should fix crash in #10011. Stats: Invent some sort of usage metric for device memory allocators. 2017-12-03 15:00:25 +01:00
Henrik Rydgård cc2e162a00 Merge pull request #10242 from hrydgard/thin3d-texture-alloc
Use a VulkanDeviceAllocator for thin3d textures. Saves on allocations.
2017-12-03 14:26:47 +01:00
Henrik Rydgård 6a2f0f4191 Revert "Fix memory-scan bug in VulkanDeviceAllocator that probably causes some fragmentation."
This reverts commit ac6b491287.
2017-12-03 11:31:25 +01:00
Henrik Rydgård ac6b491287 Fix memory-scan bug in VulkanDeviceAllocator that probably causes some fragmentation. 2017-12-03 11:10:40 +01:00
Henrik Rydgård 1bf44b7ca3 Shutdown fix. 2017-12-03 11:02:49 +01:00
Henrik Rydgård 6abdbde47e Fix bugs in VulkanImage allocator support 2017-12-03 10:50:25 +01:00
Henrik Rydgård 5d53f5e24c Add another assert, which gets hit.. Hm. Something is wrong.. 2017-12-03 10:42:19 +01:00
Henrik Rydgård ff264efe7e Change some Crash() to asserts in VulkanDeviceAllocator 2017-12-03 10:35:34 +01:00
Henrik Rydgård d0c248368d Use a VulkanDeviceAllocator for thin3d textures. Many devices have a hard limit on the total number of allocs and it's unnecessary to have the UI put pressure on that. 2017-12-03 10:29:41 +01:00
Henrik Rydgård 97bdc72d90 Vulkan: Only call EndCreate on the texture if it actually exists.. Though not having one would be bad. 2017-12-03 10:21:51 +01:00
Henrik Rydgård 1cb3564c11 Merge pull request #10239 from unknownbrackets/ui-minor
UI: Send prompt results even on back/cancel
2017-12-03 10:01:22 +01:00
Henrik Rydgård a58ef7ce6b Merge pull request #10238 from unknownbrackets/hashmaps
Fix missing Maintain() for some hashmaps
2017-12-03 10:00:49 +01:00
Unknown W. Brackets cde6b3d3e4 UI: Send prompt results even on back/cancel.
Before, if you went to the GPU backend prompt, and canceled, it would
never call the callback, and so the g_Config value never got reset.
2017-12-02 19:04:33 -08:00
Unknown W. Brackets 0dee041002 D3D11: Change state caches to DenseHashMaps. 2017-12-02 18:55:02 -08:00
Unknown W. Brackets 243304a5e8 Hashmaps: Fix missing maintain calls in non-GLES.
Should only matter if vertex cache is enabled.
2017-12-02 18:27:18 -08:00
Henrik Rydgård d6b7cde718 Fix a use-after-free in sceKernelTerminateDeleteThread 2017-12-03 02:33:50 +01:00
Henrik Rydgård 4c114c1b1a Merge pull request #10236 from unknownbrackets/text-wrap
UI: Fix text wrapping issues
2017-12-03 02:19:41 +01: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 b795258469 Merge pull request #10234 from unknownbrackets/ui-message
UI: Handle messages even when dialog is top
2017-12-03 00:34:02 +01:00
Unknown W. Brackets 4ad7107151 UI: Wrap text properly with explicit newlines.
Fixes the non-Android part of #10217.
2017-12-02 14:38:59 -08:00
Unknown W. Brackets 8e27600236 UI: Clean up some unused code and flags. 2017-12-02 13:52:10 -08:00
Unknown W. Brackets 8a58bf6596 Hashmaps: Another cleanup. 2017-12-02 11:55:54 -08:00
Unknown W. Brackets 5c81c67410 UI: Avoid pushing a screen on top of itself.
In case someone doesn't realize they're on settings, or etc.
2017-12-02 11:55:06 -08:00
Unknown W. Brackets f1bd54148b UI: Cleanup common message handling.
Most of it can just be handled by the common parent classes.
2017-12-02 11:55:06 -08:00