Commit graph

354 commits

Author SHA1 Message Date
Blue
115e78a530 Project: .editorConfig dont add line on catch or finally 2021-11-10 21:06:52 +01:00
Blue
6b9706ee9d GPU: Handle VRAM transfers by halfwords 2021-11-07 13:43:42 +01:00
Blue
f83552f43f CPU: Remove checked add/sub for OverflowException
It is slower than just checking it manually...
2021-10-02 19:50:43 +02:00
Blue
805f7d8d25 OpenTK: Update to 4.6.7 2021-09-26 14:12:25 +02:00
Blue
a6382e7454 MDEC: wip resumable block decoding 2021-07-17 19:13:34 +02:00
Blue
4744e0be95 BUS: Cleanup strings 2021-07-17 19:11:20 +02:00
Blue
4d7dd4b41f CDROM: refactor parameterBuffer to byte 2021-06-19 10:10:28 +02:00
Blue
4553cc5c6e CDROM: ResponseBuffer EnqueueRange from array params to stackalloc spans 2021-06-18 22:24:36 +02:00
Blue
3ce4395e9c Winform: Update to Naudio 2.0.1 (fixes .net 5.0.7 kill) 2021-06-18 21:53:22 +02:00
Blue
304a20380c Revert "Winform: Disable Sound to avoid .Net 5.0.7 Kill"
This reverts commit e0c0f9767a.
2021-06-18 21:52:31 +02:00
Blue
bde61a4348 MDEC: Move stackalloc out of the toRGB loop 2021-06-12 19:53:09 +02:00
Blue
e0c0f9767a Winform: Disable Sound to avoid .Net 5.0.7 Kill
Since .NET 5.0.7, the process is killed cause Naudio 2.0.
This commit disables sound output on Winform till there's a Naudio patch.
2021-06-12 19:37:40 +02:00
Blue
c41db1c90f SPU: deallocation pass 2021-06-05 09:07:41 +02:00
Blue
fba0793163 SPU: Use Sector XA Buffer instead of Queue
So allocations are avoided on each CDROM samples push.
2021-06-04 00:17:26 +02:00
Blue
35b2d81182 CDROM: Use Sector Raw Buffer 2021-06-04 00:15:32 +02:00
Blue
a8e8cb4cbd Sector: Support pre decoded XA and readShort 2021-06-04 00:14:27 +02:00
Blue
44c7560dd9 XA: deallocation refactor 2021-06-03 22:23:39 +02:00
Blue
23c7c9a80a CDROM: Don't push to CPU muted cdda 2021-05-30 10:27:11 +02:00
Blue
5e00e2dbe7 BUS: Verbose bios loading success / fail 2021-05-30 10:26:01 +02:00
Blue
0f95bb225d CDROM: Remove sector allocations, Span<T> DMA out.
Wip: Still allocating a sectors as queue from CDROM to SPU on pushCdBufferSamples
2021-05-29 17:51:50 +02:00
Blue
af5156f6ef Add: Sector, an spanized buffer/queue.
The CDROM doesn't need a real tail/head queue/enqueue function, as it only needs to one shot the fill of the sector and then dequeue.
Also Queue<T> doesn't have a Span<T> constructor and can't clean and "addAll" without allocating a new internal buffer array.
This little util class aims to try to avoid allocations as well as simplify the DMAs out.
2021-05-29 17:44:36 +02:00
Blue
c3b1599eb7 SPU: minor sampleVoice refactor 2021-05-29 17:23:57 +02:00
Blue
fa4ff07e81 CD: Open a filestream per track instead of per read 2021-05-28 22:21:11 +02:00
Blue
25e6636907 Audio: Update to NAudio 2.0 modularized Core and WinMM 2021-05-27 21:42:30 +02:00
Blue
561c04971a BUS: Fix ScrathPad, MemControl1 and SIO masks 2021-05-21 18:54:40 +02:00
Blue
c6b3d2c3b0 CPU: Simplify COP0 SR ISC Handling 2021-04-14 21:08:40 +02:00
Blue
e32231d4ae XADPCM: Use ReadOnlySpan 2021-04-10 13:07:23 +02:00
Blue
52cd906296 Winform: Sync underclock with main lib. 2021-04-10 13:06:58 +02:00
Blue
96132a5e64 Voice: Refactor ADPCM Tables to ReadOnlySpan 2021-04-05 11:00:56 +02:00
Blue
99e20ab2d1 Window: Handle drag and drop of PS .exe files 2021-04-04 20:04:15 +02:00
Blue
cf38a37474 SPU: Make room for last block interpolation samples on the current decoded samples array.
So getSample(i) is avoided and the array can be direct accessed even if interpolation kicks on <0.
2021-04-04 20:03:18 +02:00
Blue
aff4854047 Input: minor refactor 2021-03-21 14:31:28 +01:00
Blue
762b2b33ba WinForm: Support .EXE loading 2021-03-21 09:14:42 +01:00
Blue
d209f67927 Support EXE load 2021-03-20 11:35:03 +01:00
Blue
6b3ce43c83 BUS: Patch bios on EXE load 2021-03-20 11:34:25 +01:00
Blue
8ed9278d9e CPU: Remove 0x80030000 polling on EXE load 2021-03-20 11:33:27 +01:00
Blue
e2643c6659 CPU: Refactor. AggressiveInlining from func ptr
as it wasn't gonna get inlined anymore... Rerdered opcodes and moved from if else bools to Unsafe.As
2021-03-15 21:10:00 +01:00
Blue
3ae561e2ca Timers: Handle > 2 Timer access. Gran Turismo 2 tries to access here somehow... 2021-03-15 21:05:27 +01:00
Blue
a63bbbe77c CPU: Remove legacy opcode switch and comments 2021-03-14 16:58:29 +01:00
Blue
65f7022c7a CPU: Remove instr decode, load raw. 2021-03-14 16:33:08 +01:00
Blue
8331536041 GPU: Move texture and clut setup from raster
This avoids setting up again the same for quads
2021-02-27 15:33:41 +01:00
Pedro Cortés
4a759c4ee0
Update README.md 2021-02-27 11:26:30 +01:00
Blue
4b53de2741 GTE: Fix MVMVA flags, mx3 and tv2
aaaaaand. GTE is done.
2021-02-27 09:45:01 +01:00
Blue
c5325ff4a8 GTE: Refactor decoding and mvmva
Decoding the mvmva fields on each command was unneded as it was only used by mvmva itself.
2021-02-26 20:24:19 +01:00
Blue
ee3d81c323 GTE: Calculate sf on inst decode 2021-02-26 19:13:57 +01:00
Blue
b1fc62d532 GTE: Remove unneded CPU ref 2021-02-26 16:39:03 +01:00
Blue
0efcca7fd3 GTE: Handle RTPS/RTPT UNR Div
Among other things this fixes: Metal Gear Solid water, Crash Team Racing broken polys, Ridge Racer 4 weird road below the car...
2021-02-25 20:20:42 +01:00
Blue
a6f65cd775 CPU: minor refact 2021-02-24 23:50:09 +01:00
Blue
1f18aaac6c CPU: disable tests 2021-02-21 21:00:52 +01:00
Blue
e4515680ae GTE: Simplify SaturateRGB 2021-02-21 13:53:32 +01:00