Commit Graph

2866 Commits

Author SHA1 Message Date
Jaklyy 22f1b4d90c theoretically improve dma responsiveness?
in practice seems to make no difference...
2024-12-20 20:10:23 -05:00
Jaklyy 98d0a6b371 fix gxfifo stalls being borked under certain circumstances 2024-12-20 10:42:34 -05:00
Jaklyy e0ac68c9f2 Reapply "improve dma accuracy slightly"
This reverts commit 14c765d5ed.
2024-12-20 10:00:47 -05:00
Jaklyy 40527f8897 remove leftover junk, fix an error with resets 2024-12-20 09:49:38 -05:00
Jaklyy dd857e89ef fix an oversight 2024-12-20 00:33:08 -05:00
Jaklyy 6897e4a8be rework card read timings 2024-12-19 21:55:50 -05:00
Jaklyy 14c765d5ed Revert "improve dma accuracy slightly"
apparently it completely broke sm64ds for some reason
2024-12-19 21:54:37 -05:00
Jaklyy 0686523543 card reads are "double buffered"
means they can fetch a word in the background while a word is still waiting to be read.
Thanks Gericom!
2024-12-19 16:54:12 -05:00
Jaklyy 4493634a5b improve dma accuracy slightly 2024-12-19 15:39:16 -05:00
Jaklyy 4a598294a5 clean up a few errors 2024-12-17 23:29:47 -05:00
Jaklyy 6ef7a337cb small optimization to main ram dma 2024-12-17 11:07:37 -05:00
Jaklyy 0a5499cb19 fix wrong "running" variable being updated during 16 bit main ram dmas
this probably fixes something
2024-12-17 11:02:41 -05:00
Jaklyy e3c8746229 fix a bug preventing main ram dmas from doing their first cycle properly 2024-12-16 20:50:39 -05:00
Jaklyy cacf891330 Revert "run arm 7 first?"
Caused performance issues in games???
2024-12-16 13:13:45 -05:00
Jaklyy d383381260 ONLY queue missed gamecard dmas
gxfifo dma did not like that prior fix
2024-12-16 13:02:56 -05:00
Jaklyy 6d0ab97612 fix gamecard dma breaking w/ main ram contention
main ram dma on the arm9 is officially fully operational.
2024-12-16 12:33:13 -05:00
Jaklyy 7590c48471 Revert "revert arm9 main ram dma again (again (again))"
This reverts commit c90f10d056.
2024-12-16 11:45:14 -05:00
Jaklyy 67198a72bd why did i remove that
This reverts commit 45be951a0f.
2024-12-16 10:32:33 -05:00
Jaklyy 5c5f4364db run arm 7 first?
it's faster...?
2024-12-16 10:20:10 -05:00
Jaklyy c90f10d056 revert arm9 main ram dma again (again (again)) 2024-12-16 10:19:51 -05:00
Jaklyy 29421f1d27 re-enable mainram dma
it's not bugged, it's also not inaccurate.
something else is the issue...
2024-12-16 09:23:54 -05:00
Jaklyy e77c2011bc slightly optimize main loop 2024-12-15 22:02:41 -05:00
Jaklyy c40efab62f revert main ram dma
broke stuff
2024-12-15 22:01:44 -05:00
Jaklyy c96b49e9cd Revert "improve(?) irq handling"
This reverts commit 443ecb313d.
2024-12-15 21:48:27 -05:00
Jaklyy 93242e1189 revert most scheduler changes 2024-12-15 21:48:22 -05:00
Jaklyy 443ecb313d improve(?) irq handling
...i dont think this fixes anything
2024-12-15 20:51:13 -05:00
Jaklyy 45be951a0f this should be smarter 2024-12-15 18:48:35 -05:00
Jaklyy db1991276a tweak scheduling to be a little less gross 2024-12-15 18:40:21 -05:00
Jaklyy 5b07765eb5 misc tweaks to dma 2024-12-15 10:42:52 -05:00
Jaklyy 2247f17f4f implement a main ram burst restart behavior 2024-12-15 06:34:36 -05:00
Jaklyy d912429d8c comment out some replaced stuff 2024-12-14 23:36:28 -05:00
Jaklyy c902dcfc98 improve main ram dma timings 2024-12-14 23:23:00 -05:00
Jaklyy 2051d412d1 implement MR cont. for arm7 dma; also a hack?
the hack is to make arm9 dma contention work with prior improvements to synchronization
2024-12-14 17:17:44 -05:00
Jaklyy 4ea0e60e18 minor fix(?)
this should fix something?
2024-12-14 13:32:54 -05:00
Jaklyy 5e945669f5 hopefully reduce desync potential a little? 2024-12-14 10:45:08 -05:00
Jaklyy 610ac2491a disable main ram contention for arm9 dma
caused innumerable issues
will need a more comprehensive rewrite later
2024-12-14 09:38:02 -05:00
Jaklyy ac1d790d7e fix the system timestamp being run wayyyy too fast
oh no that was covering up SO many bugs hhhhsdfghhg
2024-12-14 00:15:17 -05:00
Jaklyy a445c0d32c this makes a bit more sense 2024-12-13 22:08:34 -05:00
Jaklyy cce5070077 probably not any faster 2024-12-13 21:32:15 -05:00
Jaklyy 456d07da03 unbork gxfifo stalls 2024-12-13 15:35:44 -05:00
Jaklyy 642f085975 probably unborks gxfifo stalls 2024-12-13 13:15:38 -05:00
Jaklyy 73be2f3e01 tweak dmas to be more accurate (actually less?) 2024-12-13 13:09:42 -05:00
Jaklyy d341260e5a dma rewrite 1 2024-12-10 21:23:02 -05:00
Jaklyy feb1cd562d clarify some more write buffer details 2024-12-10 12:04:43 -05:00
Jaklyy 96c8f67d5f implement bit 10 of exmemcnt 2024-12-10 08:04:00 -05:00
Jaklyy b048e0cbfd improve ExMemCnt handling and defaults 2024-12-09 19:30:47 -05:00
Jaklyy 8382769073 fix a main loop freeze; exmemcnt bit 15 starts set
fixes twilight menu
2024-12-09 15:52:50 -05:00
Jaklyy 52e14612b1 probably faster to directly access main ram? 2024-12-09 12:25:23 -05:00
Jaklyy 0111ee7fac micro-optimization 2024-12-09 11:11:24 -05:00
Jaklyy 918df047b8 cache line boundary align condition lut table 2024-12-09 10:03:47 -05:00