Commit graph

4630 commits

Author SHA1 Message Date
Henrik Rydgård
df6ed8cfc9 Do some cleanup of #includes in GPU 2024-12-18 13:57:26 +01:00
Henrik Rydgård
c1ffebf54c Fix some logic in LogManager, cocoa warning fix 2024-12-17 20:22:58 +01:00
Henrik Rydgård
c608184cdd ImGeDebugger: Add support to inspect depth and stencil buffers too, including hover values 2024-12-16 21:06:09 +01:00
Henrik Rydgård
ab51c2a13b Fix enabling logs 2024-12-16 12:48:48 +01:00
Henrik Rydgård
e567a58684 Remove StdioListener 2024-12-16 12:33:58 +01:00
Henrik Rydgård
8de30235f2 More cleanup. Make the log manager work even before "initialized", removng the Early phase 2024-12-16 12:33:58 +01:00
Henrik Rydgård
96cab3f267 Rework the log manager to be more robust 2024-12-16 12:33:58 +01:00
Henrik Rydgård
afbf430899 Android joystick event handling: Don't blow up java ref counting by forgetting ReleaseElements.
Also, use JNI_ABORT to avoid writing back changes (we don't make any).
2024-12-15 23:03:22 +01:00
Henrik Rydgård
111d0c872d Global rename of FBChannel to Aspect, also make it a class enum 2024-12-15 22:24:05 +01:00
Henrik Rydgård
68f61c2add ImGeDebugger: Highlight changes, show old value on hover 2024-12-14 11:03:18 +01:00
Henrik Rydgård
024cb73716 Simplify collecting time into debug counters 2024-12-13 18:26:55 +01:00
Henrik Rydgård
27122a9e64 Work on previews 2024-12-10 22:09:51 +01:00
Henrik Rydgård
e3aaf93e28 Add a new log category 2024-12-10 10:34:26 +01:00
Henrik Rydgård
bf3e1b4ee1 Add Debugger log category 2024-12-10 09:59:08 +01:00
Henrik Rydgård
b2a8b4168b Core: Minor changes to stepping (and some log changes) 2024-12-10 01:06:19 +01:00
Katharine Chui
49553bcf8d Simplify MacOS AMD GPU workaround
Based on https://github.com/KhronosGroup/MoltenVK/issues/960,
expand MacOS AMD GPU workaround to all dGPU and instead of
changing usage, just append VK_MEMORY_PROPERTY_HOST_COHERENT_BIT
2024-12-09 14:22:56 +01:00
Katharine Chui
286580a6a0 Switch to VMA_MEMORY_USAGE_CPU_ONLY on MacOS AMD
The ideal allocation would be VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT
like in 1.12.3, but vma picked an index that's actually not mappable

VMA_MEMORY_USAGE_GPU_TO_CPU selects VK_MEMORY_PROPERTY_HOST_CACHED_BIT,
which seems to hurt performance

VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT + VK_MEMORY_PROPERTY_HOST_COHERENT_BIT
selection with VMA_MEMORY_USAGE_CPU_ONLY would suffice for the
workaround, and get better performance
2024-12-09 12:32:31 +01:00
Katharine Chui
93009a3178 Work around metal buffer bug on MacOS + AMD GPU
With VMA_MEMORY_USAGE_CPU_TO_GPU buffers, metal buffer appears 0
filled in metal trace during vkCmdCopyBufferToImage triggered
MTLBlitCommandEncoder instance method.

Allocate VMA_MEMORY_USAGE_GPU_TO_CPU instead on MacOS + AMD GPU
2024-12-08 22:13:33 +01:00
Henrik Rydgård
080798b5dd Move out two more functions from Core.cpp. Clean up Windows includes 2024-12-08 12:12:02 +01:00
Henrik Rydgård
b3346df646 ImDebugger: Add a window to inspect upcoming CoreTiming events 2024-12-07 16:28:27 +01:00
Henrik Rydgård
5d0316db6f Tune some log verbosity, remove timestamp on outputdebugstring logs 2024-12-03 22:11:01 +01:00
Henrik Rydgård
3ffff831c7 Refactor LogManager (remove GetInstance()). In headless, add option to log to OutputDebugString on Windows. 2024-12-03 21:39:42 +01:00
Henrik Rydgård
0f97578a35 Replace a bad function 2024-12-03 20:33:12 +01:00
Henrik Rydgård
2b8414b437 Move irrelevant code out of Core.cpp 2024-12-02 13:26:41 +01:00
Henrik Rydgård
e94defbb15 Get the CORE_RUNNING_GE coreState working! 2024-12-01 22:49:18 +01:00
Henrik Rydgård
7f13bc1a34 Add new log category for texture replacements 2024-12-01 14:17:01 +01:00
Henrik Rydgård
cf88d8b693 Fix bug in ini parsing on non-Windows 2024-11-30 13:51:38 +01:00
Henrik Rydgård
36d10b89e2 Remove locks on safe zip file operations (that don't involve the file pointer) 2024-11-30 11:55:36 +01:00
Henrik Rydgård
1f108a0e8c Remove the java-side directory listing filtering, didn't work. 2024-11-30 02:44:01 +01:00
Henrik Rydgård
d88d161822 Fix crash in logging 2024-11-30 02:44:01 +01:00
Henrik Rydgård
ed296e4587 ZipFileReader: Save the zip path so we can log it 2024-11-30 02:44:01 +01:00
Henrik Rydgård
755b062abd Minor perf improvement in ini file parser 2024-11-30 02:43:58 +01:00
Henrik Rydgård
5eeb15b30a Use Exists instead of GetFileInfo in more cases 2024-11-30 00:39:38 +01:00
Henrik Rydgård
011f73fedb Remove unnecessary check when creating subdir chains 2024-11-30 00:37:15 +01:00
Henrik Rydgård
e4adc112ff ImDebugger: Add a basic texture browser 2024-11-29 19:30:38 +01:00
Henrik Rydgård
48bc04b7e1 Add a separate bool for I/O logging 2024-11-29 16:00:34 +01:00
Henrik Rydgård
7cbb60fd22 Bypass the PSP file system when calculating the savedata size to avoid a lock 2024-11-29 14:43:13 +01:00
Henrik Rydgård
b6f648eecc MetaFileSystem: Clean up unused function 2024-11-29 14:13:56 +01:00
Henrik Rydgård
720e0561b5 Improve logging in GetFilesInDir 2024-11-29 11:14:52 +01:00
Henrik Rydgård
edbc7afcc1 Add support for prefix filtering in directory listing. 2024-11-29 11:14:52 +01:00
Henrik Rydgård
0e6fc8e0e3 Assorted warning fixes 2024-11-28 15:02:26 +01:00
Henrik Rydgård
dc89b6a918 Don't save config when launching a game (it should already have been saved) 2024-11-28 15:02:26 +01:00
Henrik Rydgård
98780ba603 Theme: Avoid checking the ui_atlas multiple times 2024-11-28 15:02:25 +01:00
Henrik Rydgård
3b463446ab I/O: Add a (disabled) mode to artifically slow down I/O for debugging 2024-11-28 15:02:22 +01:00
Henrik Rydgård
e7e12f4e2e Ghidra client fix 2024-11-28 09:50:24 +01:00
Henrik Rydgård
91c82205eb Logging: When not on EmuThread, log with the host thread name instead of the PSP thread name. 2024-11-27 15:38:41 +01:00
Henrik Rydgård
27a60517af Fix broken check for intel macs (for auto-disabling Vulkan) 2024-11-27 15:23:50 +01:00
Henrik Rydgård
6763c13f88 ImGui: Finish implementing pipeline switching for all backends 2024-11-27 01:19:05 +01:00
Henrik Rydgård
09779e0f44 ImGui drawing: Allow varying the pipeline when binding textures 2024-11-26 19:59:09 +01:00
Henrik Rydgård
eaff38f161 Implement ImGui clipped batch texturing support in the other backends too 2024-11-26 09:38:30 +01:00