Commit Graph

5567 Commits

Author SHA1 Message Date
RadWolfie 8af7431810 Fix std output not being outputting 2018-08-20 14:34:57 -05:00
RadWolfie d22dd8c446
Merge pull request #1399 from RadWolfie/misc-update
Misc update
2018-08-19 15:27:03 -05:00
RadWolfie 527f92e1d2 Improve patching and detecting rdtsc patched speed. 2018-08-19 15:22:34 -05:00
RadWolfie 5aa645dafa Fix F10 hotkey
Plus D3D8 handling of returns for EmuMsgProc function is wrong.
2018-08-19 15:13:54 -05:00
RadWolfie d2b8b30199
Merge pull request #1395 from RadWolfie/gui-kernel-ipc-improvement
BATCH: IPC improvement, features, and bug fixes
2018-08-19 10:55:06 -05:00
RadWolfie 375adb32df Contain two fixes
* Ensure returns are checked for is printable or not.
* Forgot to include a set to preserve Kernel log enabled to EmuShared when pressed F8 hotkey.
2018-08-19 01:09:42 -05:00
RadWolfie 0df1a19a9a Fixed no audio when enter faux fullscreen before DirectSoundCreate was called. 2018-08-18 22:28:11 -05:00
Luke Usher 8180b64353
Merge pull request #1398 from LukeUsher/fix-exp-instruction
Replace use of EXP in Xbox Shaders with FRC
2018-08-18 09:16:41 +01:00
Luke Usher 8dcda4d47f Replace use of EXP in Xbox Shaders with FRC
Xbox Implements EXP as "extract the fractional component" but PC
implements EXP as "Provides full precision exponential 2x."

This can be resolved by replacing the instruction with FRC, which is
implemented by D3D on PC as "Return the fractional portion of each
input component."

This fixes the broken vertices on the player model in THP2X
2018-08-18 09:12:07 +01:00
RadWolfie ded5a771c0 Revert "Make g_bPrintfOn thread-safe"
This reverts commit 7552218dac.
2018-08-17 15:41:26 -05:00
RadWolfie 3a09751e9e Show full detail of log level. 2018-08-17 15:21:28 -05:00
RadWolfie 2f87d23e4a Put log_ as beginning of the functions. 2018-08-17 14:33:31 -05:00
RadWolfie 7552218dac Make g_bPrintfOn thread-safe 2018-08-17 13:34:17 -05:00
RadWolfie 48519a99f3 Add extra line @GXTX is right... 2018-08-17 05:15:50 -05:00
RadWolfie be57dd8ba5 3 tasks requested by @PatrickvL are done
However, GUI's console isn't outputing the log filter info... seems like there's a bug with std::cout for GUI application?
2018-08-17 05:07:30 -05:00
RadWolfie 047329cf20 Minimalize reboot message 2018-08-17 04:41:40 -05:00
RadWolfie 1fff9a8306 use unsigned integer since index is acting as offset 2018-08-17 04:32:15 -05:00
RadWolfie f7069152c4 Fixed missing GUI log indication 2018-08-17 02:35:38 -05:00
RadWolfie 58f6b200ac Fix one last thing for AppVeyor to be able build. 2018-08-16 17:35:56 -05:00
RadWolfie 54991e899b Also fix MSpF counter 2018-08-16 17:09:29 -05:00
RadWolfie b501642b7c Fix remaining corruptions... 2018-08-16 16:50:21 -05:00
RadWolfie fa3327245f Include separator indication in the log after reboot. 2018-08-16 16:30:23 -05:00
RadWolfie cb871d8957 Batch of adjustments and add features
* FIXED: Use existing WM_PARENTNOTIFY instead of GUI's.
* Put each status feature into their own function.
* IMPROVED: Use RefreshAllStatus when emulation is running.
  * UpdateCaption is not require for constant update menu status.
  * DrawMenuBar is necessary to get proper update status. (Without it, you have to move your mouse over it to get new update status shown.)
* NEW: Log indicator for both GUI and kernel process is shown on right side of LED icon.
* NEW: Log file now perform appand to file instead of overwrite it base on boot status.
2018-08-16 16:12:18 -05:00
RadWolfie 732d35b1f7 Move LLE flags and LED into message sender instead of shared memory.
Plus prepare log indication status in GUI.

NOTE: If move into ipc_send_gui_update will spam GUI's message system (one message per frame). Think about uncap framerate can skyrocket to 1000s per second. Depending on GPU hardware.
2018-08-16 16:12:18 -05:00
RadWolfie a185690160 Implement IPC interface support 2018-08-16 16:12:18 -05:00
Luke Usher 6d15ab07d3 Revert "Remove __try/__catch blocks: Vectored Exceptions made this
unnecessary"

This reverts commit 1ff481ac0a.
2018-08-16 22:05:11 +01:00
Luke Usher 1e53620385
Merge pull request #1394 from LukeUsher/more-performance-tuning
More performance tuning
2018-08-16 20:46:29 +01:00
Luke Usher 1ff481ac0a Remove __try/__catch blocks: Vectored Exceptions made this unnecessary 2018-08-16 20:35:58 +01:00
Luke Usher 62f2f8dc80 Stop non-xbox threads from burning too many cycles. Slight performance boost (1-5fps in JSRF on my machine) 2018-08-16 20:31:20 +01:00
Luke Usher 736ed4033c
Merge pull request #1393 from ergo720/mm_boot_layout_fix
Persist memory layout across quick reboots
2018-08-16 20:30:06 +01:00
ergo720 397efc08fc Bug fixes 2018-08-16 20:57:00 +02:00
ergo720 67b5b9b341 Memory layout 2018-08-16 16:27:45 +02:00
Luke Usher 96d0fcca39
Merge pull request #1392 from PatrickvL/Remove_USE_D3D9
Removed CXBX_USE_D3D9
2018-08-16 10:10:00 +01:00
PatrickvL 66818aab59 Removed CXBX_USE_D3D9, fixes #1367 2018-08-16 09:48:48 +02:00
Luke Usher f73114df61
Merge pull request #1388 from ergo720/logger
Log levels and modules - v0.2 milestone
2018-08-16 08:00:17 +01:00
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