Commit Graph

5567 Commits

Author SHA1 Message Date
PatrickvL 2e5b9562e0
Merge pull request #1581 from LukeUsher/rdtsc-vsync-and-timing
Respect Xbox presentation interval
2019-04-09 09:20:46 +02:00
Luke Usher 843c65a11c Add dummy item where UncapFramerate used to sit, add note to explain why 2019-04-08 14:58:45 +01:00
Luke Usher 2ad5cfce8d Feedback 2019-04-08 11:01:42 +01:00
Luke Usher 8b2e758377 Respect Xbox presentation interval
This allows us to improve our frame-limiter, so that we can disable it
if a game does not require a fixed frame-rate, and enable it for titles
that do.

Result:
XDK Samples can now run at high frame-rates (100+ fps) without effecting actual
speed (just like on real hardware)

Dashboard can reach over 100fps, and still run at the correct speed

JSRF and other titles that tie game speed to frame-rate are limited to
60FPS.

Fixed broken VSYNC handling too: Disable VSYNC has been broken since the
D3D9 port, perhaps before then.
2019-04-08 08:11:12 +01:00
PatrickvL 13daf887c0
Merge pull request #1578 from LukeUsher/fix-render-texture-states
Minor Cleanup of Render State and Texture State handling
2019-04-07 13:07:05 +02:00
Luke Usher a0e8bb8973 Feedback 2019-04-07 09:21:11 +01:00
Luke Usher 372de28d7b Reduce D3DTOP >= 4361 exception to >= 4134: Fixes DOA3 PAL 2019-04-06 14:07:43 +01:00
Luke Usher 04b311ec8c Restore StageIndex-- 2019-04-05 15:09:21 +01:00
Luke Usher 4df55f2f24
Merge pull request #1579 from ergo720/fix_ke_deadlock
Fix a deadlock in KiTimerExpiration caused by KeWaitForSingleObject
2019-04-05 14:45:59 +01:00
Luke Usher 67569172cb More point sprite tweaks 2019-04-05 14:45:00 +01:00
Luke Usher 2d8f5124da Improve mappings of D3DTOP values for earlier XDKs
TODO: Verify when the values changed, it must be somewhere between 3911 and 4361 but where?
2019-04-05 14:30:00 +01:00
ergo720 9270091d99 Fix a deadlock in KiTimerExpiration caused by KeWaitForSingleObject
This also fixes LLE USB not working for homebrews
2019-04-05 14:09:06 +02:00
Luke Usher a4741d5c3e Fix issue where Portable Mode would still default to AppData for EmuDisk 2019-04-05 10:48:23 +01:00
Luke Usher 9897c8daeb Explicitly map RenderState values
Prevents incorrect mappings from going accidentally un-noticed
Also implements X_D3DRS_WRAP2/X_D3DRS_WRAP3, as well as D3DWRAPCOORD_3 which were previously ignored.
2019-04-05 09:44:54 +01:00
Luke Usher c37fe2595e Fix broken textures caused by off-by-one error (solve regressions) 2019-04-05 09:42:30 +01:00
Luke Usher 21377baf93 Fix broken/incorrect X_D3DTSS_ALPHAOP values.
Fixes broken cloth polygons in Dead or Alive 3.
2019-04-04 20:07:51 +01:00
Luke Usher 11daaac408 Remove EmuD3DRenderStateSimpleEncoded, use DxbxRenderStateInfo instead
This code is easier to maintain, easier to extend, and removes more
legacy cruft from original Cxbx.
2019-04-04 14:32:15 +01:00
Luke Usher f6c2544c22 Slightly better way of handling Point Sprites in XbState 2019-04-03 12:03:36 +01:00
Luke Usher ed559e5fd6 Cleanup XbState code: Preparing for bug fixes/improvements 2019-04-03 11:47:32 +01:00
PatrickvL f58d3ce6cf
Merge pull request #1577 from LukeUsher/tweaking
Cleanup XbConvert as a whole: Less magic, more mapping, more logging of unsupported features
2019-04-02 14:15:22 +02:00
Luke Usher 7d4e260c33 Cleanup XbConvert as a whole: Less magic, more mapping, more logging of unsupported features 2019-04-02 11:16:14 +01:00
Luke Usher f2d326e2cd
Remove 'stable' link to reduce confusion. 2019-04-01 16:20:56 +01:00
RadWolfie 1affa2a680 hotfix for convert uint16_t to uint32_t as should be for nBlockAlign equation 2019-03-28 00:26:50 -05:00
RadWolfie 274c6fd083
Merge pull request #1575 from LukeUsher/bug-hunting
Implement CDirectSoundStream_GetInfo
2019-03-27 23:33:45 -05:00
Luke Usher 70531f6cdb Stop SetScreenSpaceOffset from spamming log files 2019-03-27 23:12:01 -05:00
Luke Usher e7f65b55f1 Implement CDirectSoundStream_GetInfo proper 2019-03-27 23:12:01 -05:00
RadWolfie 52357b7ac8 fix nBlockAlign equation 2019-03-27 22:14:43 -05:00
PatrickvL d3730519d3
Merge pull request #1574 from LukeUsher/use-standard-types
Use standard types from cstdint rather than custom typedefs
2019-03-27 17:14:02 +01:00
Luke Usher aeca3d3d92 Use standard types from cstdint rather than custom typedefs 2019-03-27 15:54:17 +00:00
PatrickvL 352f619e7c
Merge pull request #1573 from LukeUsher/gunvalkyre-pal
Add GunValkyre PAL (IG-023) to Input Hack list
2019-03-27 15:35:44 +01:00
Luke Usher 8e530e3ec6 Add GunValkyre PAL (IG-023) to Input Hack list 2019-03-27 13:55:43 +00:00
RadWolfie 0fdc7ec7ae
Merge pull request #1572 from LukeUsher/nvnet-revisited
Introduce Network Support (System Link/Lan)
2019-03-26 11:08:46 -05:00
Luke Usher 21b51684f2 More tab->space 2019-03-26 15:49:38 +00:00
Luke Usher ec2ae6e95a Line Endings 2019-03-26 15:43:34 +00:00
Luke Usher 167603bbc4
Merge pull request #1570 from NZJenkins/fix_warnings
Fix warning passing ushort to set1
2019-03-26 11:14:49 +00:00
Luke Usher 6b6d0edb43 XQEMU NVNET credit 2019-03-26 09:18:15 +00:00
Luke Usher 0c6e9d1b10 ASCII art + log changes 2019-03-26 08:07:12 +00:00
Luke Usher 6a4c7e8dc9 tab to spaces in Cxbx.rc 2019-03-26 08:04:36 +00:00
Luke Usher 66d8e27906 Bump settings version 2019-03-26 08:03:36 +00:00
Luke Usher cfabb7f09b Remove docs/examples for pcap 2019-03-25 22:27:48 +00:00
Luke Usher af8cc693df Fix eeprom Reset 2019-03-25 22:26:31 +00:00
Luke Usher 20aa13b44e Rebuilding network support from NVNet Branch
Randomly generate Mac and Serial for new EEPROMs: Thanks dracc
Delay load pcap: Allows the emulator to run (without networking) when pcap isn't present
2019-03-25 19:20:34 +00:00
Anthony Miles ca6c4bf035 Fix warning passing ushort to set1 2019-03-23 22:49:10 +13:00
PatrickvL 528ec0c926
Merge pull request #1568 from ergo720/timer_slow_cpu
Fix a bug in KiClockIsr affecting slower host CPUs
2019-03-20 14:38:38 +01:00
ergo720 d370c89a44 Fix a bug in KiClockIsr affecting slower host CPUs 2019-03-20 14:16:25 +01:00
RadWolfie b31f412c04
Merge pull request #1563 from ergo720/copyright_update
Update copyright texts
2019-03-12 13:14:54 -05:00
ergo720 00cbd82cd9 Squashed commit (Update copyright texts) 2019-03-12 18:58:24 +01:00
PatrickvL bb8bb334d1
Merge pull request #1567 from ergo720/rsa_update2
Alternative RSA implementation
2019-03-12 10:27:03 +01:00
ergo720 7829d7d1eb Use LF line ending in gitmodules 2019-03-11 22:49:16 +01:00
ergo720 9651cc8ba6 Fixed typo in mbedtls_swap_endianness 2019-03-11 22:45:38 +01:00