Commit Graph

5232 Commits

Author SHA1 Message Date
RadWolfie 8c31d5e24e Fixes and tuneup
* Reduce duplicate methods perform same task into one simple function.
* Use EmuShared to obtain updated log settings instead of WM_COPYDATA message.
* FIXED: Set log config for second GUI process
* FIXED: Proper update logging config to EmuShared instead of repeatly send when it is indeed in use.
  * Without this fix, it will affect other GUI process emulating a title.
2018-08-15 18:49:42 -05:00
ergo720 54f95fc33b Merge branch 'develop' of https://github.com/Cxbx-Reloaded/Cxbx-Reloaded into logger 2018-08-15 23:16:16 +02:00
ergo720 430e3f1eea Fix an issue where relaunched xbe's were still using the old logging settings 2018-08-15 00:37:41 +02:00
Luke Usher 0b0c3429c4
Merge pull request #1389 from LukeUsher/performance-tuning
Performance tuning: First batch
2018-08-14 21:55:00 +01:00
ergo720 a3b21dc7bf Also make LOG_TEST_CASE active on release builds as well 2018-08-14 22:24:02 +02:00
Luke Usher 916a11cb1c A cleaner solution to the previous commit 2018-08-14 15:39:15 +01:00
Luke Usher 2b63163f6b Allow multiple sections with the same name, but different offsets. TODO: A better fix for this 2018-08-14 14:50:44 +01:00
ergo720 a5d97e6be0 Use LOG_PREFIX as an intrinsic parameter of the debug macros 2018-08-14 14:51:38 +02:00
ergo720 82f429f3c9 Fixed LoggedModules bug + refactored log gui + allow to print debug messages also on release builds 2018-08-14 13:50:58 +02:00
Luke Usher 737705063d Let Vertex Buffer conversion take StartIndex as a parameter
This boosts Dashboard 4920 from ~20FPS to 60FPS on my machine.
2018-08-14 10:10:29 +01:00
Luke Usher c62519932a Let the compiler automatically generate parallel code where possible. 2018-08-14 10:08:51 +01:00
ergo720 524fb1f06d Forgot to use to_underlying in some places 2018-08-13 23:10:29 +02:00
ergo720 1810c4dae0 Small fixes 2018-08-13 21:51:07 +02:00
ergo720 469f7e9f43 Improvements 2018-08-13 20:50:54 +02:00
ergo720 ca1bda76c8 Bug fixes 2018-08-13 20:50:54 +02:00
ergo720 26c61b5381 Added log window to GUI 2018-08-13 20:50:54 +02:00
ergo720 00ed9cfe00 Allow cxbxr to build with new logging 2018-08-13 20:50:54 +02:00
ergo720 069767174c Huge logging refactoring (doesn't build yet) 2018-08-13 20:50:54 +02:00
ergo720 47f79d29d7 Damn, also update these ones 2018-08-13 20:50:54 +02:00
ergo720 c66426b6b3 Finished logging refactoring 2018-08-13 20:50:54 +02:00
ergo720 af8e8526dc Refactoring logging (in progress) 2018-08-13 20:50:54 +02:00
ergo720 85ac039e62 Added logging leven and module 2018-08-13 20:50:54 +02:00
RadWolfie 1926e0428b
Merge pull request #1386 from PatrickvL/SetVertexData_fixes
Set vertex data fixes
2018-08-13 12:53:03 -05:00
PatrickvL d501ac0745 Set default vertex colors according to persistent usage vertex shader flags. 2018-08-13 11:29:04 +02:00
PatrickvL 4a44af0d03 Introduced and used VshHandleToXboxVertexShader(), preventing a potential issue loosing the high-bit 2018-08-13 11:26:40 +02:00
RadWolfie d58d2b29cb Possible permanent solution commit 2018-08-13 09:23:30 +02:00
RadWolfie 463c208cb1 Minor fixup for extra and missing tabs from pull request. 2018-08-12 12:02:30 -05:00
PatrickvL 95899d648e
Merge pull request #1384 from Voxel9/SetVertexData-Hotfix
D3D: Fix vertex diffuse colors not initializing properly
2018-08-12 18:54:58 +02:00
Voxel f3f8d5d0a3 Get rid of global variable. 2018-08-12 16:54:02 +01:00
Voxel 738daf8bae Tab spacing consistency 2018-08-12 14:10:33 +01:00
Voxel 9c3a3e8d58 Fix vertex diffuse colors not initializing properly/use proper diffuse values. 2018-08-12 13:04:20 +01:00
PatrickvL 46f900f88c
Merge pull request #1383 from revel8n/shader_improvements
Shader improvements
2018-08-11 18:34:31 +02:00
revel8n 257f48f3f3
Initial change to improve compilation of pixel shaders
- Update enumeration with initial handler of 'texld' instruction for ps version 1.4
- Changed fake register assignments to be against 't#' registers as they become read-only in ps version > 1.4 and need to be replaced by the increased number temporary ('r#') registers in arithmetic instructions in all cases
- Added check for "constant with modifier" optimization within 'CombineInstructions' to resolve conflict with 'FixConstantModifiers' optimizations
- Moved call to 'CombineInstructions' earlier in the optimizations in order to catch cases created during xbox specific instruction translations before they are modified by other optimizations that then made the patterns unrecognizable
2018-08-11 08:22:10 -05:00
revel8n 7b2e001cff
Ensure usage index is set on position declaration to ensure validity when more than one is used 2018-08-11 07:59:21 -05:00
PatrickvL d9c0145d84
Merge pull request #1380 from RadWolfie/dinput-hotfix
Fix controller's input conflict between DInput and XInput controllers
2018-08-11 06:40:18 +02:00
RadWolfie c9d68118d4 Fix controller input conflict between DInput and XInput controllers 2018-08-10 16:13:46 -05:00
Luke Usher 5ba5da9617
Merge pull request #1377 from revel8n/vertex_shader_improvements
Vertex shader improvements
2018-08-09 19:34:26 +01:00
Luke Usher 114041f3a8 Fix Zapper! 2018-08-09 19:21:41 +01:00
Luke Usher 5b45eba1a9 Implement dcl overrides: Fixes VertexShaders XDK sample 2018-08-09 15:50:53 +01:00
revel8n 9e0e367d15
Update vertex shader compilation to version 2.x
- Added define for max temporary register count
- Added define for max instruction counts
- Updated address register accesses to use 'mova' instruction
- Updated shader versions to '2.x'
- Updated shader instruction truncation logic to use max instruction define
- Updated register usage arrays to use max temporary register define
- Updated register usage logic to make use of 'NumTemps' vertex shader caps
2018-08-09 05:11:43 -05:00
revel8n aebfde5df5
Ensure correct swizzle is used for instructions that only allow for a single swizzle component
- Updated commented out DXBX method to work with current code structure
- Default swizzle to .x component per direct3d documentation (needs further verification)
- Updated logic to only apply RSQ swizzle when not already referencing a single component
2018-08-09 05:04:43 -05:00
revel8n 5c801b2a05
Ensure write masks are excluded for oPts register 2018-08-09 04:56:20 -05:00
revel8n 26f1176cec
Ensure token traversal does not overrun declaration size
- Updated parameters to include DeclarationSize in order to ensure accesses do not go beyond allocated memory
2018-08-09 04:53:14 -05:00
RadWolfie 99fb143a04
Merge pull request #1376 from RadWolfie/settings-ini-hotfix
Settings class hotfix
2018-08-08 16:22:09 -05:00
RadWolfie d5a9a3ece1 Do not append string twice 2018-08-08 16:11:06 -05:00
RadWolfie 1f0c6bda5f Fix load default settings on first run.
Confirmed tested on my computer with default value.
2018-08-08 16:00:16 -05:00
RadWolfie 4182df723f Fix to support other compilers by include experimental path 2018-08-08 15:29:35 -05:00
RadWolfie 0a5789228a convert 2 dupliate methods into a function
Plus use std::string instead of char array for prevent buffer overflow.
2018-08-08 15:28:53 -05:00
RadWolfie 91168833f1 Enforce use string terminate after strncpy call. 2018-08-08 14:32:11 -05:00
Luke Usher dd32032426 oops 2018-08-08 16:19:55 +01:00