Commit Graph

4354 Commits

Author SHA1 Message Date
Luke Usher 564826e38d Fix an issue where AutoDepthStencilFormat of D16_LOCKABLE caused CreateDevice to fail 2018-05-03 23:17:44 +01:00
Luke Usher 4cc918881d
Merge pull request #1126 from LukeUsher/change-default-rdtsc
Make new RDTSC patch the default
2018-05-03 21:35:37 +01:00
Luke Usher e54e7fbfcf Make new RDTSC patch the default, the old method is optional 2018-05-03 21:23:09 +01:00
Luke Usher 07bad7b1c6
Merge pull request #1123 from jackchentwkh/RDTSC-Patch
Repropose RDTSC patch hack
2018-05-03 18:55:49 +01:00
Luke Usher a9f81d778c
Merge pull request #1125 from jackchentwkh/D3DDevice_BeginPush_two_arg
Quick Fix for 4531 BeginPush OOVPA
2018-05-03 18:54:53 +01:00
jackchentwkh f656648c2c Add BeginPush OOVPA for 4531, tested with crazi taxi 3.
add 4531 to BeginPush OOVPA registration.
revise BeginPush2 loging message.
2018-05-04 01:02:45 +08:00
Luke Usher 45b4a62b65
Merge branch 'master' into RDTSC-Patch 2018-05-03 16:53:33 +01:00
Luke Usher 0d8f1dd269
Merge pull request #1124 from jackchentwkh/D3DDevice_BeginPush_two_arg
Add D3DDevice_BeginPush2 patch for XDK 4134
2018-05-03 16:43:03 +01:00
jackchentwkh 3b8250c598 Add more remarks.
we shall use scaled PerformanceCounter all the time no matter we patched the rdtsc or not.
2018-05-03 23:40:27 +08:00
jackchentwkh cd60b7bbf8 put deleted code back with remarks. 2018-05-03 22:59:13 +08:00
jackchentwkh c5fb332601 add D3DDevice_BeginPush2 for XDK4134
Rallisport uses this version.
2018-05-03 21:55:34 +08:00
Luke Usher fe464da7fd
Merge pull request #1109 from PatrickvL/viewport_scaling
Viewport scaling
2018-05-03 14:06:23 +01:00
jackchentwkh 557ccc13a0 restore hack option
only patch rdtsc when the hack option is selected
2018-05-03 20:38:34 +08:00
jackchentwkh e90c2f659d Using pattern matching for rdtsc search.
exclude certain false positive.
2018-05-03 19:51:33 +08:00
patrickvl ccd82a8e0f HLE : Configurable viewport scaling (as a hack) 2018-05-02 19:10:03 +02:00
Luke Usher 7015aaa07b Return => Continue 2018-05-02 21:51:07 +08:00
Luke Usher e6235bb013 Avoid false positives using method derised by jackchen 2018-05-02 21:51:07 +08:00
Luke Usher 3e516f6b0d Oops, don't break after finding one rdtsc in a section 2018-05-02 21:51:07 +08:00
Luke Usher 8f63dffd98 Fix off-by-one error in rdtsc patch 2018-05-02 21:51:07 +08:00
Luke Usher 7f97ebf71f Fix false positive detecion in ,data segment in some titles 2018-05-02 21:51:07 +08:00
Luke Usher e53213f056 Patch rdtsc instructions 2018-05-02 21:51:07 +08:00
Luke Usher d24b7e54fd
Merge pull request #1116 from jarupxx/doc
Added D3D8LTCG Patterns to documentation
2018-05-02 13:57:06 +01:00
jarupxx 75a9fcac6a Added D3D8LTCG Patterns to documentation
This archive contains most of D3D8LTCG Library for XDK 3925, 4039, 4432, 4531, 4627, 4721, 4831, 4928, 5028, 5120, 5233, 5344, 5455, 5558, 5788, 5849
2018-05-02 21:52:53 +09:00
PatrickvL c7c964394b
Merge pull request #1113 from jackchentwkh/master
RAW pushbuffer handling improve
2018-05-01 22:18:06 +02:00
jackchentwkh f88ed6f7fd Fix method 1800
Restore the mis-deleted pIndexData initiation.
Correctly calculate dwCount with 16 bit element.
NO_INCREMENT flag implementation (by guess, ha!)
2018-05-01 23:13:53 +08:00
PatrickvL 7ac82d5de1 HLE : GetViewport scales host viewport back to Xbox dimensions (some titles might get less confused by the return value) 2018-05-01 17:03:49 +02:00
Luke Usher 6541a62e23
Merge pull request #1114 from RadWolfie/DSound-fixes-part2.1
DSound-fixes-part2.1 (performance update)
2018-05-01 06:30:47 +01:00
RadWolfie 270a821ad5 Replace static size to dynamic array for DSound
Both DS Buffer and Stream are now using C++ std vector instead of static
size array which is in C.

It should improve performance for lower-end computers. Before, high-end
computers will only notice very light performance impact. Now appear to
be no performance impact unless certain titles are preserving maximum
size.
2018-04-30 23:29:38 -05:00
jackchentwkh 4bb24dc19a raw pushbuffer process fixup
add NOP method support
add TRANSFORM_CONSTANT_LOAD and TRANSFORM_CONSTANT method tips.
improve unkonwn method handling by skipping parameters indicated by dwCount
add pushbuffer size check to prevent overflow.
2018-05-01 10:48:46 +08:00
PatrickvL 43c77a11ec
Merge pull request #1112 from jackchentwkh/pushbuffer_fixup_fix
Data address interpretation fix for PushBuffer and Fixup Data
2018-04-30 09:24:06 +02:00
jackchentwkh 5fbb91c6a6 Fix address interpretation of PushBuffer Data and Fixup Data.
Include the fixup code without using function
2018-04-30 09:22:39 +08:00
patrickvl 6a897212a7 HLE : Refactored window resizing, so it's done only when needed, only in the GUI process. 2018-04-29 22:33:03 +02:00
patrickvl bed1d7bfc7 HLE : Fake field rendering by halving the perceived height in SetViewPort 2018-04-29 22:33:03 +02:00
patrickvl 8fa81b99af HLE : Post-rebase fixes 2018-04-29 22:33:03 +02:00
patrickvl 2654eaae3c HLE : Limit width/height to desktop resolution 2018-04-29 22:33:03 +02:00
patrickvl df81c52372 HLE : Resize window according to configuration 2018-04-29 22:33:02 +02:00
patrickvl 73b96ac783 HLE : Disable calling the Xbox SetViewport code, as it causes regressions.
Also start collecting test-cases for D3DDevice_GetViewportOffsetAndScale
2018-04-29 22:33:01 +02:00
patrickvl eff073e518 HLE : Use CxbxGetPixelContainerMeasures to get overlay dimensions 2018-04-29 22:33:01 +02:00
patrickvl 25e32d8d7c HLE : Post-rebase fixes 2018-04-29 22:33:00 +02:00
patrickvl 0ec58ff4b8 HLE : Cache render-target (and depth-stencil while we're at it) for use in SetViewPort 2018-04-29 22:33:00 +02:00
PatrickvL d3a278a5aa HLE : Scale viewport from Xbox to host (this might fix some drawns to the upper-left corner) 2018-04-29 22:33:00 +02:00
Luke Usher e3c681b7a1
Merge pull request #1111 from Cxbx-Reloaded/revert-1087-emux86_unicorn
Revert "Replace EmuX86's interpreter with Unicorn"
2018-04-29 20:17:58 +01:00
Luke Usher 317b9dfe00
Revert "Replace EmuX86's interpreter with Unicorn" 2018-04-29 20:16:03 +01:00
Luke Usher 2d1de80459
Merge pull request #1110 from jackchentwkh/multi_controller
Multi Controller Support with Xinput
2018-04-29 20:12:19 +01:00
ergo720 f658ccf15a
Merge pull request #1073 from RadWolfie/DSound-fixes-part2
Dsound fixes part2
2018-04-29 20:15:40 +02:00
RadWolfie 3dec725f76 Remove debug trace from release build 2018-04-29 12:40:44 -05:00
RadWolfie e591409cca Fixed no audio
It was cause by hRet not set to DS_OK, original value returned to title
was out of memory flag.

This fix titles:
* Mafia
* JSRF
* Taz - Wanted
* etc
2018-04-29 12:40:44 -05:00
RadWolfie 53ac646e2e Fix Mafia crash
If there's no packets, then there's no reason to process stream.
2018-04-29 12:40:44 -05:00
RadWolfie 194e0dc0e8 Ctrl pan cannot be used with ctrl 3D flag 2018-04-29 12:40:44 -05:00
RadWolfie 09eb0ef6be Removed unused 2 local vars 2018-04-29 12:40:44 -05:00