Connor McLaughlin
9b7512f7b8
GPU/HW: Implement automatic resolution scale from window size
2020-08-03 03:06:03 +10:00
Connor McLaughlin
96ba9198ef
GPU/HW: Expand lines into triangles before rendering
...
Fewer batches, consistent upscaling behavior.
2020-08-02 17:17:11 +10:00
Connor McLaughlin
0c1b637549
PGXP: Add initial implementation
2020-08-02 00:25:07 +10:00
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
2020-07-31 17:09:18 +10:00
Connor McLaughlin
d711baaa31
GPU/HW: Fix lines being one pixel too short
...
Fixes lines in screen wipe effect in Vagrant Story.
2020-07-25 02:37:01 +10:00
Connor McLaughlin
d1a2ebd8f3
GPU/HW: Eliminate CPU round trip on oversized VRAM writes
2020-07-11 20:35:33 +10:00
Connor McLaughlin
a08c398d4b
GPU/HW: Provide depth in vertex rather than computing
...
Fixes mask bit effects in Vulkan (e.g. Silent Hill).
Significantly reduces the number of mask bit refreshes in OpenGL/Vulkan.
2020-06-20 20:21:33 +10:00
Connor McLaughlin
49d11988bf
Core: Add Vulkan GPU renderer
2020-06-19 00:18:17 +10:00
Connor McLaughlin
c8e1881ea9
GPU/HW: Clear dirty rectangle when updating shadow texture
...
Fixes high GPU usage in Robbit mon Dieu in D3D11, should improve overall
performance slightly when VRAM copies are heavily used.
2020-06-02 21:45:38 +10:00
Connor McLaughlin
e368dbbadc
GPU: Implement non-interleaved interlaced rendering
...
Fixes screen shaking in True Pinball.
2020-05-26 03:18:05 +10:00
Connor McLaughlin
e058beb4b0
GPU/HW: Fix oversized VRAM copies writing out of bounds
...
Fixes jittering in Duke Nukem - Land of the Babes water effect.
2020-05-03 18:09:34 +10:00
Connor McLaughlin
9446587e8f
GPU/HW: Mask bit handling in hardware renderers
...
Fixes:
- Menu effect in Ghost in the Shell
- Incorrect text colours in menu of Dragon Quest VII
- Fade effect in TwinBee RPG
- Fog in Silent Hill
- Water in Duke Nukem - Land of the Babes
- Shadows in Ultraman - Fighting Evolution
and probably others.
2020-05-03 17:11:31 +10:00
Connor McLaughlin
5ad133a278
GPU/HW: Implement oversized copies on GPU
...
Fixes slowdown caused by this.
2020-04-19 22:30:55 +10:00
Connor McLaughlin
1757932b3a
GPU: Implement FIFO and timings
...
This will cause a slight performance loss. I've left some knobs in which
can be tweaked to mitigate this, but the goal is to be compatible with
all games which require them.
2020-04-19 01:17:28 +10:00
Connor McLaughlin
65ca8b9fe0
GPU/HW: Move logic from backend to GPU_HW class
2020-04-18 15:30:46 +10:00
Connor McLaughlin
3cfead36c4
Revert "GPU: Clamp coordinates to 11 bits after applying drawing offset"
...
This reverts commit 5302f83818
.
This is not the correct fix, and breaks other games.
2020-04-04 19:31:19 +10:00
Connor McLaughlin
2aecb570c1
GPU: Implement interlaced rendering in hardware backends
2020-04-04 00:24:37 +10:00
Connor McLaughlin
5302f83818
GPU: Clamp coordinates to 11 bits after applying drawing offset
...
Fixes flickering in some scenes (e.g. Galbadia Missile Base).
2020-04-04 00:10:45 +10:00
Connor McLaughlin
0b347e2151
GPU/HW: Implement flipped quad coordinate hack from beetle-psx
...
Fixes graphical glitches around the edges of flipped sprites.
2020-03-28 02:24:22 +10:00
Connor McLaughlin
e2e2b573c0
GPU/HW: Move drawing offset to CPU-side
...
Saves updating the uniform buffer.
2020-03-24 00:20:15 +10:00
Connor McLaughlin
6bb6249e86
GPU/HW: Print capabilities to log
2020-03-07 12:54:15 +10:00
Connor McLaughlin
635ab72b37
GPU: Implement "Scaled Dithering" option
...
Fixes #29 .
2020-03-01 00:05:31 +10:00
Connor McLaughlin
0690491883
GPU/HW: Fix potential crash in rectangle expansion
2020-02-28 22:58:34 +10:00
Connor McLaughlin
149cbf6457
GPU/HW: Properly implement too-large polygon culling
...
Replaces triangle strips with triangle lists, which has the added bonus
of not requiring flushing as many batches.
Fixes missing geometry in Vagrant Story.
2020-02-17 00:09:45 +09:00
Connor McLaughlin
9ac7b002e2
GPU/HW: Improve dirty rectangle tracking
...
Fixes title screen of Activision Classics and performance regression
from Vagrant Story motion blur fix.
2020-02-09 22:49:53 +09:00
Connor McLaughlin
4a3478b360
HostInterface: Add function to switch between sw/hw rendering
2020-01-24 14:51:53 +10:00
Connor McLaughlin
504510c242
GPU: Fix reading of write-combined GPU buffers
...
+100fps in recompiler modes
2020-01-16 14:36:10 +10:00
Connor McLaughlin
ffe90083d3
GPU: Refactor draw mode setting
2019-12-11 16:35:14 +10:00
Connor McLaughlin
67c67bbb66
GPU: Add basic texture filtering support
...
Still has issues around the edges of text.
2019-12-07 17:03:56 +10:00
Connor McLaughlin
024ed01bbb
GPU/HW: Set alpha to mask bit setting
2019-11-24 23:30:35 +10:00
Connor McLaughlin
bc5a247a4b
GPU/HW: Use dual-source blend to split alpha and mask
2019-11-24 23:28:01 +10:00
Connor McLaughlin
9ea7a8418c
GPU: Eliminate temporary buffer when reading back
2019-11-14 17:17:22 +10:00
Connor McLaughlin
3998b9684e
GPU/HW: GPU-based RGBA8->RGB5551 conversion for readbacks
2019-11-14 17:16:21 +10:00
Connor McLaughlin
cc7483ad58
GPU/HW: Only copy the dirty area to the VRAM read texture
2019-11-05 22:34:36 +10:00
Connor McLaughlin
da51d49d18
GPU/HW: Track VRAM fills/writes in dirty rectangle instead of invalidating
2019-11-05 22:12:39 +10:00
Connor McLaughlin
2c631aba5e
GPU: Move stats from renderer class to base classes
2019-11-05 19:44:17 +10:00
Connor McLaughlin
afbec85f89
GPU/HW: Track dirty area of VRAM shadow texture via drawing area
2019-11-05 19:19:49 +10:00
Connor McLaughlin
9de9cf3be2
GPU/HW: Add D3D11 renderer and refactor host interface/display
2019-11-04 00:39:48 +10:00
Connor McLaughlin
be81d08109
GPU/HW: Split shadergen to seperate class
2019-11-03 13:36:59 +10:00
Connor McLaughlin
91c99f0226
GPU/HW: Use uniform blocks for batch rendering
2019-11-03 13:18:43 +10:00
Connor McLaughlin
f7f5d45d7a
GPU: Fix incorrect VRAM fill colours in GL renderer
2019-11-03 01:02:05 +10:00
Connor McLaughlin
ba1a5a5ca9
GPU: Fix batching regression (draws split on texture page)
2019-11-03 00:36:47 +10:00
Connor McLaughlin
4143469353
GPU: Use texture buffer/fragment shader for VRAM writes
2019-11-02 23:43:20 +10:00
Connor McLaughlin
2b17cfd365
GPU: Use streaming buffers for CPU->VRAM transfers
2019-11-02 22:31:15 +10:00
Connor McLaughlin
407fee9ec3
GPU: Add base functionality for GL streaming buffers
2019-11-02 22:21:56 +10:00
Connor McLaughlin
c52c0608ae
GPU: Move resolution scale to hardware backend only
2019-11-02 01:32:27 +10:00
Connor McLaughlin
c9feb7ea07
GPU: Add force true color setting
2019-11-02 00:31:25 +10:00
Connor McLaughlin
ac82383abe
GPU: Implement dithering on OpenGL backend
2019-11-01 23:11:30 +10:00
Connor McLaughlin
1c79737021
GPU: Simplify batch state
2019-11-01 21:47:45 +10:00
Connor McLaughlin
5626d4f282
GPU: Fix texcoord off-by-one error in rectangles
2019-10-29 23:42:08 +10:00
Connor McLaughlin
9b56499afa
Refactoring settings/support changing GPU renderer at runtime
2019-10-26 12:55:56 +10:00
Connor McLaughlin
2d0dd03705
GPU: Implement weave deinterlacing
2019-10-23 15:36:37 +10:00
Connor McLaughlin
7448cbaf9d
GPU: Copy-less processing from DMA
2019-10-13 17:33:20 +10:00
Connor McLaughlin
5627955900
GPU: Two-pass rendering for B-F transparency
2019-10-06 13:09:04 +10:00
Connor McLaughlin
bc8e035e37
GPU: Implement texture window
2019-10-05 23:27:48 +10:00
Connor McLaughlin
c2baa7e834
GPU: 24-bit display depth support
2019-10-05 12:31:48 +10:00
Connor McLaughlin
a9313b2958
GPU: Fix transparency not being enabled in shader
2019-10-04 23:31:26 +10:00
Connor McLaughlin
4d22bec8fd
GPU: Add some missing state reset
2019-10-04 20:34:29 +10:00
Connor McLaughlin
bddbab9d60
Rename to DuckStation
2019-10-04 13:54:09 +10:00