Commit Graph

31 Commits (fa2fd8f84f6c4d77a356e79aa0478f8f923e4dd9)

Author SHA1 Message Date
Connor McLaughlin 8c7a192128 Misc: Add copyright/license statement to applicable files
Should've did this in the beginning.
4 years ago
Connor McLaughlin b7fbde31a7 Move utility classes from common to own static lib 4 years ago
Connor McLaughlin fd76f437b3 Core: Purge WITH_IMGUI define 5 years ago
Connor McLaughlin ae49215251 Timers: Better predict next event time
Significantly improves performance in Fromage.
6 years ago
Connor McLaughlin c6c67b7b27 ImGui: Remove close button from debug windows
They can be closed by unchecking the setting instead, and it stays in
sync with the config this way.
6 years ago
Connor McLaughlin ef97131c9d Timers: Handle target = 0 case
Fixes Super Gals! Kotobuki Ran Special - Ikemen Get You Gals Party
hanging at boot.
6 years ago
C.W. Betts 662d6e9711 Fix possible log formatting errors. 6 years ago
Connor McLaughlin 11992bde4e TimingEvents: Use function pointers instead of std::function 6 years ago
Connor McLaughlin d7bd21c06d Timers: Update when sync is used with sysclk source
Fixes hang at boot in Zoku Mikagura Shoujo Tanteidan - Kanketsuhen.
6 years ago
Connor McLaughlin 27697d0508 System: Implement CPU overclocking [SAVEVERSION+]
Partial credit to @CookiePLMonster as well.
6 years ago
Connor McLaughlin 13e3095801 Core: Don't link to imgui for libretro core 6 years ago
Connor McLaughlin d59eb05d94 Timers: Fix update interval for timer2 IRQs being too low 6 years ago
Connor McLaughlin 32921acc5a Timers: Don't read out of bounds for invalid address 6 years ago
Connor McLaughlin b6f871d2b9
JIT optimizations and refactoring (#675)
* CPU/Recompiler: Use rel32 call where possible for no-args

* JitCodeBuffer: Support using preallocated buffer

* CPU/Recompiler/AArch64: Use bl instead of blr for short branches

* CPU/CodeCache: Allocate recompiler buffer in program space

This means we don't need 64-bit moves for every call out of the
recompiler.

* GTE: Don't store as u16 and load as u32

* CPU/Recompiler: Add methods to emit global load/stores

* GTE: Convert class to namespace

* CPU/Recompiler: Call GTE functions directly

* Settings: Turn into a global variable

* GPU: Replace local pointers with global

* InterruptController: Turn into a global pointer

* System: Replace local pointers with global

* Timers: Turn into a global instance

* DMA: Turn into a global instance

* SPU: Turn into a global instance

* CDROM: Turn into a global instance

* MDEC: Turn into a global instance

* Pad: Turn into a global instance

* SIO: Turn into a global instance

* CDROM: Move audio FIFO to the heap

* CPU/Recompiler: Drop ASMFunctions

No longer needed since we have code in the same 4GB window.

* CPUCodeCache: Turn class into namespace

* Bus: Local pointer -> global pointers

* CPU: Turn class into namespace

* Bus: Turn into namespace

* GTE: Store registers in CPU state struct

Allows relative addressing on ARM.

* CPU/Recompiler: Align code storage to page size

* CPU/Recompiler: Fix relative branches on A64

* HostInterface: Local references to global

* System: Turn into a namespace, move events out

* Add guard pages

* Android: Fix build
6 years ago
Connor McLaughlin dad63f2303 GPU: Run draw clock at sysclk * 2 6 years ago
Connor McLaughlin 34d27bad4a Timers: Add missing event update after resetting count/target 6 years ago
Connor McLaughlin 35a8c5b47c Timers: Don't hang when counter+target = 0 for timer1
This needs proper research into how it behaves with IRQs.
6 years ago
Connor McLaughlin 5a1b00825d GPU: Fix timer 1 IRQs sometimes triggering late
Should hopefully fix missing voices in Akuji the Heartless.
6 years ago
Connor McLaughlin 7fae169bbb Timer: Don't let writes affect IRQ state 7 years ago
Connor McLaughlin 54abd37daa GPU: Let the GPU drive DMA transfers for large time slices
Fixes FMV breakage... again.
7 years ago
Connor McLaughlin 612b362ae9 Timers: Sync GPU on register write too 7 years ago
Connor McLaughlin 82eb14efb1 Core: Apply DPI scaling to debug windows 7 years ago
Connor McLaughlin 0b7abf244e Timers: Fix sync mode 3 inverted condition 7 years ago
Connor McLaughlin 1b9609ef61 Implement event-based scheduler instead of lock-step components 7 years ago
Connor McLaughlin 71c1e243fe Remove YBaseLib dependency 7 years ago
Connor McLaughlin 6f4cf7d5e3 System: Support changing BIOS path 7 years ago
Connor McLaughlin 9b56499afa Refactoring settings/support changing GPU renderer at runtime 7 years ago
Connor McLaughlin a76ec6fc19 Compile fixes for GCC 7 years ago
Connor McLaughlin 0f68c8c5d3 Add debugging for GPU/Timers 7 years ago
Connor McLaughlin d373b5d3a9 Timers: Fix oneshot/toggle modes 7 years ago
Connor McLaughlin bddbab9d60 Rename to DuckStation 7 years ago