Commit Graph

3617 Commits

Author SHA1 Message Date
Henrik Rydgård
1d17b01c16 Workaround for strange driver hang on Raspberry Pi 3.
Strangely, this does not fix the text rendering in the UI, but might
still be enough for the libretro use case in #15469.

See #15469
2022-06-19 16:56:19 +02:00
iota97
e48ea158e4 Allow to repeat a "single" button 2022-06-19 15:18:05 +02:00
Henrik Rydgård
78ad81db9e Show detected GPU driver bugs in system info 2022-06-18 14:23:09 +02:00
Henrik Rydgård
7656e2b9d9 Increase the difficulty of the GPU driver test
Trying to make the situation more similar to the Midnight Club map
problem, but still failing to repro in the GPU test, though it repros
fine in-game.
2022-06-18 14:23:09 +02:00
iota97
464a07abb7 Add guard 2022-06-09 11:14:48 +02:00
iota97
dd58923adb Add search on SDL 2022-06-07 17:16:06 +02:00
iota97
8587fbf8ed Log missing lines on shutdown, update lang files 2022-06-01 18:37:46 +02:00
Halo-Michael
a709e8eaa8 Fix CpuCore select 2022-05-30 06:32:18 +08:00
Unknown W. Brackets
1b2b443a03 UI: Abandon focus movement on returning from pause.
See #15530.
2022-05-29 11:20:41 -07:00
Henrik Rydgård
21bf41e6dd
Merge pull request #15558 from unknownbrackets/fullscreen
Config: Don't save --fullscreen unless changed
2022-05-29 19:54:46 +02:00
Unknown W. Brackets
3edf6ab0fa Config: Don't save --fullscreen unless changed.
This makes --fullscreen and --windowed temporary by using a separate
setting.  If the setting is changed explicitly, it begins saving it again.
2022-05-28 15:47:12 -07:00
iota97
43c54cf5d9 Fix themes as well 2022-05-26 07:07:59 +02:00
Unknown W. Brackets
bbbb154da0 Display: Ignore lagsync when auto frameskip on.
The delays in lag sync will only confuse the frameskipping code,
because it will interpret the intentional delays as need for skipping.

In theory, frameskip could ignore the lag sync time, but it would still
make frameskip far less effective.
2022-05-10 17:06:09 -07:00
Unknown W. Brackets
92bad4f5c3 Replacement: Allow texture dump without replace. 2022-05-02 19:23:37 -07:00
Henrik Rydgård
fdcf9b731f
Merge pull request #15498 from iota97/fix-lazy
Fix lazy loading of metadata
2022-04-30 23:50:33 +02:00
Henrik Rydgård
d4dedeeeb8 Detect ISO files from file contents if extensions are wrong.
On older Android versions (that still support Android Storage
Framework), filenames are not always preserved in Content URIs, they can
look like .../msf:342 and things like that. So identify a few more file
types by content if filename identification fails.
2022-04-30 17:47:17 +02:00
iota97
9787f6a317 Fix lazy loading of metadata 2022-04-24 14:13:47 +02:00
Henrik Rydgård
2178567ba0 UWP: Fix loading the default theme.
Hopefully takes care of #15496

See also #15464
2022-04-24 14:12:15 +02:00
Henrik Rydgård
13fcff328c
Merge pull request #15464 from iota97/theme-atlas
Allow to change atlas per theme
2022-04-24 00:45:15 +02:00
iota97
e93cccf607 Add key bind to hotswap internal screen rotation 2022-04-23 08:52:51 +02:00
Unknown W. Brackets
8f8436fd1a UI: Prevent save textures if not replacing.
For clarity, it's required.
2022-04-17 20:55:39 -07:00
Henrik Rydgård
3a09c85fb1 Fix hang when choosing "Skip" in first-time init. Warning fix, comment add.
Fixes #15011
2022-04-17 23:02:37 +02:00
Henrik Rydgård
584e94f01e ARM32: Remove a lot of non-NEON fallback paths 2022-04-13 11:44:55 +02:00
Henrik Rydgård
a68ddd0a8d Merge separate NEON functions into the normal functions.
We no longer support non-NEON ARM.

It's nice also to have the NEON and SSE implementations "close" to each
other, easier to port optimizations back and forth etc.
2022-04-12 23:43:21 +02:00
Henrik Rydgård
6de574104c Avoid creating a fileloader during shutdown.
Some silliness I found while investigating using SuperLuminal.
2022-04-12 00:16:13 +02:00
Unknown W. Brackets
b71f17586e Switch: Avoid loading Vulkan. 2022-04-02 16:34:13 -07:00
iota97
53fe6940df Allow to change atlas per theme 2022-04-01 09:59:40 +02:00
iota97
ccef3de34c Add version to game screen 2022-03-11 07:23:42 +01:00
iota97
5cf6621191 Show game crashed 2022-02-24 12:25:04 +01:00
iota97
1d37ec48a4 Allow to set default background color in a theme 2022-02-18 21:02:07 +01:00
iota97
3f505f760c Disable darkening background, also allow to over saturate up to 2 2022-02-18 14:24:46 +01:00
Henrik Rydgård
ce2995f952 Add UI Tint/Saturation settings
Does the color tinting in the vertex shader.
2022-02-18 14:23:57 +01:00
Henrik Rydgård
e88ddbb42a
Merge pull request #15394 from iota97/theme
Allow custom UI themes
2022-02-17 10:45:13 +01:00
Henrik Rydgård
1f71a69be2 Unhide "Cache ISO in RAM" on ARM platform. Not the right block level. We should probably check for available RAM instead. 2022-02-15 13:18:56 +01:00
iota97
561870dc25 Merge item and button style, remove hightlighed and few other fixes 2022-02-14 13:57:22 +01:00
iota97
7860aea62f Fix disabled bg 2022-02-14 11:30:37 +01:00
iota97
f4b5c16e1b Allow translation 2022-02-14 07:59:18 +01:00
iota97
e5843160fe Add themes to assets 2022-02-14 07:37:56 +01:00
iota97
65b7b65bcd Adress feedback 2022-02-12 18:30:55 +01:00
iota97
1c313da541 Keep comment up to date 2022-02-11 19:30:25 +01:00
iota97
9ac07a10f6 Forgot pragma, silly me 2022-02-11 13:16:37 +01:00
iota97
5e1062678f Allow custom UI themes 2022-02-11 12:42:38 +01:00
Unknown W. Brackets
8418287a87 Vulkan: Avoid crash on double DeviceLost.
This caused Android to crash when switching to OpenGL, because the
destructor would try to deinit again.  There weren't any objects, but
draw_ was no longer valid.
2022-02-06 23:34:44 -08:00
Unknown W. Brackets
2479d52202 Global: Reduce includes of common headers.
In many places, string, map, or Common.h were included but not needed.
2022-01-30 16:35:33 -08:00
Unknown W. Brackets
48b597a1b9 Display: Move core counters/stats to HW file.
This separates things better, so not everything is pulling in HLE.
2022-01-30 11:53:48 -08:00
Unknown W. Brackets
ad2e380987 Display: Move listeners to separate HW file.
Mixing this in with the HLE management funcs was messy.
2022-01-30 09:41:08 -08:00
Unknown W. Brackets
43819fcd16 UI: Cleanup some reference warnings. 2022-01-29 22:36:08 -08:00
Henrik Rydgård
1bc60f6003 UWP buildfix 2022-01-26 14:33:09 +01:00
Henrik Rydgård
30756acf9d Quick hack attempt around build failures 2022-01-26 13:28:59 +01:00
Henrik Rydgård
8dc8fae16d Vulkan: Add support for listing all the available surface formats in system info.
Enabling the EXT_swapchain_colorspace extension lets the driver expose
all the formats it really supports.

Used this to discover that my Galaxy S21 supports Display-P3 which is a wider
gamut than sRGB. Might be able to do some color boosting mode for fun.

Or, use this stuff to play around with HDR?
2022-01-25 19:22:49 +01:00
iota97
a0f0a0655c Clean up hardware tasseletion setting 2022-01-21 16:55:53 +01:00
Henrik Rydgård
6fd082f141 Show the software rendering option on all platforms
It's improved greatly in performance thanks to Unknown's hard work,
and is becoming a lot more usable. It's not JIT-optimized on ARM yet,
but it's fast enough for some 2D games.

See #12543
2022-01-21 09:41:36 +01:00
Unknown W. Brackets
b0dbdb4dda UI: Reset ZIP install errors for new ZIPs. 2022-01-17 09:15:39 -08:00
iota97
8b79025507 Avoid confusion for translator 2022-01-10 20:04:47 +01:00
Cameron Cawley
5adf188ea1 UI: Mention SDL in the credits when it's being used alongside Qt 2022-01-09 23:36:20 +00:00
Unknown W. Brackets
d7e71543f7 UI: Use comparison screenshot as frame dump icon.
This makes it easier to tell a big list apart.
2022-01-08 16:12:48 -08:00
Unknown W. Brackets
a397bf811b UI: Fix some sign/size comparison warnings.
Mostly size_t vs int.
2022-01-06 20:40:29 -08:00
Henrik Rydgård
df2f0df155 Make the Vulkan GPU log profiler a runtime developer setting.
I keep forgetting to disable the define on commit, this is a better
solution.
2021-12-19 22:50:14 +01:00
Henrik Rydgård
2851065889
Merge pull request #15237 from unknownbrackets/path-case
Path: Check for PSP case insensitively
2021-12-17 09:35:19 +01:00
Unknown W. Brackets
3e73ce87ee Path: Check for PSP case insensitively.
This allows a game to look up ms0:/psp/ eve with the PSP special case path
handling.
2021-12-16 15:06:15 -08:00
Henrik Rydgård
c07068f89b Fix text wrapping on PromptScreen by improving the layout 2021-12-13 22:42:03 +01:00
Henrik Rydgård
e1ff73061a
Merge pull request #15223 from hrydgard/multi-atlas
Split off the fonts from the atlas
2021-12-12 09:10:27 +01:00
Unknown W. Brackets
63e623ecb2 Build: Fix some format truncation warnings.
Generally all should be safe already, but better to be sure.
2021-12-11 10:45:27 -08:00
Henrik Rydgård
d4237fd542 Split the atlas into three, well two, but two different cases for the fonts.
Platforms that can use OS fonts don't need font_atlas.zim but they do
need ascii font for debug, so does use asciifont_atlas.zim.
2021-12-10 23:22:08 +01:00
Henrik Rydgård
e10b53def3 Fix an ordering issue causing us to hit some asserts 2021-12-10 21:00:45 +01:00
Unknown W. Brackets
8b5173350f ThreadManager: Make TaskType a property of a Task. 2021-12-05 21:01:49 -08:00
Henrik Rydgård
0ab207adb1 Display the graphics API on logoscreen on more platforms 2021-11-30 10:11:18 +01:00
Unknown W. Brackets
b8ab7f39df jit: Lock around changes to the jit pointer. 2021-11-28 10:04:22 -08:00
Henrik Rydgård
f991f6a789 Remove the old allocator visualizer. Keep the setting but hide it. Other feedback 2021-11-23 08:55:12 +01:00
Henrik Rydgård
4f85b8b2ef Threading: Remove a level of indirection from Promise and Mailbox.
Makes using small copyable or POD objects in these more efficient, and if you want
to you can just put a pointer or smart pointer in there, which will
effectively do the same thing as the old setup.
2021-11-20 22:40:10 +01:00
Henrik Rydgård
20c3c8f291
Merge pull request #14848 from iota97/dpad-size-fix
Fix DPAD size calculation
2021-11-20 15:58:56 +01:00
Henrik Rydgård
25034fdc55
Merge pull request #15151 from iota97/chat-touch
Prevent chat menu touch to fall throght
2021-11-20 15:48:43 +01:00
Henrik Rydgård
98cd023cf9 On desktop, change an empty current directory to "/" on startup.
Just avoids some confusion.
2021-11-20 14:48:51 +01:00
iota97
c9deeae6f1 Prevent chat menu touch to fall throght 2021-11-19 16:12:26 +01:00
Unknown W. Brackets
a871550d32 UI: Switch to font texture for debug stats. 2021-11-15 07:04:17 -08:00
Henrik Rydgård
161a32b4a2 On Android 11 and later, let's not fallback to OpenGL at all.
Not meaningful since Vulkan is stable and widely used now and we really
don't do anything crazy when drawing the menu.

See #15079
2021-11-09 23:06:10 +01:00
Henrik Rydgård
df9be770d6 Add tip to Lazy texture caching button. Replaces #14183 2021-11-09 22:54:47 +01:00
Henrik Rydgård
4161b500ab
Merge pull request #15021 from unknownbrackets/ui-font-atlas
UI: Support a second texture for just fonts
2021-11-09 22:51:09 +01:00
Henrik Rydgård
4d38905474
Merge pull request #15100 from vit9696/master
SDL: Read assets from Resources on macOS like on iOS
2021-11-07 23:21:29 +01:00
Henrik Rydgård
6349704924 Switch texture scaling shaders to a fixed scale model, preparing for the next change. 2021-11-07 13:12:28 +01:00
vit9696
1066224b6f SDL: Read assets from Resources on macOS like on iOS
closes #15041
2021-11-06 09:22:08 +03:00
Henrik Rydgård
b88d676f78 Remove the vertex cache from the OpenGL backend.
It was disabled for a very long time, and now that we've re-enabled it, it
mostly causes problems.

Not feeling like debugging it on weird hardware, I think it's better
to focus energy on other optimizations.
2021-11-06 00:45:43 +01:00
iota97
5adaf87dbe Fix analog resize 2021-10-24 20:33:24 +02:00
Unknown W. Brackets
2bd13c5d9d Debugger: Track reason for entering stepping. 2021-10-23 16:56:15 -07:00
Henrik Rydgård
11eb5fa0c2
Merge pull request #15002 from unknownbrackets/ui-open-memstick
UI: Add button to show memstick folder
2021-10-19 19:55:30 +02:00
Unknown W. Brackets
21ff0b1dfd UI: Correct filtering message without keyboard. 2021-10-19 10:01:52 -07:00
Unknown W. Brackets
8c882e9571 UI: Add more keyboard sysprop checks. 2021-10-19 10:01:52 -07:00
Unknown W. Brackets
8e15f755e6 UI: Add a sysprop for if the device has a keyboard.
Still left some ifdefs because of System_InputBoxGetString(), but
hopefully we can move away from them.  Some devices (like SDL) may only
optionally have a keyboard, so it's a runtime check.
2021-10-19 10:01:52 -07:00
Unknown W. Brackets
d1fdd22990 UI: Add search filtering to settings. 2021-10-19 10:01:52 -07:00
Unknown W. Brackets
1f4cbb7aaa UI: Add game settings tabs in a consistent way. 2021-10-19 10:01:51 -07:00
Unknown W. Brackets
e86b7a3a44 UI: Add button to show memstick folder.
See #13919.
2021-10-19 10:01:27 -07:00
Unknown W. Brackets
08a55d19d5 macOS: Allow opening game folder. 2021-10-19 10:01:27 -07:00
Unknown W. Brackets
450b59809b Qt: Allow opening game folder. 2021-10-19 10:01:27 -07:00
Unknown W. Brackets
eb81d5b30b UI: Support a second texture for just fonts.
Will still allow using fonts between both.
2021-10-19 10:01:17 -07:00
Unknown W. Brackets
25da99a16d Io: Remove setting to disable I/O on thread. 2021-10-12 20:40:26 -07:00
Unknown W. Brackets
9730251132 UI: Remove I/O on thread setting.
Still configurable in the ini if really needed, for now.
2021-10-12 20:40:24 -07:00
Unknown W. Brackets
b1e31d89e1 Audio: Correct protection against time skew. 2021-10-10 15:05:51 -07:00
Henrik Rydgård
e6857388c7 Add input device debug info to touchscreen test screen
(yeah maybe there's a better place but it's fine).

Also make a slight tweak to the detection order which I don't think
matters much.
2021-10-10 11:50:20 +02:00
Unknown W. Brackets
b77695c760 Audio: Protect against time skew.
It might be possible a clock is adjusting backwards slightly after a time
update, and this could've caused sz to become negative.

Based on crash reports.
2021-10-09 08:24:54 -07:00
Henrik Rydgård
89a452c168
Merge pull request #14993 from unknownbrackets/ui-chat-key
UI: Disable focus movement on game start
2021-10-08 18:39:29 +02:00
Unknown W. Brackets
5884a2201d UI: Disable focus movement on game start.
Otherwise, dev tools or chat remain usable while trying to play the game.
This was an unintentional bug from chat UI refactoring.
2021-10-08 09:23:22 -07:00
Unknown W. Brackets
9c92af2b77 UI: Delay between successive mapping in controls. 2021-10-07 18:45:15 -07:00
Henrik Rydgård
efc1293b6c
Merge pull request #14974 from unknownbrackets/ui-savedata
Make savedata description scrollable
2021-10-06 17:08:16 +02:00
Unknown W. Brackets
0f83901838 UI: Keep buttons at bottom for savedata.
Also make them wider, looks like a layout mistake.
2021-10-05 23:55:51 -07:00
Unknown W. Brackets
e8a83269bb UI: Add scroll to savedata viewer for long descs. 2021-10-05 23:50:21 -07:00
Henrik Rydgård
887f6101d5 Remove the "Auto" texture scale factor. It's a performance trap and not really useful. 2021-10-05 20:41:40 +02:00
Henrik Rydgård
16c1713a87 Hide "What's This"? button on Android TV - no browser anyway 2021-10-05 11:38:34 +02:00
Henrik Rydgård
64b8ac603a Fix bug in deleting of directories in memory stick move. Also improve progress reporting. 2021-10-04 23:49:08 +02:00
Henrik Rydgård
08b7d646e8 Show text on the Browse button 2021-10-04 22:46:40 +02:00
Henrik Rydgård
992ad801e7 Add a crude way to blacklist post/texture shaders from certain vendors.
Use it to work around #14530 for now.
2021-09-28 23:39:52 +02:00
Henrik Rydgård
cc43ce0404
Merge pull request #14944 from unknownbrackets/ui-touch-controls
Cleanup UI touch controls button handling
2021-09-28 19:37:29 +02:00
iota97
003a34ccf5 Increase few column width for long translation, make control binding a bit taller 2021-09-28 18:02:37 +02:00
Henrik Rydgård
e384ad90fc
Merge pull request #14945 from unknownbrackets/ui-scroll-memory
UI: Keep scroll position on async load
2021-09-28 16:55:06 +02:00
Unknown W. Brackets
aedb4f7ed8 UI: Fix Game ID with insets on left side.
In the game list.
2021-09-28 07:28:59 -07:00
Unknown W. Brackets
931ba43216 UI: Remove scroll to top on size change.
It wasn't actually used anywhere, and I don't see a reason for it now.
2021-09-27 23:39:33 -07:00
Unknown W. Brackets
fc78b408b2 UI: Have scroll views directly remember their pos.
Kinda like checkboxes, cleaner this way.
2021-09-27 23:25:41 -07:00
Unknown W. Brackets
d5a9525fff UI: Cleanup another header misuse. 2021-09-27 17:47:15 -07:00
Unknown W. Brackets
8f1cca8b83 UI: Use a proper view for touch control borders. 2021-09-27 17:42:47 -07:00
Unknown W. Brackets
db48e6bd1e UI: Allow touch control editor buttons to grow.
If the buttons need to be taller for various reasons, allow them to grow
and push other buttons up.  Add a scroll in case this requires a lot of
space.
2021-09-27 17:05:55 -07:00
Unknown W. Brackets
fd58172417 UI: Allow cancel mapped to a letter in chat. 2021-09-27 10:42:24 -07:00
Unknown W. Brackets
f5ee1af309 Android: Create default folders in custom path.
If scoped storage is off and the memstick directory was customized, load
it before pre-creating default folders.
2021-09-25 20:40:34 -07:00
Unknown W. Brackets
2a4f8c57bc UI: Grow chat button based on text width. 2021-09-24 08:21:33 -07:00
Henrik Rydgård
ff7e13a3cd
Merge pull request #14923 from unknownbrackets/ui-savedata
Reduce IO in savedata screen sorting, move to async
2021-09-24 09:09:07 +02:00
Unknown W. Brackets
09ca16361c UI: Asynchronously update size and dates on sort.
This means items shift and jump into place, but it also means we don't
hang even for large savedata collections.
2021-09-23 22:31:43 -07:00
Unknown W. Brackets
8c937f45f7 UI: Cache save size on save buttons.
It was calculating the size and date for each permutation, which became
monstrously slow on Android with scoped storage.
2021-09-23 22:14:25 -07:00
Unknown W. Brackets
7513d92862 UI: Reduce IO in savedata manager sorting. 2021-09-23 22:00:16 -07:00
iota97
0b5eabcd23 Remove unused string and update en_US translation 2021-09-22 23:14:35 +02:00
iota97
e8ad59371d Use icon rather than string for combo key setup 2021-09-22 23:05:33 +02:00
Henrik Rydgård
0c52b077e6 And another one 2021-09-22 09:16:49 +02:00
Henrik Rydgård
528b4d2f32 Fix another couple of translation mistakes from the big fixup 2021-09-22 09:15:43 +02:00
iota97
fc7033318f Fix dpad analog overlap interaction 2021-09-21 10:35:39 +02:00
Henrik Rydgård
fbf56766f5
Merge pull request #14889 from hrydgard/translation-updates-2
Move the What's this? translation to the Memstick section
2021-09-20 16:59:12 +02:00
Henrik Rydgård
33b1f59cee Move the What's this? translation to the Memstick section 2021-09-20 16:40:33 +02:00
Unknown W. Brackets
4aa0c41a90 UI: Add a bit of reporting in failure cases. 2021-09-20 07:20:58 -07:00
Unknown W. Brackets
76dcfa9386 UI: Use OK instead of Confirm.
Other dialogs use OK.
2021-09-20 07:13:37 -07:00
Henrik Rydgård
c9cac67bfb Preparations for translating MemStickScreen and related strings. 2021-09-20 08:36:05 +02:00
Henrik Rydgård
50e008e385 Browse -> OK. Align buttons. 2021-09-19 20:24:28 +02:00
Henrik Rydgård
1ff085d1c9 More tweaks (spacing) 2021-09-19 20:23:46 +02:00
Henrik Rydgård
76f7abae1f Tweaks 2021-09-19 20:23:46 +02:00
Henrik Rydgård
80d4450e84 Show the path to access PSP data through USB in the settings screen. 2021-09-19 20:23:46 +02:00
Henrik Rydgård
adac44fd9b Remove "Change" from "Change Memory Stick Folder". Easier to read. 2021-09-19 20:23:46 +02:00
Henrik Rydgård
367c6814b4 SEO optimization 2021-09-19 20:23:46 +02:00
Henrik Rydgård
e406006fd5 Undo debug hack 2021-09-19 20:23:46 +02:00
Henrik Rydgård
74c842c951 Add image support to UI::Choice. 2021-09-19 20:23:46 +02:00
Henrik Rydgård
a5e7878f27 Show the explanation below each point. 2021-09-19 20:23:46 +02:00
Henrik Rydgård
357293cd9f Implement the new MemStick screen experience (rough cut) 2021-09-19 20:23:46 +02:00
Henrik Rydgård
da8d5ef343 Always show Help button on memstick screen 2021-09-19 20:23:46 +02:00
Henrik Rydgård
a4cb53c615 Use the new icons 2021-09-19 20:23:46 +02:00
Henrik Rydgård
cc9a739faf Fix the look of buttons with images. Use one. 2021-09-19 20:23:46 +02:00
Henrik Rydgård
09a13e3d2c Didn't mean to push this 2021-09-19 20:23:46 +02:00