Commit Graph

4064 Commits

Author SHA1 Message Date
Luke Usher bfa444d55a Fix FPS counter 2018-04-07 00:07:38 +01:00
Luke Usher f018ca461e Unpatch XAPI QueueUserAPC, seems to fix .bik hang 2018-04-07 00:00:52 +01:00
Luke Usher e0eeb142ca Only Update FPS counter & cap framerate in actual SWAP_PRESENT calls 2018-04-06 23:37:20 +01:00
Luke Usher c4c1df2f20 Change TexCoordIndex error to a warning 2018-04-04 16:54:15 +01:00
Luke Usher d7c27fdc87
Merge pull request #1035 from PatrickvL/picks
Various HLE D3D improvements
2018-04-04 16:52:15 +01:00
Luke Usher 130e0d91ca
Merge pull request #1036 from LukeUsher/various-experiments
Fix Debug Build & Nullptr Dereference
2018-04-04 16:51:44 +01:00
Luke Usher 5a977e65d6 Fix debug build 2018-04-04 16:37:11 +01:00
Luke Usher bd93e64c53 Fix a nullptr dereference in DSoundBufferTransferSettings 2018-04-04 16:21:57 +01:00
Luke Usher 6f55bcc6da
Merge pull request #1034 from LukeUsher/various-experiments
NVIDIA Experiment: Round 2
2018-04-04 15:49:32 +01:00
Luke Usher 357ede50e3 Use Doublebuffering 2018-04-04 15:39:42 +01:00
patrickvl 2820a584c0 D3D : Debug texture dumping works again, plus a slight optimization in EmuUnswizzleRect 2018-04-04 16:24:59 +02:00
patrickvl 2bc1288ee9 D3D : Removed no-longer used EmuAdjustPower2() 2018-04-04 16:19:00 +02:00
patrickvl 7be44e09ae D3D : Removed EmuUnswizzleTextureStages, it's no longer needed now we unswizzle when converting textures to host format in CreateHostResource 2018-04-04 16:18:23 +02:00
patrickvl 368aaf8bbb D3D : GetHostResourceKey on pixel containers now uses it's uniquely identifying values instead of the resource memory address, so changes in those are detected, and meanwhile duplicates will be converted to a host version only once. 2018-04-04 16:17:59 +02:00
patrickvl ef514f52ac D3D : SwitchTexture no longer alters the Xbox texture; Instead we use a copy. 2018-04-04 16:17:30 +02:00
patrickvl fc25603ee4 D3D : Determine texture dimensions via already existing tooling functions. This fixes the bump texture in BumpEarth XDK sample.
Also split up texture-format support array into 6 versions : texture vs surface, and normal vs render-target vs depth-stencil.
2018-04-04 16:16:58 +02:00
patrickvl 87e77493c6 D3D : Choose ARGB8 whenever possible after a failed CheckDeviceFormat() 2018-04-04 16:16:14 +02:00
patrickvl d8f6aefb00 D3D : Pass along the texture stage for which a texture needs to be created (so palette's can be applied correctly) 2018-04-04 16:15:50 +02:00
patrickvl 9a5d1ad858 D3D : Removed special resource detection (we don't create those anymore) 2018-04-04 16:15:17 +02:00
patrickvl 2fe6e99394 D3D : Fixed cartoon sample, by only applying texture expansion (of height/width to 4 instead of 1) for compressed formats. 2018-04-04 16:11:18 +02:00
patrickvl 7697fa6e22 D3D : Use CheckDeviceFormat before trying fallbacks, and use CreateDepthStencilSurface for depth stencil formats 2018-04-04 16:10:51 +02:00
Luke Usher 3a5a9dd42c
Merge pull request #1033 from LukeUsher/various-experiments
Finally fix Fibers, DOAX gets a little further now
2018-04-04 15:10:27 +01:00
patrickvl 94d3c6d75c Detect overflow of recompiled buffer in EmuRecompileVshDeclaration 2018-04-04 16:09:50 +02:00
patrickvl 11753744f0 D3D : Disable a number of function signatures that are no longer patched 2018-04-04 16:09:25 +02:00
Luke Usher 86b21b83e5 Finally fix Fibers, DOAX gets a little further now 2018-04-04 15:07:09 +01:00
Luke Usher 6e76ae52e2
Merge pull request #1031 from LukeUsher/various-experiments
NV2A Tweaks + String error
2018-04-04 13:34:48 +01:00
Luke Usher e5d4dacaa6 Fix an issue where copy_string_to_PSTRING_to would truncate data. Fixes hang in PGR2 2018-04-04 13:30:48 +01:00
Luke Usher 2a9ea70bc4 NV2A Tweaks/Optimisation 2018-04-04 10:42:51 +01:00
Luke Usher 4e7243c866
Merge pull request #1030 from LukeUsher/various-experiments
Fix FPS counter for LLE
2018-04-03 18:24:14 +01:00
Luke Usher 9fca583381 Fix FPS counter for LLE 2018-04-03 18:22:55 +01:00
Luke Usher d864ae36b9
Merge pull request #1029 from LukeUsher/various-experiments
NV2A Experiments + HLE Bugfix
2018-04-03 18:10:34 +01:00
Luke Usher ea14ecd5c9 Add some notes around flip stalling 2018-04-03 18:08:46 +01:00
Luke Usher c88a0ab90f Fix error in CountActiveD3DStreams 2018-04-03 18:03:05 +01:00
Luke Usher bae81988fa Move NV2A Swap into FLIP_STALL 2018-04-03 18:01:19 +01:00
Luke Usher ec383b897f
Merge pull request #1028 from LukeUsher/various-experiments
Minor NV2A tweak + LTCG experiment
2018-04-03 16:55:42 +01:00
Luke Usher 363c16002f Add patch for LTCG optimized D3DDevice_Swap 2018-04-03 16:53:23 +01:00
Luke Usher 574d28bafc Don't swap when NV2A is disabled 2018-04-03 15:52:33 +01:00
Luke Usher 03dff3b3df
Merge pull request #990 from RadWolfie/DSound-fixes
DSound fixes Part 1
2018-04-03 15:42:37 +01:00
Luke Usher 3db17d01cc
Merge pull request #1026 from LukeUsher/hack-use-all-cores
Add optional speedhack to use all available cores
2018-04-03 11:10:40 +01:00
Luke Usher c0be3b47da Add optional speedhack to use all available cores 2018-04-03 10:57:45 +01:00
Luke Usher 00050d74b4
Merge pull request #1023 from jarupxx/D3D8LTCG_DB
Introduced D3D8LTCG database
2018-04-03 10:20:48 +01:00
Luke Usher f60c6d7148
Merge pull request #1025 from LukeUsher/nv2a_framebuffer_size
Use real framebuffer size (NV2A LLE)
2018-04-03 10:19:38 +01:00
Luke Usher daa057830f Tweaking because of AMD crash... 2018-04-03 10:02:28 +01:00
RadWolfie 51de9851fa Now using accurate played check
Test case: Gauntlet Dark Legacy's first intro with distort audio noises.
2018-04-03 01:11:39 -05:00
RadWolfie 552ed094bf Fix conversion warn (Thanks Luke for reintroduce) 2018-04-03 01:01:01 -05:00
RadWolfie cc7e805e5e Raise DSound stream size limit
TODO: Need to merge both sizes into one. The real limit is 8MB which
split into 4KB page each which become total of 2047 SGE.
2018-04-03 00:13:25 -05:00
RadWolfie 969a4992a4 Fix memory leak on xbox audio buffer cache 2018-04-02 20:49:53 -05:00
jarupxx 672e559f93 Cleanup
3 D3D8LTCG OOVPAs have been merged into D3D8LTCG database

Verified with
-[3925] Nascar Heat 2002
-[4039] NBA 2K2
-[4432] Bruce Lee
-[4627] Battle Engine Aquila
-[4928] Shin Megami Tensei - Nine
-[5233] Midtown Madness 3
-[5455] Freaky Flyers
-[5659] Ninja Gaiden
-[5849] Grand Theft Auto - San Andreas
2018-04-03 08:02:50 +09:00
jarupxx 83f57d0b76 Add Lock offset value 2018-04-03 05:52:01 +09:00
jarupxx 3d7ddaa340 Initialize commits of HLEDB D3D8LTCG 2018-04-03 05:52:01 +09:00